[Xcb] Xevent and XCBEvent

Barton C Massey bart at cs.pdx.edu
Mon May 23 15:52:13 PDT 2005


In message <1116874530.14854.21.camel at id.minilop.net> you wrote:
> It turns out that gcc 3.3.5 (at least) will happily compile declarations
> like this one, even with -Wall -pedantic -ansi, and even produce
> reasonable results:
> 
> char buf[32 - sizeof(struct { int a; float b; char c; double d; })];

This is perfectly legal ANSI C, AFAIK.  Am I missing something?

> So an extra pad field could be produced in that manner by re-emitting
> the entire structure inside sizeof.

Why re-emit it rather than just reference it by type or tag?
I'm not getting it...

    Bart


More information about the xcb mailing list