[FFmpeg-devel] [PATCH] Doxygenate libavutil/mem.h

Stefano Sabatini stefano.sabatini-lala
Fri Sep 21 19:06:50 CEST 2007


On date Friday 2007-09-21 08:18:45 -0400, Rich Felker encoded:
> On Fri, Sep 21, 2007 at 11:33:14AM +0200, Diego Biurrun wrote:
> > > + * Allocates or reallocates a block of memory.
> > > + * Same semantics as glibc realloc: if \p ptr is NULL and \p size > 0,
> > > + * identical to malloc(size). If \p size is zero, it is identical to
> > >   * free(ptr) and NULL is returned.
> 
> It would be better to cite a well-known standard, ANSI/ISO C, rather
> than glibc.... Realloc semantics are not glibc-specific.

Good point, changed "glibc" to "ANSI/ISO C".

> > What is supposed to be "identical to malloc(size)"?
> 
> The meaning was clear to me: the function call.
[...]

Regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doxygenate-mem-h-02.patch
Type: text/x-diff
Size: 2513 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070921/070aa9ce/attachment.patch>



More information about the ffmpeg-devel mailing list