From owner-freebsd-current Sun Oct 20 10:45:46 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA03874 for current-outgoing; Sun, 20 Oct 1996 10:45:46 -0700 (PDT) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA03865; Sun, 20 Oct 1996 10:45:40 -0700 (PDT) Received: by halloran-eldar.lcs.mit.edu; (5.65v3.2/1.1.8.2/19Aug95-0530PM) id AA14603; Sun, 20 Oct 1996 13:45:36 -0400 Date: Sun, 20 Oct 1996 13:45:36 -0400 From: Garrett Wollman Message-Id: <9610201745.AA14603@halloran-eldar.lcs.mit.edu> To: phk@FreeBSD.org Cc: current@FreeBSD.org Subject: In-Reply-To: <24020.845822819@critter.tfs.com> References: <24020.845822819@critter.tfs.com> Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk < 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 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