bug-gnulib
[Top][All Lists]
Advanced

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

Re: canon-host.c disagreement (gnulib vs coreutils); zero initializers


From: Paul Eggert
Subject: Re: canon-host.c disagreement (gnulib vs coreutils); zero initializers
Date: Fri, 24 Jun 2005 10:35:18 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> I recall some compilers complaining about a trailing ','s.  Is it
> really OK by C89?  I'm just curious.

Yes, it is allowed in C89.

Perhaps you're thinking of enumeration specifiers.  The declaration:

enum { zero, };

is not allowed in C89.  (C99 allows the trailing comma here, too --
isn't it wonderful how new features are always being added to C?  :-)

Since there was agreement about the change, I installed it in gnulib
and coreutils.




reply via email to

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