aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
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/alloc.c
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/alloc.c')
-rw-r--r--src/alloc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 12b7ac5e0bf..52565255a1d 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2967,7 +2967,7 @@ allocate_vector (nslots)
2967 2967
2968/* Allocate other vector-like structures. */ 2968/* Allocate other vector-like structures. */
2969 2969
2970static struct Lisp_Vector * 2970struct Lisp_Vector *
2971allocate_pseudovector (memlen, lisplen, tag) 2971allocate_pseudovector (memlen, lisplen, tag)
2972 int memlen, lisplen; 2972 int memlen, lisplen;
2973 EMACS_INT tag; 2973 EMACS_INT tag;
@@ -2983,10 +2983,6 @@ allocate_pseudovector (memlen, lisplen, tag)
2983 XSETPVECTYPE (v, tag); /* Add the appropriate tag. */ 2983 XSETPVECTYPE (v, tag); /* Add the appropriate tag. */
2984 return v; 2984 return v;
2985} 2985}
2986#define ALLOCATE_PSEUDOVECTOR(typ,field,tag) \
2987 ((typ*) \
2988 allocate_pseudovector \
2989 (VECSIZE (typ), PSEUDOVECSIZE (typ, field), tag))
2990 2986
2991struct Lisp_Hash_Table * 2987struct Lisp_Hash_Table *
2992allocate_hash_table (void) 2988allocate_hash_table (void)