(check_memory_limits): Reduce warnlevel when usage drops far enough.
authorRichard M. Stallman <rms@gnu.org>
Sun, 11 Oct 1992 20:37:32 +0000 (20:37 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 11 Oct 1992 20:37:32 +0000 (20:37 +0000)
commit2c46d29fbd886b852ec6bd39eeaaa2f5bb7ad2ed
treec200bc797433bee38d1120b2b12206f5d34959b6
parent54c908b57c8dd89b90d6a650724df0d2f0224071
(check_memory_limits): Reduce warnlevel when usage drops far enough.

(memory_warnings): New function; just set warning data.
Use start_of_data if start is 0.

[!emacs]: Don't include config.h or lisp.h;
instead, use stddef.h.  Define POINTER, SIZE, EXCEEDS_LISP_PTR.

[!emacs] (safe_bcopy): Define as macro using memmove.
(r_alloc_free): Clear *ptr.
(r_alloc_init): Renamed from malloc_init.  Take no args.
Make it static; declare at top of file.
(r_alloc): Call r_alloc_init, if not initialized yet.
(r_alloc_initialized): Renamed from malloc_initialized; moved to top.
(ROUNDUP): Subtract 1, in case arg is already aligned.

(check_memory_limits): EXCEEDS_LISP_PTR renamed from EXCEEDS_ELISP_PTR.
src/ralloc.c