This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: Update MIPS bits/resource.h
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-ports at sourceware dot org
- Date: Tue, 13 Jan 2009 17:17:49 +0000 (GMT)
- Subject: Re: Update MIPS bits/resource.h
- References: <Pine.LNX.4.64.0901121645440.8822@digraph.polyomino.org.uk>
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?
I don't think there is a written rule in the GNU coding standard to
forbid this (and Linux for example goes as far as to mandate it instead to
avoid the very mess that frequently arises from its absence).
Maciej