aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-03-26 14:09:59 +0000
committerGerd Moellmann2000-03-26 14:09:59 +0000
commitcf611f0100d469d0c7a64a3b6b3dcdc7e1d7adf6 (patch)
tree41478661324501959641d1e63b8b0fe8ca1ea16e /src
parent979332f67f567886ee041c95b707e84f71f4f5bd (diff)
downloademacs-cf611f0100d469d0c7a64a3b6b3dcdc7e1d7adf6.tar.gz
emacs-cf611f0100d469d0c7a64a3b6b3dcdc7e1d7adf6.zip
(defvar_per_buffer): Use new macros for per-buffer
variables.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lread.c b/src/lread.c
index e1d601579f0..0eb7c486a37 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -3160,9 +3160,10 @@ defvar_per_buffer (namestring, address, type, doc)
3160 XMISCTYPE (val) = Lisp_Misc_Buffer_Objfwd; 3160 XMISCTYPE (val) = Lisp_Misc_Buffer_Objfwd;
3161 XBUFFER_OBJFWD (val)->offset = offset; 3161 XBUFFER_OBJFWD (val)->offset = offset;
3162 XSYMBOL (sym)->value = val; 3162 XSYMBOL (sym)->value = val;
3163 *(Lisp_Object *)(offset + (char *)&buffer_local_symbols) = sym; 3163 BUFFER_LOCAL_SYMBOL (offset) = sym;
3164 *(Lisp_Object *)(offset + (char *)&buffer_local_types) = type; 3164 BUFFER_LOCAL_TYPE (offset) = type;
3165 if (XINT (*(Lisp_Object *)(offset + (char *)&buffer_local_flags)) == 0) 3165
3166 if (BUFFER_LOCAL_IDX (offset) == 0)
3166 /* Did a DEFVAR_PER_BUFFER without initializing the corresponding 3167 /* Did a DEFVAR_PER_BUFFER without initializing the corresponding
3167 slot of buffer_local_flags */ 3168 slot of buffer_local_flags */
3168 abort (); 3169 abort ();