aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorDmitry Antipov2013-09-24 10:43:20 +0400
committerDmitry Antipov2013-09-24 10:43:20 +0400
commitd6d9cbc15cbebfe466756a7a75601173c15287a2 (patch)
tree2f3e5223e8f8d637dc9c3c152929b879748b7918 /src/buffer.c
parentec7bc82f9c63b6ec533f7489e67b1c1b18d08dd5 (diff)
downloademacs-d6d9cbc15cbebfe466756a7a75601173c15287a2.tar.gz
emacs-d6d9cbc15cbebfe466756a7a75601173c15287a2.zip
Use union for the payload of struct Lisp_Vector.
This helps to avoid a few glitches dictated by C's aliasing rules. * lisp.h (struct Lisp_Vector): Use union for next and contents member. Adjust comment. Change related users. * alloc.c (next_in_free_list, set_next_in_free_list): Remove. Related users changed. * buffer.c, bytecode.c, ccl.c, character.h, chartab.c, composite.c: * composite.h, disptab.h, fns.c, fontset.c, indent.c, keyboard.c: * lread.c, msdos.c, process.c, w32menu.c, window.c, xdisp.c: * xfaces.c, xfont.c, xmenu.c: Related users changed.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 815f3926c55..1570f3831ac 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4534,7 +4534,7 @@ report_overlay_modification (Lisp_Object start, Lisp_Object end, bool after,
4534 Lisp_Object *copy = alloca (size * sizeof *copy); 4534 Lisp_Object *copy = alloca (size * sizeof *copy);
4535 ptrdiff_t i; 4535 ptrdiff_t i;
4536 4536
4537 memcpy (copy, XVECTOR (last_overlay_modification_hooks)->contents, 4537 memcpy (copy, XVECTOR (last_overlay_modification_hooks)->u.contents,
4538 size * word_size); 4538 size * word_size);
4539 gcpro1.var = copy; 4539 gcpro1.var = copy;
4540 gcpro1.nvars = size; 4540 gcpro1.nvars = size;