On Fri, Aug 08, 2003 at 02:06:13PM +0200, Jeroen Dekkers wrote:
> On Thu, Aug 07, 2003 at 11:48:41PM +0200, Marco Gerards wrote:
> > Already tried to use an argp parser, and that worked. Unfortunately
> > there were issues with the argp parser, argp isn't reentrant. (I guess
> > I was lucky when I
Jeroen Dekkers <[EMAIL PROTECTED]> writes:
> Of course the getopt interface uses some global variables: opterr,
> optopt, optind and optarg.
There's also one static variable in the getopt implementation:
/* The next char to be scanned in the option-element
in which the last option charact
On Thu, Aug 07, 2003 at 11:48:41PM +0200, Marco Gerards wrote:
> It is hard to write a nice parser.
[...]
> The syntax would be:
> console {OPTIONS} {-d DRIVER [suboptions]} CONSOLE
I can not see how this solves the problem that it is hard to write a
nice parser. The suboptions-variant has the di
On Thu, Aug 07, 2003 at 11:48:41PM +0200, Marco Gerards wrote:
> Already tried to use an argp parser, and that worked. Unfortunately
> there were issues with the argp parser, argp isn't reentrant. (I guess
> I was lucky when I used it).
The only acceptable way I am seeing here is to have the argp
On Fri, Aug 08, 2003 at 07:55:51PM +0200, Marcus Brinkmann wrote:
> On Fri, Aug 08, 2003 at 02:06:13PM +0200, Jeroen Dekkers wrote:
> > On Thu, Aug 07, 2003 at 11:48:41PM +0200, Marco Gerards wrote:
> > > Already tried to use an argp parser, and that worked. Unfortunately
> > > there were issues wi
On Thu, Aug 07, 2003 at 11:48:41PM +0200, Marco Gerards wrote:
> Already tried to use an argp parser, and that worked. Unfortunately
> there were issues with the argp parser, argp isn't reentrant. (I guess
> I was lucky when I used it).
Hmm, I don't see a reason why this wouldn't work. The problem
Wolfgang Jaehrling <[EMAIL PROTECTED]> writes:
> On Thu, Aug 07, 2003 at 11:48:41PM +0200, Marco Gerards wrote:
> > It is hard to write a nice parser.
> [...]
> > The syntax would be:
> > console {OPTIONS} {-d DRIVER [suboptions]} CONSOLE
>
> I can not see how this solves the problem that it is h