]> git.eshelyaron.com Git - emacs.git/commit
Take XPNTR private
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 14 Oct 2015 06:09:43 +0000 (23:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 14 Oct 2015 06:10:14 +0000 (23:10 -0700)
commit2cc412cdc2635ecb99129271abe94bdd744742c2
tree34064c89c867882aa3c5f285b1f638c40d82cf3b
parent3fa424ca48f4f48a40a514153726758b6ed47892
Take XPNTR private

* src/alloc.c (PURE_POINTER_P): Remove.
All uses replaced with PURE_P.
(XPNTR_OR_SYMBOL_OFFSET): New function.
(XPNTR): Move here from lisp.h.
Reimplement in terms of XPNTR_OR_SYMBOL_OFFSET.
(mark_maybe_object, valid_lisp_object_p, survives_gc_p):
Remove unnecessary cast.
(purecopy): Use XPNTR_OR_SYMBOL_OFFSET instead of XPNTR,
to avoid an unnecessary runtime test for symbols.
* src/lisp.h (lisp_h_XPNTR, XPNTR): Remove, moving XPNTR to alloc.c.
Only alloc.c needs XPNTR now.
src/alloc.c
src/lisp.h