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: Simon Josefsson
Subject: Re: canon-host.c disagreement (gnulib vs coreutils); zero initializers
Date: Fri, 24 Jun 2005 13:16:50 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> The extra comma is an indication to the reader that we know there are
> missing zeros, and don't care.  This style can be used for any object
> in C89, e.g.:
>
>     mbstate_t initial_state = { 0, };
>
> where we don't know whether mbstate_t is a structure, or an integer,
> and the code works either way.

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




reply via email to

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