]> git.eshelyaron.com Git - emacs.git/commit
Make live_*_p more accurate
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Jun 2020 01:46:10 +0000 (18:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Jun 2020 05:08:43 +0000 (22:08 -0700)
commit4dcf8f2205fcfb45b460a2256569e64a03f93b4a
treeae7ba9017a09f615fc4ce1281f9b0a5c1dce79d3
parentf51f9634788323b3bf2dde59d0d20a8ca8fbfeaf
Make live_*_p more accurate

* src/alloc.c (live_string_holding, live_cons_holding)
(live_symbol_holding, live_vector_holding):
Return a C pointer, not a Lisp_Object.  All callers changed.
This helps the compiler a bit.
(live_string_p, live_cons_p, live_symbol_p, live_vector_p):
Require that P point directly at the object, rather than
somewhere within the object.  This fixes some false positives
with valid_lisp_object_p (used only in debugging).
(mark_maybe_object): Rely on the new accuracy.
src/alloc.c