# HG changeset patch # User takis # Date 1173102407 0 # Node ID 4964532166e668898f99be41ae7467d4897628fa # Parent ca3eb39d3aa2716ba6753480dcecfe8c1050f805 Move unaltered av_realloc() comments to the header file. diff -r ca3eb39d3aa2 -r 4964532166e6 common.h --- 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); diff -r ca3eb39d3aa2 -r 4964532166e6 mem.c --- 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