Commit 8a450f0a authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.

(Fcurrent_window_configuration): Use VECSIZE macro instead.
parent 5cacdcfd
......@@ -5624,8 +5624,6 @@ struct saved_window
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 @@ redirection (see `redirect-frame-focus'). */)
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment