This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: groff: conflict with prototype arg name in getopt.h
- To: libc-alpha at sources dot redhat dot com
- Subject: Re: groff: conflict with prototype arg name in getopt.h
- From: Werner LEMBERG <wl at gnu dot org>
- Date: Sun, 22 Apr 2001 15:25:07 +0200 (CEST)
- CC: blilly at erols dot com
- References: <3ADFB54C.4CCDA9F1@erols.com><20010422.110442.55516104.wl@gnu.org>
I'm forwarding Bruce's answer (and including him in the Cc: list).
> > > argument name in getopt_long declaration in src/include/getopt.h
> > > conflicts with __argc macro in stdlib.h. Argument names in
> > > prototyped declarations are superfluous; the type suffices.
> >
> > I got the following response from Ulrich Drepper:
> >
> > That's crap. We are not going to remove the parameter names.
> > This is perfectly valid.
Bruce: getopt.h use of identifiers with two leading underscores
Bruce: (i.e. __argc) is a violation of ANSI/ISO 9899-1990 section 7.1.3
Bruce: which reserves all such identifiers.
Werner