[FFmpeg-devel] [PATCH] Document parse_number_or_die function

Stefano Sabatini stefano.sabatini-lala
Mon Feb 25 09:24:02 CET 2008


On date Monday 2008-02-25 03:49:36 +0100, Michael Niedermayer encoded:
> On Mon, Feb 25, 2008 at 03:44:38AM +0100, Michael Niedermayer wrote:
> > On Mon, Feb 25, 2008 at 12:19:30AM +0100, Stefano Sabatini wrote:
> > > Hi,
> > > as in $subject.
> > [...]
> > > Index: cmdutils.h
> > > ===================================================================
> > > --- cmdutils.h	(revision 12192)
> > > +++ cmdutils.h	(working copy)
> > > @@ -24,6 +24,21 @@
> > >  
> > >  #include <inttypes.h>
> > >  
> > > +/**
> > > + * parses a string and returns its corresponding value as a double or
> > > + * exits from the application if the string cannot be correctly parsed
> > > + * or the corresponding value is invalid
> > > + *
> > > + * @param context the context of the value to be set (e.g. the
> > > + * corresponding commandline option name)
> > > + * @param numstr the string to be parsed
> > 
> > > + * @param type the type of the value to be expected from \p numstr
> > 
> > The type (OPT_INT, blah) as which the string should be parsed.
> 
> s/OPT_INT/OPT_INT64/

OK.

Suggested log: export and document in cmdutils.h the function cmdutils.c:parse_number_or_die

Regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: document-parse-number-or-die-01.patch
Type: text/x-diff
Size: 967 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080225/3c9ec629/attachment.patch>



More information about the ffmpeg-devel mailing list