This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Update MIPS bits/resource.h


On Tue, 13 Jan 2009, Maciej W. Rozycki wrote:

> On Mon, 12 Jan 2009, Joseph S. Myers wrote:
> 
> > I've applied this patch to update the MIPS bits/resource.h corresponding 
> > to a recent libc change.
> 
>  Gosh, this is ugly as hell! -- does it have to be written like this?  
> AFAIK, C has no problem with a trailing comma in an enum, so why not 
> simply make all the constants have one attached instead?

Trailing commas in enums are new in C99.  GCC will give an error if you 
include this header with -pedantic-errors in non-C99 mode, if the trailing 
comma is present.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]