Generalize common compile-time constants.
authorDmitry Antipov <dmantipov@yandex.ru>
Sun, 5 Aug 2012 15:47:28 +0000 (19:47 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Sun, 5 Aug 2012 15:47:28 +0000 (19:47 +0400)
commit663e2b3f88f9be61399e06dfc0b76700f90c6ca6
tree71e48dfc0079f80f2089b5bdebe991a200d594ed
parent777fe95e05ab77e77e4ecee45382ec64d381c776
Generalize common compile-time constants.
* lisp.h (header_size, bool_header_size, word_size): Now here.
(struct Lisp_Vector): Add comment.
(struct Lisp_Bool_Vector): Move up to define handy constants.
(VECSIZE, PSEUDOVECSIZE): Simplify.
(SAFE_ALLOCA_LISP): Use new constant.  Adjust indentation.
* buffer.c, buffer.h, bytecode.c, callint.c, eval.c, fns.c:
* font.c, fontset.c, keyboard.c, keymap.c, macros.c, menu.c:
* msdos.c, w32menu.c, w32term.h, window.c, xdisp.c, xfaces.c:
* xfont.c, xmenu.c: Use word_size where appropriate.
23 files changed:
src/ChangeLog
src/alloc.c
src/buffer.c
src/buffer.h
src/bytecode.c
src/callint.c
src/eval.c
src/fns.c
src/font.c
src/fontset.c
src/keyboard.c
src/keymap.c
src/lisp.h
src/macros.c
src/menu.c
src/msdos.c
src/w32menu.c
src/w32term.h
src/window.c
src/xdisp.c
src/xfaces.c
src/xfont.c
src/xmenu.c