diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 22 |
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 | ||
| 2970 | static struct Lisp_Vector * | 2970 | struct Lisp_Vector * |
| 2971 | allocate_pseudovector (memlen, lisplen, tag) | 2971 | allocate_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 | ||
| 2991 | struct Lisp_Hash_Table * | 2987 | struct Lisp_Hash_Table * |
| 2992 | allocate_hash_table (void) | 2988 | allocate_hash_table (void) |
| @@ -3033,22 +3029,6 @@ allocate_process () | |||
| 3033 | } | 3029 | } |
| 3034 | 3030 | ||
| 3035 | 3031 | ||
| 3036 | /* Only used for PVEC_WINDOW_CONFIGURATION. */ | ||
| 3037 | struct Lisp_Vector * | ||
| 3038 | allocate_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 | |||
| 3052 | DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, | 3032 | DEFUN ("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. |
| 3054 | See also the function `vector'. */) | 3034 | See also the function `vector'. */) |