Isn't this what
#pragma incomplete
is for?
> From: [email protected]
> To: [email protected]
> Reply-To: [email protected]
> Date: Mon Mar 2 16:24:23 CET 2009
> Subject: [9fans] type signatures
>
> Hi,
>
> I get a different type sygnature depending on weather the arg to a function
> contains members which are in scope or not - is this expected or a bug?
>
> for example:
>
> /* junk.c */
> typedef struct unknown unknown;
> #ifdef DEF
> struct unknown {
> int a;
> };
> #endif
>
> typedef struct arg arg;
> struct arg {
> unknown *u; // Note pointer, not instance
> };
>
> void
> func(arg a)
> {
> USED(a);
> }
>
> larch% 8c -T t.c && nm -T junk.8
> b0b8ed37 T func
> larch% 8c -T -DDEF t.c && nm -T junk.8
> 763b103c T func
>
> -Steve