From owner-freebsd-hackers Sun Mar 3 18:34:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by hub.freebsd.org (Postfix) with SMTP id 9F8C237B400 for ; Sun, 3 Mar 2002 18:34:38 -0800 (PST) Received: (qmail 55691 invoked by uid 1001); 4 Mar 2002 12:34:36 +1000 X-Posted-By: GJB-Post 2.23 27-Nov-2001 X-Operating-System: FreeBSD 4.2-RELEASE i386 X-Uptime: 53 days, 18:54 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-GPG-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-PGP-Public-Keys: http://www.gbch.net/keys.html Message-Id: Date: Mon, 04 Mar 2002 12:34:36 +1000 From: Greg Black To: Terry Lambert Cc: "Brian T.Schellenberger" , Erik Trulsson , Ian , freebsd-hackers Subject: Re: A few questions about a few includes References: <20020303180029.GA56041@student.uu.se> <20020304012020.A1681BA05@i8k.babbleon.org> <3C82D7D1.F9AD882C@mindspring.com> In-reply-to: <3C82D7D1.F9AD882C@mindspring.com> of Sun, 03 Mar 2002 18:11:29 PST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: | Order of structure elements is undefined. Zero length arrays | are undefined. Also, packing is undefined. Close, but no cigar. The /order/ is defined in C89 (Section 6.5.2.1) with the following words: Within a structure object, the non-bit-field members and the units in which bit-fields reside have addresses that increase in the order in which they are declared. Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message