This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Initialization of nested flexible array members
- From: Alexandre Courbot <Alexandre dot Courbot at lifl dot fr>
- To: Eljay Love-Jensen <eljay at adobe dot com>, gcc-help at gcc dot gnu dot org
- Date: Tue, 7 Oct 2003 17:18:39 +0200
- Subject: Re: Initialization of nested flexible array members
- References: <5.2.1.1.0.20031007100301.018c3b20@iplan-mn.corp.adobe.com>
> Declare your stretchy-buffered struct this way:
>
> typedef struct
> {
> char a;
> char b;
> int flexo[1024];
> } EnclosedStruct;
>
> Instead of "1024", use whatever largest possible size the struct could
> conceivably need to accommodate.
This is unfortunately not an option, since the code is designed to run on
constraint embedded targets with 1K RAM at best... :)
Alex.