aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorMiles Bader2007-12-06 09:51:45 +0000
committerMiles Bader2007-12-06 09:51:45 +0000
commit0bd508417142ff377f34aec8dcec9438d9175c2c (patch)
tree4d60fe09e5cebf7d79766b11e9cda8cc1c9dbb9b /src/alloc.c
parent98fe991da804a42f53f6a5e84cd5eab18a82e181 (diff)
parent9fb1ba8090da3528de56158a79bd3527d31c7f2f (diff)
downloademacs-0bd508417142ff377f34aec8dcec9438d9175c2c.tar.gz
emacs-0bd508417142ff377f34aec8dcec9438d9175c2c.zip
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-294
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 5e3c38943f4..88f37ee363c 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)
@@ -3033,22 +3029,6 @@ allocate_process ()
3033} 3029}
3034 3030
3035 3031
3036/* Only used for PVEC_WINDOW_CONFIGURATION. */
3037struct Lisp_Vector *
3038allocate_other_vector (len)
3039 EMACS_INT len;
3040{
3041 struct Lisp_Vector *v = allocate_vectorlike (len);
3042 EMACS_INT i;
3043
3044 for (i = 0; i < len; ++i)
3045 v->contents[i] = Qnil;
3046 v->size = len;
3047
3048 return v;
3049}
3050
3051
3052DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, 3032DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0,
3053 doc: /* Return a newly created vector of length LENGTH, with each element being INIT. 3033 doc: /* Return a newly created vector of length LENGTH, with each element being INIT.
3054See also the function `vector'. */) 3034See also the function `vector'. */)