bug-cvs
[Top][All Lists]
Advanced

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

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


From: Derek Robert Price
Subject: [Fwd: Re: [Bug-gnulib] 03-getndelim2-c89.diff]
Date: Tue, 22 Jul 2003 09:55:07 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

Paul Eggert  <eggert@cs.ucla.edu> writes:

Derek Robert Price <derek@ximbiot.com> 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>.

Perhaps it will make more practical sense to assume C89 hosted
compilers at some point; I don't know whether we've reached that point
yet, though.

The mkstemp patch that you also sent is a similar case.


So we can't assume all the headers if we're to continue following GNULIB. I'm updating configure and should have the patch checked in later today.

Derek

--
               *8^)

Email: derek@ximbiot.com

Get CVS support at <http://ximbiot.com>!
--
"Those who make peaceful revolution impossible will make violent revolution 
inevitable."

                        -- John F. Kennedy






reply via email to

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