diff options
author | Paul Eggert <[email protected]> | 2011-06-17 01:14:30 -0700 |
---|---|---|
committer | Paul Eggert <[email protected]> | 2011-06-17 01:14:30 -0700 |
commit | d6202519ae0dfb7421b64f823a0aaa54e1fc5951 (patch) | |
tree | 9d4c2761e62feda73d0b7d1ad0e0c99424ad5976 /src/buffer.c | |
parent | 67c36fce599fc28e5ae3eca371d034c600265dd2 (diff) |
* buffer.c: Include <verify.h>.
(init_buffer_once): Check at compile-time, not run-time.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 93f739c0d4..fd51f50dca 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -27,6 +27,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include <setjmp.h> #include <unistd.h> +#include <verify.h> + #include "lisp.h" #include "intervals.h" #include "window.h" @@ -4975,7 +4977,7 @@ init_buffer_once (void) The local flag bits are in the local_var_flags slot of the buffer. */ /* Nothing can work if this isn't true */ - if (sizeof (EMACS_INT) != sizeof (Lisp_Object)) abort (); + { verify (sizeof (EMACS_INT) == sizeof (Lisp_Object)); } /* 0 means not a lisp var, -1 means always local, else mask */ memset (&buffer_local_flags, 0, sizeof buffer_local_flags); |