[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] Re: automatic prototypes
From: |
Paul Eggert |
Subject: |
Re: [bug-gnulib] Re: automatic prototypes |
Date: |
Fri, 17 Dec 2004 16:00:32 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Simon Josefsson <address@hidden> writes:
> I think getline would be a better test of this approach. However, the
> getline prototype uses (s)size_t, so config.h would have to #include
> <sys/types.h>.
Well, you _could_ prototype getline without mentioning either size_t
or ssize_t, so long as you can compute integer types that are
compatible with size_t and ssize_t. Admittedly this is a bit of work
to get right.
> OTOH, alloca.h has always seemed a bit fragile to me, and it might
> actually be better to move that definition to config.h.
That would mean config.h would include standard include files, at
least if _MSC_VER is defined. Am I right? Admittedly the _MSC_VER
case is low-priority, but it's an indication that the approach might
well fail on some hosts.
> I believe alloca is standard in GNU,
That's right.
Re: [bug-gnulib] automatic prototypes, Bruno Haible, 2004/12/18