groff: conflict with prototype arg name in getopt.h
Werner LEMBERG
wl@gnu.org
Sun Apr 22 07:28:00 GMT 2001
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.
Bruce:
Bruce: The compiler doesn't need parameter names, and there is a
Bruce: conflict with the Microsoft VC++ stdlib.h which defines an
Bruce: __argc macro.
Werner
More information about the Libc-alpha
mailing list