This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [Michal Moskal <malekith@pld.org.pl>] libc/1931: gconv.h uses array of size [0], ANSI C complier cannot compile hello.c
- To: Richard Henderson <rth at twiddle dot net>
- Subject: Re: [Michal Moskal <malekith@pld.org.pl>] libc/1931: gconv.h uses array of size [0], ANSI C complier cannot compile hello.c
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 28 Nov 2000 16:01:41 -0800
- Cc: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>, Andreas Jaeger <aj at suse dot de>, libc-alpha at sources dot redhat dot com, Michal Moskal <malekith at pld dot org dot pl>
- References: <hoy9y5d7ps.fsf@gee.suse.de><Pine.SOL.4.21.0011271128200.18178-100000@yellow.csi.cam.ac.uk><20001128155140.A18710@twiddle.net>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Richard Henderson <rth@twiddle.net> writes:
> But this changes the size of the structure. I think you
> should leave __flexarr undefined in this case and then
> omit the structure member.
All the data structures this is used for are not meant to be defined
by the user. The objects are created by the libc and it knows how to
do this. All the user cares is to access those elements.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------