Cleanup calls to Fgarbage_collect.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 20 Jul 2012 05:28:00 +0000 (09:28 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 20 Jul 2012 05:28:00 +0000 (09:28 +0400)
commit765e61e391ee0937ff6b30510b6c4651064fe38e
tree6f8cfef58d32ed81e2219fc69b1c5c5027c8cce8
parent89dea803ea4293eb8d14b87067d1e3eebdcbd180
Cleanup calls to Fgarbage_collect.
* lisp.h (maybe_gc): New prototype.
(consing_since_gc, gc_relative_threshold, memory_full_cons_threshold):
Remove declarations.
* alloc.c (maybe_gc): New function.
(consing_since_gc, gc_relative_threshold, memory_full_cons_threshold):
Make them static.
* bytecode.c (MAYBE_GC): Use maybe_gc.
* eval.c (eval_sub, Ffuncall): Likewise.
* keyboard.c (read_char): Likewise.  Adjust call to maybe_gc
to avoid dependency from auto-save feature.
src/ChangeLog
src/alloc.c
src/bytecode.c
src/eval.c
src/keyboard.c
src/lisp.h