Mercurial > hg > octave-nkf > gnulib-hg
changeset 9203:b62ad47fce4a
Oops, avoid an infinite recursion.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 09 Sep 2007 17:38:23 +0000 |
parents | bf36f2548b79 |
children | 16c1c9e2d0a8 |
files | lib/calloc.c lib/malloc.c lib/realloc.c |
diffstat | 3 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/calloc.c +++ b/lib/calloc.c @@ -30,6 +30,9 @@ #include <errno.h> +/* Call the system's calloc below. */ +#undef calloc + /* Allocate and zero-fill an NxS-byte block of memory from the heap. If N or S is zero, allocate and zero-fill a 1-byte block. */
--- a/lib/malloc.c +++ b/lib/malloc.c @@ -30,6 +30,9 @@ #include <errno.h> +/* Call the system's malloc below. */ +#undef malloc + /* Allocate an N-byte block of memory from the heap. If N is zero, allocate a 1-byte block. */
--- a/lib/realloc.c +++ b/lib/realloc.c @@ -30,6 +30,10 @@ #include <errno.h> +/* Call the system's malloc and realloc below. */ +#undef malloc +#undef realloc + /* Change the size of an allocated block of memory P to N bytes, with error checking. If N is zero, change it to 1. If P is NULL, use malloc. */