aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-08-19 06:33:16 +0000
committerJim Blandy1992-08-19 06:33:16 +0000
commit4360b0c609214f9ce18d3c7db3d696a1e2f26272 (patch)
tree27426f6c3175fbd6cbab27f6cc4ae8aca056ebe3 /src
parent8ea0a72039d74ed3bddc5d184d9990462a032e08 (diff)
downloademacs-4360b0c609214f9ce18d3c7db3d696a1e2f26272.tar.gz
emacs-4360b0c609214f9ce18d3c7db3d696a1e2f26272.zip
* lread.c (defvar_per_buffer): Support new TYPE argument, by
setting the appropriate slot in buffer_local_types.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index c57192d6a09..60e060644b3 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1472,9 +1472,10 @@ defvar_lisp_nopro (namestring, address, doc)
1472 the current buffer. address is the address of the slot in the buffer that is current now. */ 1472 the current buffer. address is the address of the slot in the buffer that is current now. */
1473 1473
1474void 1474void
1475defvar_per_buffer (namestring, address, doc) 1475defvar_per_buffer (namestring, address, type, doc)
1476 char *namestring; 1476 char *namestring;
1477 Lisp_Object *address; 1477 Lisp_Object *address;
1478 Lisp_Object type;
1478 char *doc; 1479 char *doc;
1479{ 1480{
1480 Lisp_Object sym; 1481 Lisp_Object sym;
@@ -1487,6 +1488,7 @@ defvar_per_buffer (namestring, address, doc)
1487 XSET (XSYMBOL (sym)->value, Lisp_Buffer_Objfwd, 1488 XSET (XSYMBOL (sym)->value, Lisp_Buffer_Objfwd,
1488 (Lisp_Object *) offset); 1489 (Lisp_Object *) offset);
1489 *(Lisp_Object *)(offset + (char *)&buffer_local_symbols) = sym; 1490 *(Lisp_Object *)(offset + (char *)&buffer_local_symbols) = sym;
1491 *(Lisp_Object *)(offset + (char *)&buffer_local_types) = type;
1490 if (*(int *)(offset + (char *)&buffer_local_flags) == 0) 1492 if (*(int *)(offset + (char *)&buffer_local_flags) == 0)
1491 /* Did a DEFVAR_PER_BUFFER without initializing the corresponding 1493 /* Did a DEFVAR_PER_BUFFER without initializing the corresponding
1492 slot of buffer_local_flags */ 1494 slot of buffer_local_flags */