From: Paul Eggert Date: Wed, 6 Jul 2011 21:56:44 +0000 (-0700) Subject: Merge: Remove unportable assumption about struct layout (Bug#8884). X-Git-Tag: emacs-pretest-24.0.90~104^2~461^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=437dd18bf116330a43585f85aac12e6a8171b8a2;p=emacs.git Merge: Remove unportable assumption about struct layout (Bug#8884). * buffer.c (clone_per_buffer_values): Don't assume that sizeof (struct buffer) is a multiple of sizeof (Lisp_Object). This isn't true in general, and it's particularly not true if Emacs is configured with --with-wide-int. * buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER): New macros, used in the buffer.c change. --- 437dd18bf116330a43585f85aac12e6a8171b8a2