Mercurial > libavutil.hg
changeset 279:4964532166e6 libavutil
Move unaltered av_realloc() comments to the header file.
author | takis |
---|---|
date | Mon, 05 Mar 2007 13:46:47 +0000 |
parents | ca3eb39d3aa2 |
children | 8c22d0665daa |
files | common.h mem.c |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/common.h Mon Mar 05 13:45:52 2007 +0000 +++ b/common.h Mon Mar 05 13:46:47 2007 +0000 @@ -337,6 +337,12 @@ * CPU). av_malloc(0) must return a non NULL pointer. */ void *av_malloc(unsigned int size); + +/** + * av_realloc semantics (same as glibc): if ptr is NULL and size > 0, + * identical to malloc(size). If size is zero, it is identical to + * free(ptr) and NULL is returned. + */ void *av_realloc(void *ptr, unsigned int size); void av_free(void *ptr);
--- a/mem.c Mon Mar 05 13:45:52 2007 +0000 +++ b/mem.c Mon Mar 05 13:46:47 2007 +0000 @@ -91,11 +91,6 @@ return ptr; } -/** - * av_realloc semantics (same as glibc): if ptr is NULL and size > 0, - * identical to malloc(size). If size is zero, it is identical to - * free(ptr) and NULL is returned. - */ void *av_realloc(void *ptr, unsigned int size) { #ifdef CONFIG_MEMALIGN_HACK