Commit 44d3dec0 authored by Richard M. Stallman's avatar Richard M. Stallman

(r_alloc_check): Return void.

(r_alloc_freeze): Initialize if it hasn't been done.
(r_re_alloc, r_alloc_free, r_alloc_sbrk): Likewise.
parent 6d16dd06
......@@ -732,6 +732,9 @@ r_alloc_sbrk (size)
register bloc_ptr b;
POINTER address;
if (! r_alloc_initialized)
r_alloc_init ();
if (! use_relocatable_buffers)
return (*real_morecore) (size);
......@@ -894,6 +897,9 @@ r_alloc_free (ptr)
{
register bloc_ptr dead_bloc;
if (! r_alloc_initialized)
r_alloc_init ();
dead_bloc = find_bloc (ptr);
if (dead_bloc == NIL_BLOC)
abort ();
......@@ -923,6 +929,9 @@ r_re_alloc (ptr, size)
{
register bloc_ptr bloc;
if (! r_alloc_initialized)
r_alloc_init ();
bloc = find_bloc (ptr);
if (bloc == NIL_BLOC)
abort ();
......@@ -946,6 +955,9 @@ void
r_alloc_freeze (size)
long size;
{
if (! r_alloc_initialized)
r_alloc_init ();
/* If already frozen, we can't make any more room, so don't try. */
if (r_alloc_freeze_level > 0)
size = 0;
......@@ -1011,7 +1023,7 @@ r_alloc_init ()
#ifdef DEBUG
#include <assert.h>
int
void
r_alloc_check ()
{
int found = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment