]> code.delx.au - gnu-emacs/commit
Minor cleanups for Lisp objects and symbols
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 Dec 2014 02:12:01 +0000 (18:12 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 Dec 2014 02:12:24 +0000 (18:12 -0800)
commitad013ba63134d4fe6470665abf2f9e33a595848a
tree595bcf2e2228e833fac882aeb60a8793b057f024
parent83299b940dd211f4e142d754b93ea592e9f67974
Minor cleanups for Lisp objects and symbols

* alloc.c (next_vector, set_next_vector):
* lisp.h (lisp_h_INTEGERP, make_number, XFASTINT, make_natnum):
(lisp_h_make_number) [USE_LSB_TAG]:
Use Lisp_Int0 instead of the mystery constant 0.
* alloc.c (mark_object): Always set and use po; that's simpler.
(CHECK_LIVE, CHECK_ALLOCATED_AND_LIVE):
Properly parenthesize definientia.
* bidi.c (bidi_initialize):
* buffer.c (init_buffer_once):
* nsfns.m (syms_of_nsfns):
* nsmenu.m (syms_of_nsmenu):
* nsselect.m (syms_of_nsselect):
Prefer DEFSYM to defining by hand.
* data.c: Fix too-long line.
* lisp.h (DECLARE_GDB_SYM): New macro.
(DEFINE_GDB_SYMBOL_BEGIN): Use it.
(DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END) [!MAIN_PROGRAM]:
Declare the symbol, so it's visible to everywhere lisp.h is included.
Move forward decls as far forward as they can go,
to allow future changes to use them.
src/ChangeLog
src/alloc.c
src/bidi.c
src/buffer.c
src/data.c
src/lisp.h
src/nsfns.m
src/nsmenu.m
src/nsselect.m