aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
authorStefan Monnier2007-11-16 20:36:34 +0000
committerStefan Monnier2007-11-16 20:36:34 +0000
commit30f95089ed1c8b84dd111fc5edf07b8de07401b2 (patch)
tree51c9396421f9f5d06f781b792189681df4aac8e1 /src/lisp.h
parentde8ebf6226a1948e9df250abd9a42b4ccff2a5c7 (diff)
downloademacs-30f95089ed1c8b84dd111fc5edf07b8de07401b2.tar.gz
emacs-30f95089ed1c8b84dd111fc5edf07b8de07401b2.zip
* alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
(allocate_pseudovector): Make non-static. * lisp.h (enum pvec_type): New tag PVEC_OTHER. (allocate_pseudovector): Declare. (ALLOCATE_PSEUDOVECTOR): Move from alloc.c
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 89c26b4f1f9..0d351e92895 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -348,7 +348,8 @@ enum pvec_type
348 PVEC_BUFFER = 0x20000, 348 PVEC_BUFFER = 0x20000,
349 PVEC_HASH_TABLE = 0x40000, 349 PVEC_HASH_TABLE = 0x40000,
350 PVEC_TERMINAL = 0x80000, 350 PVEC_TERMINAL = 0x80000,
351 PVEC_TYPE_MASK = 0xffe00 351 PVEC_OTHER = 0x100000,
352 PVEC_TYPE_MASK = 0x1ffe00
352 353
353#if 0 /* This is used to make the value of PSEUDOVECTOR_FLAG available to 354#if 0 /* This is used to make the value of PSEUDOVECTOR_FLAG available to
354 GDB. It doesn't work on OS Alpha. Moved to a variable in 355 GDB. It doesn't work on OS Alpha. Moved to a variable in
@@ -2606,6 +2607,11 @@ EXFUN (Fmake_char_table, 2);
2606extern Lisp_Object make_sub_char_table P_ ((Lisp_Object)); 2607extern Lisp_Object make_sub_char_table P_ ((Lisp_Object));
2607extern Lisp_Object Qchar_table_extra_slots; 2608extern Lisp_Object Qchar_table_extra_slots;
2608extern struct Lisp_Vector *allocate_vector P_ ((EMACS_INT)); 2609extern struct Lisp_Vector *allocate_vector P_ ((EMACS_INT));
2610extern struct Lisp_Vector *allocate_pseudovector P_ ((int memlen, int lisplen, EMACS_INT tag));
2611#define ALLOCATE_PSEUDOVECTOR(typ,field,tag) \
2612 ((typ*) \
2613 allocate_pseudovector \
2614 (VECSIZE (typ), PSEUDOVECSIZE (typ, field), tag))
2609extern struct Lisp_Vector *allocate_other_vector P_ ((EMACS_INT)); 2615extern struct Lisp_Vector *allocate_other_vector P_ ((EMACS_INT));
2610extern struct Lisp_Hash_Table *allocate_hash_table P_ ((void)); 2616extern struct Lisp_Hash_Table *allocate_hash_table P_ ((void));
2611extern struct window *allocate_window P_ ((void)); 2617extern struct window *allocate_window P_ ((void));