summaryrefslogtreecommitdiff
path: root/src/lread.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2007-10-02 20:51:02 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2007-10-02 20:51:02 +0000
commitd6aa1876eb29c086ef190c46d488d391db062f50 (patch)
treee809e1bbd31b4dc7958049774229273873e38828 /src/lread.c
parentde509a6071aa4d046e666860468bb7d8bf134e02 (diff)
downloademacs-d6aa1876eb29c086ef190c46d488d391db062f50.tar.gz
* buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
(DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c. * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER): * lread.c (defvar_per_buffer): * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/lread.c b/src/lread.c
index d2709dead4c..189fcc0977f 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -3746,37 +3746,6 @@ defvar_lisp (namestring, address)
staticpro (address);
}
-/* Similar but define a variable whose value is the Lisp Object stored in
- the current buffer. address is the address of the slot in the buffer
- that is current now. */
-
-void
-defvar_per_buffer (namestring, address, type, doc)
- char *namestring;
- Lisp_Object *address;
- Lisp_Object type;
- char *doc;
-{
- Lisp_Object sym, val;
- int offset;
-
- sym = intern (namestring);
- val = allocate_misc ();
- offset = (char *)address - (char *)current_buffer;
-
- XMISCTYPE (val) = Lisp_Misc_Buffer_Objfwd;
- XBUFFER_OBJFWD (val)->offset = offset;
- SET_SYMBOL_VALUE (sym, val);
- PER_BUFFER_SYMBOL (offset) = sym;
- PER_BUFFER_TYPE (offset) = type;
-
- if (PER_BUFFER_IDX (offset) == 0)
- /* Did a DEFVAR_PER_BUFFER without initializing the corresponding
- slot of buffer_local_flags */
- abort ();
-}
-
-
/* Similar but define a variable whose value is the Lisp Object stored
at a particular offset in the current kboard object. */