From owner-freebsd-hackers Mon Mar 4 9:11:42 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail2.tdb.uu.se (mail2.tdb.uu.se [130.238.18.35]) by hub.freebsd.org (Postfix) with ESMTP id CBAE737B405 for ; Mon, 4 Mar 2002 09:11:32 -0800 (PST) Received: from rackarberget.it.uu.se (rackarberget.it.uu.se [130.238.18.38]) by mail2.tdb.uu.se (8.12.1/8.12.1/STUD_1.2) with ESMTP id g24HBITN013737; Mon, 4 Mar 2002 18:11:18 +0100 (MET) Received: (from ertr1013@localhost) by rackarberget.it.uu.se (8.11.6/8.11.6/STUD_NULL_1.2) id g24HBHR02811; Mon, 4 Mar 2002 18:11:17 +0100 (MET) Date: Mon, 4 Mar 2002 18:11:17 +0100 From: Erik Trulsson To: "M. Warner Losh" Cc: brandt@fokus.gmd.de, freebsd@damnhippie.dyndns.org, freebsd-hackers@FreeBSD.ORG Subject: Re: Re: A few questions about a few includes Message-ID: <20020304181117.A594@student.uu.se> References: <20020303180029.GA56041@student.uu.se> <20020304102750.O74223-100000@beagle.fokus.gmd.de> <20020304104158.GB63341@student.uu.se> <20020304.093529.35706437.imp@village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020304.093529.35706437.imp@village.org>; from imp@village.org on Mon, Mar 04, 2002 at 09:35:29AM -0700 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 On Mon, Mar 04, 2002 at 09:35:29AM -0700, M. Warner Losh wrote: > In message: <20020304104158.GB63341@student.uu.se> > Erik Trulsson writes: > : I think it is still there (and my draft copy says the same thing). > : I was thinking about the original C89 standard which does not allow it > : (and does not allow incomplete array types in structs). Guess I should > : have said which standard I was referring to. > > struct foo { > char array[0]; > }; > > appears to be in C-99 but not C-89. If you have the draft, so far the > only thing I've noticed that is different between the draft and the > final standard is that there's 10-15 more footnotes in the final > standard than were in the final draft. > > Warner Are you sure that is in C99? What is allowed in C99 (but wasn't in C89) is struct foo { int b; char array[]; }; Note that you must have a 'normal' field before the incomplete array. I don't think char array[0]; is allowed in either of C89 or C99. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message