Date: Sat, 6 Sep 2003 10:57:52 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: John-Mark Gurney <gurney_j@efn.org> Cc: Marcel Moolenaar <marcel@xcllnt.net> Subject: Re: Question about genassym, locore.s and 0-sized arrays(showstopper for an icc compiled kernel) Message-ID: <20030906105752.7bbed09b.Alexander@Leidinger.net> In-Reply-To: <20030906084259.GP16766@funkthat.com> References: <20030904180448.021a1b6b.Alexander@Leidinger.net> <20030904162858.GI98381@dan.emsphone.com> <20030905001411.3a9030b3.Alexander@Leidinger.net> <20030904225123.GB39916@dan.emsphone.com> <3F584B85.AAC3A11D@mindspring.com> <20030905105507.51ba3183.Alexander@Leidinger.net> <20030905165557.GB566@dhcp01.pn.xcllnt.net> <20030906103334.0f3233aa.Alexander@Leidinger.net> <20030906084259.GP16766@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 6 Sep 2003 01:42:59 -0700 John-Mark Gurney <gurney_j@efn.org> wrote: > Alexander Leidinger wrote this message on Sat, Sep 06, 2003 at 10:33 +0200: > > struct { > ^ try moving foo to here. > > int tag; > > char obj[]; > > } foo; > ^^^ from here. > Uhm... yes, sorry. ---snip--- % <marcel.c #include <stdio.h> struct foo { int tag; char obj[]; }; int main(void) { struct foo bar; printf("%d\n", sizeof(struct foo)); printf("%d\n", sizeof(bar)); return 0; } % ./a.out 4 4 ---snip--- Bye, Alexander. -- Yes, I've heard of "decaf." What's your point? http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030906105752.7bbed09b.Alexander>