]> git.eshelyaron.com Git - emacs.git/commit
Allow gap before first non-Lisp pseudovec member
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Apr 2019 19:59:22 +0000 (12:59 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Apr 2019 20:01:21 +0000 (13:01 -0700)
commita038df77de7b1aa2d73a6478493b8838b59e4982
treefbaa0087bab52a815dfd249d189301e53de0d345
parent31e9087cdcd0b78b2247c3d8532290881abfbb08
Allow gap before first non-Lisp pseudovec member

Problem reported by Keith David Bershatsky in:
https://lists.gnu.org/r/emacs-devel/2019-04/msg00259.html
Solution suggested by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2019-04/msg00282.html
* src/buffer.h (BUFFER_LISP_SIZE): Simplify by using PSEUDOVECSIZE.
(BUFFER_REST_SIZE): Simplify by using VECSIZE and BUFFER_LISP_SIZE.
* src/lisp.h (PSEUDOVECSIZE): Base it on the last Lisp field,
not the first non-Lisp field.  All callers changed.  Callers
without Lisp fields changed to use ALLOCATE_PLAIN_PSEUDOVECTOR.
(ALLOCATE_PLAIN_PSEUDOVECTOR): New macro.
22 files changed:
src/alloc.c
src/bignum.c
src/buffer.h
src/emacs-module.c
src/fns.c
src/frame.c
src/frame.h
src/lisp.h
src/pdumper.c
src/process.c
src/process.h
src/termhooks.h
src/terminal.c
src/thread.c
src/thread.h
src/w32term.c
src/window.c
src/window.h
src/xterm.c
src/xterm.h
src/xwidget.c
src/xwidget.h