* alloc.c (overrun_check_malloc, overrun_check_realloc): Now static.
(overrun_check_free): Likewise.
This commit is contained in:
parent
997bfc6580
commit
2538aa2f5f
2 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
2011-04-20 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* 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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue