This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: libio
- From: Roland McGrath <roland at redhat dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 17 Oct 2002 12:51:21 -0700
- Subject: Re: libio
> Why would argp need to be reentrant?
Why shouldn't it be? The only thing that makes it hard now is the use of
getopt with its globals. A user-supplied parser function might want to do
anything, including other argp calls on other groups (e.g. perhaps you want
to parts --foo-opts="-a -b -c" and have that argp_parse on an argp
associated with "foo").
> Not using getopt just means more code for no obvious reason.
It could in fact be less code. The argp code is rather hairy to produce
the data structures for getopt_long.