]> code.delx.au - gnu-emacs/commit
Simplify push_handler and profile its malloc
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Nov 2015 04:09:11 +0000 (20:09 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Nov 2015 04:09:59 +0000 (20:09 -0800)
commitaa7dac899804727875cdb8fe267d37adcbe9705a
tree7418cf4365ac5a647fe7d91cc818852671ac770b
parentde67fa4258293e18d8aacd6e0c3298f70dbafe32
Simplify push_handler and profile its malloc

* src/lisp.h (PUSH_HANDLER): Remove.
All callers changed to use push_handler directly.
* src/eval.c (internal_condition_case)
(internal_condition_case_1, internal_condition_case_2)
(internal_condition_case_n):
Use same pattern as for other invokers of push_handler.
(push_handler, push_handler_nosignal): Use call-by-value
instead of call-by-reference.  All uses changed.
(push_handler): Simplify by rewriting in terms of
push_handler_nosignal.
(push_handler_nosignal): Profile any newly allocated memory.
src/bytecode.c
src/emacs-module.c
src/eval.c
src/lisp.h