In message <[EMAIL PROTECTED]> "Jacques A. Vidrine" writes:
: On Wed, Feb 21, 2001 at 08:53:57AM -0700, Warner Losh wrote:
: > The standard requires that (void *) &foo == (void *) &foo->s 
: 
: Thanks, that is what I was trying to track down but couldn't find it.
: I also thought that perhaps a structure has the same requirement
: alignments as its first member ... I think that means the same thing
: as you've stated.

There is some verbage in the structure layout part of the standard
that makes this a logical conclusion.

However, it is overly tricky code.  But then again to do the generic
sort of thing you want to do, you have to resort to C macros, or other
gross things to make it generic.  The question becomes how do you do
that in the least gross way...

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to