comparison src/frame.c @ 9309:27370f65dfa1

(make_frame, Fframe_parameters, Fselected_frame, syms_of_frame): Don't use XFASTINT as an lvalue.
author Karl Heuer <kwzh@gnu.org>
date Tue, 04 Oct 1994 15:54:06 +0000
parents cb55d0155265
children b36d5e88cccc
comparison
equal deleted inserted replaced
9308:2c594629baaa 9309:27370f65dfa1
195 Correct size will be set up later with change_frame_size. */ 195 Correct size will be set up later with change_frame_size. */
196 196
197 f->width = 10; 197 f->width = 10;
198 f->height = 10; 198 f->height = 10;
199 199
200 XFASTINT (XWINDOW (root_window)->width) = 10; 200 XSETFASTINT (XWINDOW (root_window)->width, 10);
201 XFASTINT (XWINDOW (root_window)->height) = (mini_p ? 9 : 10); 201 XSETFASTINT (XWINDOW (root_window)->height, (mini_p ? 9 : 10));
202 202
203 if (mini_p) 203 if (mini_p)
204 { 204 {
205 XFASTINT (XWINDOW (mini_window)->width) = 10; 205 XSETFASTINT (XWINDOW (mini_window)->width, 10);
206 XFASTINT (XWINDOW (mini_window)->top) = 9; 206 XSETFASTINT (XWINDOW (mini_window)->top, 9);
207 XFASTINT (XWINDOW (mini_window)->height) = 1; 207 XSETFASTINT (XWINDOW (mini_window)->height, 1);
208 } 208 }
209 209
210 /* Choose a buffer for the frame's root window. */ 210 /* Choose a buffer for the frame's root window. */
211 { 211 {
212 Lisp_Object buf; 212 Lisp_Object buf;
231 231
232 f->root_window = root_window; 232 f->root_window = root_window;
233 f->selected_window = root_window; 233 f->selected_window = root_window;
234 /* Make sure this window seems more recently used than 234 /* Make sure this window seems more recently used than
235 a newly-created, never-selected window. */ 235 a newly-created, never-selected window. */
236 XFASTINT (XWINDOW (f->selected_window)->use_time) = ++window_select_count; 236 XSETFASTINT (XWINDOW (f->selected_window)->use_time, ++window_select_count);
237 237
238 return f; 238 return f;
239 } 239 }
240 240
241 /* Make a frame using a separate minibuffer window on another frame. 241 /* Make a frame using a separate minibuffer window on another frame.
1428 else 1428 else
1429 #endif 1429 #endif
1430 { 1430 {
1431 /* This ought to be correct in f->param_alist for an X frame. */ 1431 /* This ought to be correct in f->param_alist for an X frame. */
1432 Lisp_Object lines; 1432 Lisp_Object lines;
1433 XFASTINT (lines) = FRAME_MENU_BAR_LINES (f); 1433 XSETFASTINT (lines, FRAME_MENU_BAR_LINES (f));
1434 store_in_alist (&alist, Qmenu_bar_lines, lines); 1434 store_in_alist (&alist, Qmenu_bar_lines, lines);
1435 } 1435 }
1436 return alist; 1436 return alist;
1437 } 1437 }
1438 1438
1854 make-docfile does not pay attention to #if, for good reason! */ 1854 make-docfile does not pay attention to #if, for good reason! */
1855 0) 1855 0)
1856 () 1856 ()
1857 { 1857 {
1858 Lisp_Object tem; 1858 Lisp_Object tem;
1859 XFASTINT (tem) = 0; 1859 XSETFASTINT (tem, 0);
1860 return tem; 1860 return tem;
1861 } 1861 }
1862 1862
1863 DEFUN ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0, 1863 DEFUN ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0,
1864 0) 1864 0)
2117 Qwidth = intern ("width"); 2117 Qwidth = intern ("width");
2118 staticpro (&Qwidth); 2118 staticpro (&Qwidth);
2119 2119
2120 DEFVAR_LISP ("terminal-frame", &Vterminal_frame, 2120 DEFVAR_LISP ("terminal-frame", &Vterminal_frame,
2121 "The initial frame-object, which represents Emacs's stdout."); 2121 "The initial frame-object, which represents Emacs's stdout.");
2122 XFASTINT (Vterminal_frame) = 0; 2122 XSETFASTINT (Vterminal_frame, 0);
2123 2123
2124 defsubr (&Sselected_frame); 2124 defsubr (&Sselected_frame);
2125 defsubr (&Sframe_first_window); 2125 defsubr (&Sframe_first_window);
2126 defsubr (&Sframep); 2126 defsubr (&Sframep);
2127 defsubr (&Sframe_char_height); 2127 defsubr (&Sframe_char_height);