Re: Console client plug-in options

2003-08-14 Thread Marcus Brinkmann
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

Re: Console client plug-in options

2003-08-14 Thread Niels Möller
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

Re: Console client plug-in options

2003-08-14 Thread Wolfgang Jaehrling
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

Re: Console client plug-in options

2003-08-14 Thread Marcus Brinkmann
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

Re: Console client plug-in options

2003-08-09 Thread Jeroen Dekkers
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

Re: Console client plug-in options

2003-08-09 Thread Jeroen Dekkers
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

Re: Console client plug-in options

2003-08-07 Thread Marco Gerards
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