Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 1996 05:47:03 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        phk@FreeBSD.ORG, wollman@lcs.mit.edu
Cc:        current@FreeBSD.ORG
Subject:   Re: <sys/queue.h>
Message-ID:  <199610201947.FAA16430@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> If I have something like this:
>
>> 	typedef struct geom_req_s geom_req;
>
>> 	struct geom_req_s {
>> 		...
>> 	};
>
>Don't do that, then.  It's horrid style anyway (IMAO), and you
>/certainly/ don't see any native Berkeley code doing that.  The style
>guide should discourage the practice if it doesn't already.

I agree.  Typedef should only be used for scalar types and function
types.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610201947.FAA16430>