From: Paul Eggert Date: Wed, 20 Apr 2011 07:11:43 +0000 (-0700) Subject: * alloc.c (overrun_check_malloc, overrun_check_realloc): Now static. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~238 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2538aa2f5f92dd8878652d299e7d6ebabc352075;p=emacs.git * alloc.c (overrun_check_malloc, overrun_check_realloc): Now static. (overrun_check_free): Likewise. --- diff --git a/src/ChangeLog b/src/ChangeLog index e78faa3c5db..5f01308a358 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-04-20 Paul Eggert + * alloc.c (overrun_check_malloc, overrun_check_realloc): Now static. + (overrun_check_free): Likewise. + Make the Lisp reader and string-to-float more consistent. * data.c (atof): Remove decl; no longer used or needed. (Fstring_to_number): Use new string_to_float function, to be diff --git a/src/alloc.c b/src/alloc.c index 8be6371d247..dd27303428f 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -555,7 +555,7 @@ static int check_depth; /* Like malloc, but wraps allocated block with header and trailer. */ -POINTER_TYPE * +static POINTER_TYPE * overrun_check_malloc (size_t size) { register unsigned char *val; @@ -579,7 +579,7 @@ overrun_check_malloc (size_t size) /* Like realloc, but checks old block for overrun, and wraps new block with header and trailer. */ -POINTER_TYPE * +static POINTER_TYPE * overrun_check_realloc (POINTER_TYPE *block, size_t size) { register unsigned char *val = (unsigned char *) block; @@ -617,7 +617,7 @@ overrun_check_realloc (POINTER_TYPE *block, size_t size) /* Like free, but checks block for overrun. */ -void +static void overrun_check_free (POINTER_TYPE *block) { unsigned char *val = (unsigned char *) block;