Date: Sun, 20 Oct 1996 13:45:36 -0400 From: Garrett Wollman <wollman@lcs.mit.edu> To: phk@FreeBSD.org Cc: current@FreeBSD.org Subject: <sys/queue.h> Message-ID: <9610201745.AA14603@halloran-eldar.lcs.mit.edu> In-Reply-To: <24020.845822819@critter.tfs.com> References: <24020.845822819@critter.tfs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sun, 20 Oct 1996 16:46:59 +0200, Poul-Henning Kamp <phk@critter.tfs.com> said:
> - struct type *slh_first; /* first element */ \
> + type *slh_first; /* first element */ \
> 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.
> How can I add a any of the types from <sys/types.h> to this data-type
> in a clean fashion ? All other use the typedef, but for the queues
> I have to use the struct name.
Yeah, so?
-GAWollman
--
Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu | O Siem / The fires of freedom
Opinions not those of| Dance in the burning flame
MIT, LCS, ANA, or NSA| - Susan Aglukark and Chad Irschick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9610201745.AA14603>
