bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] 03-getndelim2-c89.diff


From: Derek Robert Price
Subject: Re: [Bug-gnulib] 03-getndelim2-c89.diff
Date: Wed, 23 Jul 2003 17:32:43 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

Paul Eggert wrote:

Derek Robert Price <address@hidden> writes:

Here's a quick patch to remove the K&R support from getndelim2 since
GNULIB standardized on C89.

That patch assumes <stdlib.h>, but gnulib currently assumes only the
minimal headers supplied by C89 freestanding compilers; it doesn't
assume the extra headers supplied by C89 hosted compilers.

Our current suggestion for older hosts is "install an old version of
GCC first; then use that".  But on native K&R hosts, GCC is merely a
freestanding compiler; it's not a hosted compiler, because it doesn't
guarantee C89 conformance for headers other than the headers that GCC
supplies itself, namely <float.h>, <limits.h>, <stdarg.h>, and
<stddef.h>.

I noticed that lib/getline.h, at the least assumes <sys/types.h>. Is there a list of headers that could be assumed before C89 around that I could look at?

Derek

--
               *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
--
My karma ran over my dogma.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]