(lisp_malloc, lisp_free): New functions.
authorRichard M. Stallman <rms@gnu.org>
Wed, 30 Dec 1998 01:07:49 +0000 (01:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 30 Dec 1998 01:07:49 +0000 (01:07 +0000)
commitc8099634a03277912d488d33adbc899bf235a5d9
tree20e0c3d0e8bdcaddad1d500a1944efbd1616d2b4
parenta2b327b61ad36e7213fab35fa9c3b55d350612fa
(lisp_malloc, lisp_free): New functions.
Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
(n_interval_blocks, n_float_blocks): New variable.
(n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
(n_marker_blocks, n_string_blocks): New variable.
(init_intervals, make_interval): Set a count variable.
Use lisp_malloc instead of setting allocating_for_lisp.
(init_float, make_float, init_cons, Fcons): Likewise.
(allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
(init_marker, allocate_misc, init_strings): Likewise.
(make_uninit_multibyte_string): Likewise.
(gc_sweep, compact_strings): Decrement the count variables.

(uninterrupt_malloc): Don't store Emacs's hooks
into the old_..._hook variables.
src/alloc.c