# HG changeset patch # User Gerd Moellmann # Date 954079799 0 # Node ID ff71c3a83b75c17cefdc3dc6da7c66efc7468d9a # Parent a7da319e37653b7eef3812753c3591d47e15c2a8 (defvar_per_buffer): Use new macros for per-buffer variables. diff -r a7da319e3765 -r ff71c3a83b75 src/lread.c --- a/src/lread.c Sun Mar 26 14:08:52 2000 +0000 +++ b/src/lread.c Sun Mar 26 14:09:59 2000 +0000 @@ -3160,9 +3160,10 @@ XMISCTYPE (val) = Lisp_Misc_Buffer_Objfwd; XBUFFER_OBJFWD (val)->offset = offset; XSYMBOL (sym)->value = val; - *(Lisp_Object *)(offset + (char *)&buffer_local_symbols) = sym; - *(Lisp_Object *)(offset + (char *)&buffer_local_types) = type; - if (XINT (*(Lisp_Object *)(offset + (char *)&buffer_local_flags)) == 0) + BUFFER_LOCAL_SYMBOL (offset) = sym; + BUFFER_LOCAL_TYPE (offset) = type; + + if (BUFFER_LOCAL_IDX (offset) == 0) /* Did a DEFVAR_PER_BUFFER without initializing the corresponding slot of buffer_local_flags */ abort ();