Question about genassym, locore.s and 0-sized
arrays(showstopper for an icc compiled kernel)
Alexander Leidinger
Alexander at Leidinger.net
Sat Sep 6 01:56:30 PDT 2003
On Sat, 6 Sep 2003 01:42:59 -0700
John-Mark Gurney <gurney_j at 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
More information about the freebsd-current
mailing list