Hi,
I just tried studio10, and its a great product! Thank you very much!
I found a minor problem, however.
A struct with a FAM, first appears as an incomplete type,
prevents compilation failure.
struct yyyy;
extern int fn_1(const struct yyyy *q);
#if defined DEF_YYYY_W_O_FAM
struct yyyy
{
struct xxxx *m0;
int m1[1];
};
#endif
#if defined DEF_YYYY_WITH_FAM
struct yyyy
{
struct xxxx *m0;
int m1[];
};
#endif
int
fn_1(const struct yyyy *q)
{
return 10;
}
% cc -c fam_1.c
% cc -c -DDEF_YYYY_W_O_FAM fam_1.c
% cc -c -DDEF_YYYY_WITH_FAM fam_1.c
"fam_1.c", line 23: identifier redeclared: fn_1
current : function(pointer to const struct yyyy {pointer to struct xxxx {..} m0, array[-1] of int m1}) returning int
previous: function(pointer to const struct yyyy {pointer to struct xxxx {..} m0, array[-1] of int m1}) returning int : "fam_1.c", line 3
cc: acomp failed for fam_1.c
I'm not a C expert, but is this an intended behaviour?
Best Regards,
rk