diff options
| author | Paul Eggert | 2019-04-08 12:59:22 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-04-08 13:01:21 -0700 |
| commit | a038df77de7b1aa2d73a6478493b8838b59e4982 (patch) | |
| tree | fbaa0087bab52a815dfd249d189301e53de0d345 /src/frame.c | |
| parent | 31e9087cdcd0b78b2247c3d8532290881abfbb08 (diff) | |
| download | emacs-a038df77de7b1aa2d73a6478493b8838b59e4982.tar.gz emacs-a038df77de7b1aa2d73a6478493b8838b59e4982.zip | |
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.
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c index 6fdb7d0cbb9..192ef4244fb 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -798,7 +798,8 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit, | |||
| 798 | static struct frame * | 798 | static struct frame * |
| 799 | allocate_frame (void) | 799 | allocate_frame (void) |
| 800 | { | 800 | { |
| 801 | return ALLOCATE_ZEROED_PSEUDOVECTOR (struct frame, face_cache, PVEC_FRAME); | 801 | return ALLOCATE_ZEROED_PSEUDOVECTOR (struct frame, tool_bar_items, |
| 802 | PVEC_FRAME); | ||
| 802 | } | 803 | } |
| 803 | 804 | ||
| 804 | struct frame * | 805 | struct frame * |