bug-coreutils
[Top][All Lists]
Advanced

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

Re: making coreutils depend on c99


From: Paul Eggert
Subject: Re: making coreutils depend on c99
Date: Sun, 29 Jan 2006 22:56:33 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Albert Chin <address@hidden> writes:

> Substitute the code in the c99.c file with any
> other C99 idiom and the results should be the same.

That hasn't been my experience.  For example, many C89 compilers
support "long long" in some form, even though it's a C99 idiom.
Similarly for compound literals, inline, restrict, _Bool, non-constant
initializers for auto aggregates, etc.

The Autoconf Way is to test for each new-to-C99 feature separately,
and coreutils already does this to some extent.  For example, it
checks for 'inline', 'restrict', _Bool, and 'long long' separately.
No doubt more checks could be added.

The big difference here is that the above-mentioned features, like the
struct hack, are relatively easy to configure using C macros, in a
useful way.  Statements-before-declarations is not.  That is why the
statements-before-declarations requirement of some coreutils files is
a special issue.




reply via email to

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