Re: [libav-devel] [PATCH 3/6] cmdutils: add a commandline pre-parser.

2012-12-19 Thread Diego Biurrun
On Mon, Dec 17, 2012 at 10:52:33PM +0100, Anton Khirnov wrote: > --- a/cmdutils.c > +++ b/cmdutils.c > @@ -416,6 +439,224 @@ int opt_default(void *optctx, const char *opt, const > char *arg) > > +/* > + * Check whether given option is a group separator. > + * > + * @return index of the group def

Re: [libav-devel] [PATCH 3/6] cmdutils: add a commandline pre-parser.

2012-12-17 Thread Luca Barbato
On 12/17/2012 10:52 PM, Anton Khirnov wrote: > It splits the commandline into a more convenient internal representation > for further parsing. > > This will allow e.g. > - processing global options first independently of their location on the > commandline, eliminating ugly hacks for processing

[libav-devel] [PATCH 3/6] cmdutils: add a commandline pre-parser.

2012-12-17 Thread Anton Khirnov
It splits the commandline into a more convenient internal representation for further parsing. This will allow e.g. - processing global options first independently of their location on the commandline, eliminating ugly hacks for processing e.g. cpuflags first - better options validation and err