diff options
| author | Stefan Monnier | 2007-11-16 21:24:59 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-11-16 21:24:59 +0000 |
| commit | 6d3f2bb282810d37331cf050993ea630f8e1f9c2 (patch) | |
| tree | f2cedc27dd48a9799bb4a5a1ea14acb3dce02b0d /src | |
| parent | b05b4e2787f085af0ebdf2ed1705e5f4f799dee5 (diff) | |
| download | emacs-6d3f2bb282810d37331cf050993ea630f8e1f9c2.tar.gz emacs-6d3f2bb282810d37331cf050993ea630f8e1f9c2.zip | |
* alloc.c (allocate_other_vector):
* lisp.h (allocate_other_vector): Remove.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/alloc.c | 16 | ||||
| -rw-r--r-- | src/lisp.h | 1 |
3 files changed, 4 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c0d55b6ca04..e1f5be9c0cf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * alloc.c (allocate_other_vector): | ||
| 4 | * lisp.h (allocate_other_vector): Remove. | ||
| 5 | |||
| 3 | * window.c (struct save_window_data): Move non-lisp data to the end | 6 | * window.c (struct save_window_data): Move non-lisp data to the end |
| 4 | and make it `int' rather than Lisp_Object. | 7 | and make it `int' rather than Lisp_Object. |
| 5 | (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR. | 8 | (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR. |
| @@ -29,6 +32,7 @@ | |||
| 29 | 32 | ||
| 30 | * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h. | 33 | * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h. |
| 31 | (allocate_pseudovector): Make non-static. | 34 | (allocate_pseudovector): Make non-static. |
| 35 | |||
| 32 | * lisp.h (enum pvec_type): New tag PVEC_OTHER. | 36 | * lisp.h (enum pvec_type): New tag PVEC_OTHER. |
| 33 | (allocate_pseudovector): Declare. | 37 | (allocate_pseudovector): Declare. |
| 34 | (ALLOCATE_PSEUDOVECTOR): Move from alloc.c | 38 | (ALLOCATE_PSEUDOVECTOR): Move from alloc.c |
diff --git a/src/alloc.c b/src/alloc.c index 52565255a1d..2d87e1806f0 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -3029,22 +3029,6 @@ allocate_process () | |||
| 3029 | } | 3029 | } |
| 3030 | 3030 | ||
| 3031 | 3031 | ||
| 3032 | /* Only used for PVEC_WINDOW_CONFIGURATION. */ | ||
| 3033 | struct Lisp_Vector * | ||
| 3034 | allocate_other_vector (len) | ||
| 3035 | EMACS_INT len; | ||
| 3036 | { | ||
| 3037 | struct Lisp_Vector *v = allocate_vectorlike (len); | ||
| 3038 | EMACS_INT i; | ||
| 3039 | |||
| 3040 | for (i = 0; i < len; ++i) | ||
| 3041 | v->contents[i] = Qnil; | ||
| 3042 | v->size = len; | ||
| 3043 | |||
| 3044 | return v; | ||
| 3045 | } | ||
| 3046 | |||
| 3047 | |||
| 3048 | DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, | 3032 | DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, |
| 3049 | 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. |
| 3050 | See also the function `vector'. */) | 3034 | See also the function `vector'. */) |
diff --git a/src/lisp.h b/src/lisp.h index 0d351e92895..aa160f44593 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2612,7 +2612,6 @@ extern struct Lisp_Vector *allocate_pseudovector P_ ((int memlen, int lisplen, E | |||
| 2612 | ((typ*) \ | 2612 | ((typ*) \ |
| 2613 | allocate_pseudovector \ | 2613 | allocate_pseudovector \ |
| 2614 | (VECSIZE (typ), PSEUDOVECSIZE (typ, field), tag)) | 2614 | (VECSIZE (typ), PSEUDOVECSIZE (typ, field), tag)) |
| 2615 | extern struct Lisp_Vector *allocate_other_vector P_ ((EMACS_INT)); | ||
| 2616 | extern struct Lisp_Hash_Table *allocate_hash_table P_ ((void)); | 2615 | extern struct Lisp_Hash_Table *allocate_hash_table P_ ((void)); |
| 2617 | extern struct window *allocate_window P_ ((void)); | 2616 | extern struct window *allocate_window P_ ((void)); |
| 2618 | extern struct frame *allocate_frame P_ ((void)); | 2617 | extern struct frame *allocate_frame P_ ((void)); |