This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Fix display of array of unspecified length inside structures


On Friday 18 February 2011 17:21:34, Pierre Muller wrote:
> > That just confirms what I said.  :-)  The flexible array
> > member construst is C99 only, so it's likely that other
> > compilers choke on it by default.
> 
>   But this means that other compilers
> will at least accept this flexible array construct if
> they conform to ISO C99.

Fine.

>   malloc should be OK,
> does it require a header?

stdlib.h.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]