Mercurial > emacs
changeset 10767:2954efb1d06c
(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.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 16 Feb 1995 06:45:36 +0000 |
parents | 07eea2d610d3 |
children | 938451cf1b10 |
files | src/ralloc.c |
diffstat | 1 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ralloc.c Thu Feb 16 06:36:19 1995 +0000 +++ b/src/ralloc.c Thu Feb 16 06:45:36 1995 +0000 @@ -732,6 +732,9 @@ 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 @@ { 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 @@ { register bloc_ptr bloc; + if (! r_alloc_initialized) + r_alloc_init (); + bloc = find_bloc (ptr); if (bloc == NIL_BLOC) abort (); @@ -946,6 +955,9 @@ 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 @@ #ifdef DEBUG #include <assert.h> -int +void r_alloc_check () { int found = 0;