Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 1996 15:19:24 -0700
From:      John Polstra <jdp@polstra.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        current@FreeBSD.org, phk@FreeBSD.org, wollman@lcs.mit.edu
Subject:   Re: <sys/queue.h> 
Message-ID:  <199610202219.PAA05120@austin.polstra.com>
In-Reply-To: Your message of "Mon, 21 Oct 1996 08:06:29 %2B1000." <199610202206.IAA19365@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> >Why do you say that?  There's already precedent for using typedefs
> >for structs in, for example, the "DIR" type of <dirent.h>.  And it
> 
> An exception that proves the rule.  A real c (sic) programmer would
> never use upper case in a type or variable name :-).  <dirent.h> is
> POSIX.

Good point.  Of course, a real c (sic) programmer would have named it
"posix". :-)

> I don't know the BSD history of DIR.

Me neither, at least not for sure.  I first saw it personally in SunOS,
I think.

> I didn't completely understood phk's proposal.  You can always use
> `struct foo' for the type in offsetof() provided the struct has a
> tag.  The queue macros take a "type" arg which is actually a struct
> tag and prefix `struct ' to it.  I agree that this is wrong.

We're not so far apart in our opinions, then.  This last point is the
only one I care very much about.

John



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