From 2538aa2f5f92dd8878652d299e7d6ebabc352075 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 20 Apr 2011 00:11:43 -0700 Subject: [PATCH] * alloc.c (overrun_check_malloc, overrun_check_realloc): Now static. (overrun_check_free): Likewise. --- src/ChangeLog | 3 +++ src/alloc.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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; -- 2.39.2