Mercurial > emacs
changeset 65004:bc5cf5fc0f9e
(SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
(Fcurrent_window_configuration): Use VECSIZE macro instead.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 16 Aug 2005 14:58:33 +0000 |
parents | 74ab28cf1192 |
children | 5a24bf173f5c |
files | src/window.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/window.c Tue Aug 16 14:58:16 2005 +0000 +++ b/src/window.c Tue Aug 16 14:58:33 2005 +0000 @@ -5624,8 +5624,6 @@ Lisp_Object scroll_bar_width, vertical_scroll_bar_type; }; -#define SAVED_WINDOW_VECTOR_SIZE 24 /* Arg to Fmake_vector */ - #define SAVED_WINDOW_N(swv,n) \ ((struct saved_window *) (XVECTOR ((swv)->contents[(n)]))) @@ -6205,7 +6203,7 @@ data->saved_windows = tem; for (i = 0; i < n_windows; i++) XVECTOR (tem)->contents[i] - = Fmake_vector (make_number (SAVED_WINDOW_VECTOR_SIZE), Qnil); + = Fmake_vector (make_number (VECSIZE (struct saved_window)), Qnil); save_window_save (FRAME_ROOT_WINDOW (f), XVECTOR (tem), 0); XSETWINDOW_CONFIGURATION (tem, data); return (tem);