aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-04 00:50:25 -0700
committerDan Nicolaescu2010-07-04 00:50:25 -0700
commit971de7fb158335fbda39525feb2d7776a26bc030 (patch)
tree605333d85f16e35bb06baffcb66ac49f4ec0dce9 /src/frame.c
parentb8463cbfbe2c5183cf40772df2746e58b787ddeb (diff)
downloademacs-971de7fb158335fbda39525feb2d7776a26bc030.tar.gz
emacs-971de7fb158335fbda39525feb2d7776a26bc030.zip
Convert (most) functions in src to standard C.
* src/alloc.c: Convert function definitions to standard C. * src/atimer.c: * src/bidi.c: * src/bytecode.c: * src/callint.c: * src/callproc.c: * src/casefiddle.c: * src/casetab.c: * src/category.c: * src/ccl.c: * src/character.c: * src/charset.c: * src/chartab.c: * src/cmds.c: * src/coding.c: * src/composite.c: * src/data.c: * src/dbusbind.c: * src/dired.c: * src/dispnew.c: * src/doc.c: * src/doprnt.c: * src/ecrt0.c: * src/editfns.c: * src/fileio.c: * src/filelock.c: * src/filemode.c: * src/fns.c: * src/font.c: * src/fontset.c: * src/frame.c: * src/fringe.c: * src/ftfont.c: * src/ftxfont.c: * src/gtkutil.c: * src/indent.c: * src/insdel.c: * src/intervals.c: * src/keymap.c: * src/lread.c: * src/macros.c: * src/marker.c: * src/md5.c: * src/menu.c: * src/minibuf.c: * src/prefix-args.c: * src/print.c: * src/ralloc.c: * src/regex.c: * src/region-cache.c: * src/scroll.c: * src/search.c: * src/sound.c: * src/strftime.c: * src/syntax.c: * src/sysdep.c: * src/termcap.c: * src/terminal.c: * src/terminfo.c: * src/textprop.c: * src/tparam.c: * src/undo.c: * src/unexelf.c: * src/window.c: * src/xfaces.c: * src/xfns.c: * src/xfont.c: * src/xftfont.c: * src/xgselect.c: * src/xmenu.c: * src/xrdb.c: * src/xselect.c: * src/xsettings.c: * src/xsmfns.c: * src/xterm.c: Likewise.
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c210
1 files changed, 55 insertions, 155 deletions
diff --git a/src/frame.c b/src/frame.c
index 3199d35004e..33b09c66cd7 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -142,9 +142,7 @@ static Lisp_Object Vdelete_frame_functions, Qdelete_frame_functions;
142int focus_follows_mouse; 142int focus_follows_mouse;
143 143
144static void 144static void
145set_menu_bar_lines_1 (window, n) 145set_menu_bar_lines_1 (Lisp_Object window, int n)
146 Lisp_Object window;
147 int n;
148{ 146{
149 struct window *w = XWINDOW (window); 147 struct window *w = XWINDOW (window);
150 148
@@ -170,9 +168,7 @@ set_menu_bar_lines_1 (window, n)
170} 168}
171 169
172void 170void
173set_menu_bar_lines (f, value, oldval) 171set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
174 struct frame *f;
175 Lisp_Object value, oldval;
176{ 172{
177 int nlines; 173 int nlines;
178 int olines = FRAME_MENU_BAR_LINES (f); 174 int olines = FRAME_MENU_BAR_LINES (f);
@@ -202,9 +198,9 @@ set_menu_bar_lines (f, value, oldval)
202Lisp_Object Vframe_list; 198Lisp_Object Vframe_list;
203 199
204extern Lisp_Object Vminibuffer_list; 200extern Lisp_Object Vminibuffer_list;
205extern Lisp_Object get_minibuffer (); 201extern Lisp_Object get_minibuffer (int);
206extern Lisp_Object Fhandle_switch_frame (); 202extern Lisp_Object Fhandle_switch_frame (Lisp_Object event);
207extern Lisp_Object Fredirect_frame_focus (); 203extern Lisp_Object Fredirect_frame_focus (Lisp_Object frame, Lisp_Object focus_frame);
208extern Lisp_Object x_get_focus_frame (); 204extern Lisp_Object x_get_focus_frame ();
209extern Lisp_Object QCname, Qfont_param; 205extern Lisp_Object QCname, Qfont_param;
210 206
@@ -282,8 +278,7 @@ FRAME defaults to the currently selected frame. */)
282} 278}
283 279
284struct frame * 280struct frame *
285make_frame (mini_p) 281make_frame (int mini_p)
286 int mini_p;
287{ 282{
288 Lisp_Object frame; 283 Lisp_Object frame;
289 register struct frame *f; 284 register struct frame *f;
@@ -433,10 +428,7 @@ make_frame (mini_p)
433 default (the global minibuffer). */ 428 default (the global minibuffer). */
434 429
435struct frame * 430struct frame *
436make_frame_without_minibuffer (mini_window, kb, display) 431make_frame_without_minibuffer (register Lisp_Object mini_window, KBOARD *kb, Lisp_Object display)
437 register Lisp_Object mini_window;
438 KBOARD *kb;
439 Lisp_Object display;
440{ 432{
441 register struct frame *f; 433 register struct frame *f;
442 struct gcpro gcpro1; 434 struct gcpro gcpro1;
@@ -485,7 +477,7 @@ make_frame_without_minibuffer (mini_window, kb, display)
485/* Make a frame containing only a minibuffer window. */ 477/* Make a frame containing only a minibuffer window. */
486 478
487struct frame * 479struct frame *
488make_minibuffer_frame () 480make_minibuffer_frame (void)
489{ 481{
490 /* First make a frame containing just a root window, no minibuffer. */ 482 /* First make a frame containing just a root window, no minibuffer. */
491 483
@@ -784,9 +776,7 @@ affects all frames on the same terminal device. */)
784 The value of NORECORD is passed as argument to Fselect_window. */ 776 The value of NORECORD is passed as argument to Fselect_window. */
785 777
786Lisp_Object 778Lisp_Object
787do_switch_frame (frame, track, for_deletion, norecord) 779do_switch_frame (Lisp_Object frame, int track, int for_deletion, Lisp_Object norecord)
788 Lisp_Object frame, norecord;
789 int track, for_deletion;
790{ 780{
791 struct frame *sf = SELECTED_FRAME (); 781 struct frame *sf = SELECTED_FRAME ();
792 782
@@ -1061,9 +1051,7 @@ DEFUN ("frame-list", Fframe_list, Sframe_list,
1061 Otherwise, include all frames. */ 1051 Otherwise, include all frames. */
1062 1052
1063static Lisp_Object 1053static Lisp_Object
1064next_frame (frame, minibuf) 1054next_frame (Lisp_Object frame, Lisp_Object minibuf)
1065 Lisp_Object frame;
1066 Lisp_Object minibuf;
1067{ 1055{
1068 Lisp_Object tail; 1056 Lisp_Object tail;
1069 int passed = 0; 1057 int passed = 0;
@@ -1141,9 +1129,7 @@ next_frame (frame, minibuf)
1141 Otherwise, include all frames. */ 1129 Otherwise, include all frames. */
1142 1130
1143static Lisp_Object 1131static Lisp_Object
1144prev_frame (frame, minibuf) 1132prev_frame (Lisp_Object frame, Lisp_Object minibuf)
1145 Lisp_Object frame;
1146 Lisp_Object minibuf;
1147{ 1133{
1148 Lisp_Object tail; 1134 Lisp_Object tail;
1149 Lisp_Object prev; 1135 Lisp_Object prev;
@@ -1261,8 +1247,7 @@ Otherwise, include all frames. */)
1261 (Exception: if F is the terminal frame, and we are using X, return 1.) */ 1247 (Exception: if F is the terminal frame, and we are using X, return 1.) */
1262 1248
1263int 1249int
1264other_visible_frames (f) 1250other_visible_frames (FRAME_PTR f)
1265 FRAME_PTR f;
1266{ 1251{
1267 /* We know the selected frame is visible, 1252 /* We know the selected frame is visible,
1268 so if F is some other frame, it can't be the sole visible one. */ 1253 so if F is some other frame, it can't be the sole visible one. */
@@ -1316,11 +1301,11 @@ extern Lisp_Object Qrun_hook_with_args;
1316 this. Any other value of FORCE implements the semantics 1301 this. Any other value of FORCE implements the semantics
1317 described for Fdelete_frame. */ 1302 described for Fdelete_frame. */
1318Lisp_Object 1303Lisp_Object
1319delete_frame (frame, force) 1304delete_frame (Lisp_Object frame, Lisp_Object force)
1320 /* If we use `register' here, gcc-4.0.2 on amd64 using 1305 /* If we use `register' here, gcc-4.0.2 on amd64 using
1321 -DUSE_LISP_UNION_TYPE complains further down that we're getting the 1306 -DUSE_LISP_UNION_TYPE complains further down that we're getting the
1322 address of `force'. Go figure. */ 1307 address of `force'. Go figure. */
1323 Lisp_Object frame, force; 1308
1324{ 1309{
1325 struct frame *f; 1310 struct frame *f;
1326 struct frame *sf = SELECTED_FRAME (); 1311 struct frame *sf = SELECTED_FRAME ();
@@ -1858,8 +1843,7 @@ If omitted, FRAME defaults to the currently selected frame. */)
1858 and all its descendents. */ 1843 and all its descendents. */
1859 1844
1860static void 1845static void
1861make_frame_visible_1 (window) 1846make_frame_visible_1 (Lisp_Object window)
1862 Lisp_Object window;
1863{ 1847{
1864 struct window *w; 1848 struct window *w;
1865 1849
@@ -2136,9 +2120,7 @@ See `redirect-frame-focus'. */)
2136/* Return the value of frame parameter PROP in frame FRAME. */ 2120/* Return the value of frame parameter PROP in frame FRAME. */
2137 2121
2138Lisp_Object 2122Lisp_Object
2139get_frame_param (frame, prop) 2123get_frame_param (register struct frame *frame, Lisp_Object prop)
2140 register struct frame *frame;
2141 Lisp_Object prop;
2142{ 2124{
2143 register Lisp_Object tem; 2125 register Lisp_Object tem;
2144 2126
@@ -2151,8 +2133,7 @@ get_frame_param (frame, prop)
2151/* Return the buffer-predicate of the selected frame. */ 2133/* Return the buffer-predicate of the selected frame. */
2152 2134
2153Lisp_Object 2135Lisp_Object
2154frame_buffer_predicate (frame) 2136frame_buffer_predicate (Lisp_Object frame)
2155 Lisp_Object frame;
2156{ 2137{
2157 return XFRAME (frame)->buffer_predicate; 2138 return XFRAME (frame)->buffer_predicate;
2158} 2139}
@@ -2160,8 +2141,7 @@ frame_buffer_predicate (frame)
2160/* Return the buffer-list of the selected frame. */ 2141/* Return the buffer-list of the selected frame. */
2161 2142
2162Lisp_Object 2143Lisp_Object
2163frame_buffer_list (frame) 2144frame_buffer_list (Lisp_Object frame)
2164 Lisp_Object frame;
2165{ 2145{
2166 return XFRAME (frame)->buffer_list; 2146 return XFRAME (frame)->buffer_list;
2167} 2147}
@@ -2169,8 +2149,7 @@ frame_buffer_list (frame)
2169/* Set the buffer-list of the selected frame. */ 2149/* Set the buffer-list of the selected frame. */
2170 2150
2171void 2151void
2172set_frame_buffer_list (frame, list) 2152set_frame_buffer_list (Lisp_Object frame, Lisp_Object list)
2173 Lisp_Object frame, list;
2174{ 2153{
2175 XFRAME (frame)->buffer_list = list; 2154 XFRAME (frame)->buffer_list = list;
2176} 2155}
@@ -2178,8 +2157,7 @@ set_frame_buffer_list (frame, list)
2178/* Discard BUFFER from the buffer-list and buried-buffer-list of each frame. */ 2157/* Discard BUFFER from the buffer-list and buried-buffer-list of each frame. */
2179 2158
2180void 2159void
2181frames_discard_buffer (buffer) 2160frames_discard_buffer (Lisp_Object buffer)
2182 Lisp_Object buffer;
2183{ 2161{
2184 Lisp_Object frame, tail; 2162 Lisp_Object frame, tail;
2185 2163
@@ -2196,9 +2174,7 @@ frames_discard_buffer (buffer)
2196 If the alist already has an element for PROP, we change it. */ 2174 If the alist already has an element for PROP, we change it. */
2197 2175
2198void 2176void
2199store_in_alist (alistptr, prop, val) 2177store_in_alist (Lisp_Object *alistptr, Lisp_Object prop, Lisp_Object val)
2200 Lisp_Object *alistptr, val;
2201 Lisp_Object prop;
2202{ 2178{
2203 register Lisp_Object tem; 2179 register Lisp_Object tem;
2204 2180
@@ -2210,9 +2186,7 @@ store_in_alist (alistptr, prop, val)
2210} 2186}
2211 2187
2212static int 2188static int
2213frame_name_fnn_p (str, len) 2189frame_name_fnn_p (char *str, EMACS_INT len)
2214 char *str;
2215 EMACS_INT len;
2216{ 2190{
2217 if (len > 1 && str[0] == 'F') 2191 if (len > 1 && str[0] == 'F')
2218 { 2192 {
@@ -2230,9 +2204,7 @@ frame_name_fnn_p (str, len)
2230 Modeled after x_set_name which is used for WINDOW frames. */ 2204 Modeled after x_set_name which is used for WINDOW frames. */
2231 2205
2232static void 2206static void
2233set_term_frame_name (f, name) 2207set_term_frame_name (struct frame *f, Lisp_Object name)
2234 struct frame *f;
2235 Lisp_Object name;
2236{ 2208{
2237 f->explicit_name = ! NILP (name); 2209 f->explicit_name = ! NILP (name);
2238 2210
@@ -2270,9 +2242,7 @@ set_term_frame_name (f, name)
2270} 2242}
2271 2243
2272void 2244void
2273store_frame_param (f, prop, val) 2245store_frame_param (struct frame *f, Lisp_Object prop, Lisp_Object val)
2274 struct frame *f;
2275 Lisp_Object prop, val;
2276{ 2246{
2277 register Lisp_Object old_alist_elt; 2247 register Lisp_Object old_alist_elt;
2278 2248
@@ -2893,12 +2863,7 @@ extern Lisp_Object Qtop;
2893 */ 2863 */
2894 2864
2895void 2865void
2896x_fullscreen_adjust (f, width, height, top_pos, left_pos) 2866x_fullscreen_adjust (struct frame *f, int *width, int *height, int *top_pos, int *left_pos)
2897 struct frame *f;
2898 int *width;
2899 int *height;
2900 int *top_pos;
2901 int *left_pos;
2902{ 2867{
2903 int newwidth = FRAME_COLS (f); 2868 int newwidth = FRAME_COLS (f);
2904 int newheight = FRAME_LINES (f); 2869 int newheight = FRAME_LINES (f);
@@ -2941,9 +2906,7 @@ x_fullscreen_adjust (f, width, height, top_pos, left_pos)
2941 to store the new value in the parameter alist. */ 2906 to store the new value in the parameter alist. */
2942 2907
2943void 2908void
2944x_set_frame_parameters (f, alist) 2909x_set_frame_parameters (FRAME_PTR f, Lisp_Object alist)
2945 FRAME_PTR f;
2946 Lisp_Object alist;
2947{ 2910{
2948 Lisp_Object tail; 2911 Lisp_Object tail;
2949 2912
@@ -3217,9 +3180,7 @@ x_set_frame_parameters (f, alist)
3217 param_alist need to be considered here. */ 3180 param_alist need to be considered here. */
3218 3181
3219void 3182void
3220x_report_frame_params (f, alistptr) 3183x_report_frame_params (struct frame *f, Lisp_Object *alistptr)
3221 struct frame *f;
3222 Lisp_Object *alistptr;
3223{ 3184{
3224 char buf[16]; 3185 char buf[16];
3225 Lisp_Object tem; 3186 Lisp_Object tem;
@@ -3288,9 +3249,7 @@ x_report_frame_params (f, alistptr)
3288 the previous value of that parameter, NEW_VALUE is the new value. */ 3249 the previous value of that parameter, NEW_VALUE is the new value. */
3289 3250
3290void 3251void
3291x_set_fullscreen (f, new_value, old_value) 3252x_set_fullscreen (struct frame *f, Lisp_Object new_value, Lisp_Object old_value)
3292 struct frame *f;
3293 Lisp_Object new_value, old_value;
3294{ 3253{
3295 if (NILP (new_value)) 3254 if (NILP (new_value))
3296 f->want_fullscreen = FULLSCREEN_NONE; 3255 f->want_fullscreen = FULLSCREEN_NONE;
@@ -3312,9 +3271,7 @@ x_set_fullscreen (f, new_value, old_value)
3312 the previous value of that parameter, NEW_VALUE is the new value. */ 3271 the previous value of that parameter, NEW_VALUE is the new value. */
3313 3272
3314void 3273void
3315x_set_line_spacing (f, new_value, old_value) 3274x_set_line_spacing (struct frame *f, Lisp_Object new_value, Lisp_Object old_value)
3316 struct frame *f;
3317 Lisp_Object new_value, old_value;
3318{ 3275{
3319 if (NILP (new_value)) 3276 if (NILP (new_value))
3320 f->extra_line_spacing = 0; 3277 f->extra_line_spacing = 0;
@@ -3331,9 +3288,7 @@ x_set_line_spacing (f, new_value, old_value)
3331 the previous value of that parameter, NEW_VALUE is the new value. */ 3288 the previous value of that parameter, NEW_VALUE is the new value. */
3332 3289
3333void 3290void
3334x_set_screen_gamma (f, new_value, old_value) 3291x_set_screen_gamma (struct frame *f, Lisp_Object new_value, Lisp_Object old_value)
3335 struct frame *f;
3336 Lisp_Object new_value, old_value;
3337{ 3292{
3338 Lisp_Object bgcolor; 3293 Lisp_Object bgcolor;
3339 3294
@@ -3363,9 +3318,7 @@ x_set_screen_gamma (f, new_value, old_value)
3363 3318
3364 3319
3365void 3320void
3366x_set_font (f, arg, oldval) 3321x_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
3367 struct frame *f;
3368 Lisp_Object arg, oldval;
3369{ 3322{
3370 Lisp_Object frame, font_object, font_param = Qnil; 3323 Lisp_Object frame, font_object, font_param = Qnil;
3371 int fontset = -1; 3324 int fontset = -1;
@@ -3462,9 +3415,7 @@ x_set_font (f, arg, oldval)
3462 3415
3463 3416
3464void 3417void
3465x_set_font_backend (f, new_value, old_value) 3418x_set_font_backend (struct frame *f, Lisp_Object new_value, Lisp_Object old_value)
3466 struct frame *f;
3467 Lisp_Object new_value, old_value;
3468{ 3419{
3469 if (! NILP (new_value) 3420 if (! NILP (new_value)
3470 && !CONSP (new_value)) 3421 && !CONSP (new_value))
@@ -3520,17 +3471,13 @@ x_set_font_backend (f, new_value, old_value)
3520 3471
3521 3472
3522void 3473void
3523x_set_fringe_width (f, new_value, old_value) 3474x_set_fringe_width (struct frame *f, Lisp_Object new_value, Lisp_Object old_value)
3524 struct frame *f;
3525 Lisp_Object new_value, old_value;
3526{ 3475{
3527 compute_fringe_widths (f, 1); 3476 compute_fringe_widths (f, 1);
3528} 3477}
3529 3478
3530void 3479void
3531x_set_border_width (f, arg, oldval) 3480x_set_border_width (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
3532 struct frame *f;
3533 Lisp_Object arg, oldval;
3534{ 3481{
3535 CHECK_NUMBER (arg); 3482 CHECK_NUMBER (arg);
3536 3483
@@ -3544,9 +3491,7 @@ x_set_border_width (f, arg, oldval)
3544} 3491}
3545 3492
3546void 3493void
3547x_set_internal_border_width (f, arg, oldval) 3494x_set_internal_border_width (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
3548 struct frame *f;
3549 Lisp_Object arg, oldval;
3550{ 3495{
3551 int old = FRAME_INTERNAL_BORDER_WIDTH (f); 3496 int old = FRAME_INTERNAL_BORDER_WIDTH (f);
3552 3497
@@ -3574,9 +3519,7 @@ x_set_internal_border_width (f, arg, oldval)
3574} 3519}
3575 3520
3576void 3521void
3577x_set_visibility (f, value, oldval) 3522x_set_visibility (struct frame *f, Lisp_Object value, Lisp_Object oldval)
3578 struct frame *f;
3579 Lisp_Object value, oldval;
3580{ 3523{
3581 Lisp_Object frame; 3524 Lisp_Object frame;
3582 XSETFRAME (frame, f); 3525 XSETFRAME (frame, f);
@@ -3590,33 +3533,25 @@ x_set_visibility (f, value, oldval)
3590} 3533}
3591 3534
3592void 3535void
3593x_set_autoraise (f, arg, oldval) 3536x_set_autoraise (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
3594 struct frame *f;
3595 Lisp_Object arg, oldval;
3596{ 3537{
3597 f->auto_raise = !EQ (Qnil, arg); 3538 f->auto_raise = !EQ (Qnil, arg);
3598} 3539}
3599 3540
3600void 3541void
3601x_set_autolower (f, arg, oldval) 3542x_set_autolower (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
3602 struct frame *f;
3603 Lisp_Object arg, oldval;
3604{ 3543{
3605 f->auto_lower = !EQ (Qnil, arg); 3544 f->auto_lower = !EQ (Qnil, arg);
3606} 3545}
3607 3546
3608void 3547void
3609x_set_unsplittable (f, arg, oldval) 3548x_set_unsplittable (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
3610 struct frame *f;
3611 Lisp_Object arg, oldval;
3612{ 3549{
3613 f->no_split = !NILP (arg); 3550 f->no_split = !NILP (arg);
3614} 3551}
3615 3552
3616void 3553void
3617x_set_vertical_scroll_bars (f, arg, oldval) 3554x_set_vertical_scroll_bars (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
3618 struct frame *f;
3619 Lisp_Object arg, oldval;
3620{ 3555{
3621 if ((EQ (arg, Qleft) && FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (f)) 3556 if ((EQ (arg, Qleft) && FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (f))
3622 || (EQ (arg, Qright) && FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f)) 3557 || (EQ (arg, Qright) && FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f))
@@ -3647,9 +3582,7 @@ x_set_vertical_scroll_bars (f, arg, oldval)
3647} 3582}
3648 3583
3649void 3584void
3650x_set_scroll_bar_width (f, arg, oldval) 3585x_set_scroll_bar_width (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
3651 struct frame *f;
3652 Lisp_Object arg, oldval;
3653{ 3586{
3654 int wid = FRAME_COLUMN_WIDTH (f); 3587 int wid = FRAME_COLUMN_WIDTH (f);
3655 3588
@@ -3684,8 +3617,7 @@ x_set_scroll_bar_width (f, arg, oldval)
3684/* Return non-nil if frame F wants a bitmap icon. */ 3617/* Return non-nil if frame F wants a bitmap icon. */
3685 3618
3686Lisp_Object 3619Lisp_Object
3687x_icon_type (f) 3620x_icon_type (FRAME_PTR f)
3688 FRAME_PTR f;
3689{ 3621{
3690 Lisp_Object tem; 3622 Lisp_Object tem;
3691 3623
@@ -3697,9 +3629,7 @@ x_icon_type (f)
3697} 3629}
3698 3630
3699void 3631void
3700x_set_alpha (f, arg, oldval) 3632x_set_alpha (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
3701 struct frame *f;
3702 Lisp_Object arg, oldval;
3703{ 3633{
3704 double alpha = 1.0; 3634 double alpha = 1.0;
3705 double newval[2]; 3635 double newval[2];
@@ -3757,7 +3687,7 @@ x_set_alpha (f, arg, oldval)
3757 Fix it up, or set it to `emacs' if it is too hopeless. */ 3687 Fix it up, or set it to `emacs' if it is too hopeless. */
3758 3688
3759void 3689void
3760validate_x_resource_name () 3690validate_x_resource_name (void)
3761{ 3691{
3762 int len = 0; 3692 int len = 0;
3763 /* Number of valid characters in the resource name. */ 3693 /* Number of valid characters in the resource name. */
@@ -3832,9 +3762,7 @@ extern Display_Info *check_x_display_info (Lisp_Object);
3832 See Fx_get_resource below for other parameters. */ 3762 See Fx_get_resource below for other parameters. */
3833 3763
3834static Lisp_Object 3764static Lisp_Object
3835xrdb_get_resource (rdb, attribute, class, component, subclass) 3765xrdb_get_resource (XrmDatabase rdb, Lisp_Object attribute, Lisp_Object class, Lisp_Object component, Lisp_Object subclass)
3836 XrmDatabase rdb;
3837 Lisp_Object attribute, class, component, subclass;
3838{ 3766{
3839 register char *value; 3767 register char *value;
3840 char *name_key; 3768 char *name_key;
@@ -3919,9 +3847,7 @@ and the class is `Emacs.CLASS.SUBCLASS'. */)
3919/* Get an X resource, like Fx_get_resource, but for display DPYINFO. */ 3847/* Get an X resource, like Fx_get_resource, but for display DPYINFO. */
3920 3848
3921Lisp_Object 3849Lisp_Object
3922display_x_get_resource (dpyinfo, attribute, class, component, subclass) 3850display_x_get_resource (Display_Info *dpyinfo, Lisp_Object attribute, Lisp_Object class, Lisp_Object component, Lisp_Object subclass)
3923 Display_Info *dpyinfo;
3924 Lisp_Object attribute, class, component, subclass;
3925{ 3851{
3926 return xrdb_get_resource (dpyinfo->xrdb, 3852 return xrdb_get_resource (dpyinfo->xrdb,
3927 attribute, class, component, subclass); 3853 attribute, class, component, subclass);
@@ -3931,8 +3857,7 @@ display_x_get_resource (dpyinfo, attribute, class, component, subclass)
3931/* Used when C code wants a resource value. */ 3857/* Used when C code wants a resource value. */
3932/* Called from oldXMenu/Create.c. */ 3858/* Called from oldXMenu/Create.c. */
3933char * 3859char *
3934x_get_resource_string (attribute, class) 3860x_get_resource_string (char *attribute, char *class)
3935 char *attribute, *class;
3936{ 3861{
3937 char *name_key; 3862 char *name_key;
3938 char *class_key; 3863 char *class_key;
@@ -3965,12 +3890,7 @@ x_get_resource_string (attribute, class)
3965 and don't let it get stored in any Lisp-visible variables! */ 3890 and don't let it get stored in any Lisp-visible variables! */
3966 3891
3967Lisp_Object 3892Lisp_Object
3968x_get_arg (dpyinfo, alist, param, attribute, class, type) 3893x_get_arg (Display_Info *dpyinfo, Lisp_Object alist, Lisp_Object param, char *attribute, char *class, enum resource_types type)
3969 Display_Info *dpyinfo;
3970 Lisp_Object alist, param;
3971 char *attribute;
3972 char *class;
3973 enum resource_types type;
3974{ 3894{
3975 register Lisp_Object tem; 3895 register Lisp_Object tem;
3976 3896
@@ -4068,12 +3988,7 @@ x_get_arg (dpyinfo, alist, param, attribute, class, type)
4068} 3988}
4069 3989
4070Lisp_Object 3990Lisp_Object
4071x_frame_get_arg (f, alist, param, attribute, class, type) 3991x_frame_get_arg (struct frame *f, Lisp_Object alist, Lisp_Object param, char *attribute, char *class, enum resource_types type)
4072 struct frame *f;
4073 Lisp_Object alist, param;
4074 char *attribute;
4075 char *class;
4076 enum resource_types type;
4077{ 3992{
4078 return x_get_arg (FRAME_X_DISPLAY_INFO (f), 3993 return x_get_arg (FRAME_X_DISPLAY_INFO (f),
4079 alist, param, attribute, class, type); 3994 alist, param, attribute, class, type);
@@ -4082,12 +3997,7 @@ x_frame_get_arg (f, alist, param, attribute, class, type)
4082/* Like x_frame_get_arg, but also record the value in f->param_alist. */ 3997/* Like x_frame_get_arg, but also record the value in f->param_alist. */
4083 3998
4084Lisp_Object 3999Lisp_Object
4085x_frame_get_and_record_arg (f, alist, param, attribute, class, type) 4000x_frame_get_and_record_arg (struct frame *f, Lisp_Object alist, Lisp_Object param, char *attribute, char *class, enum resource_types type)
4086 struct frame *f;
4087 Lisp_Object alist, param;
4088 char *attribute;
4089 char *class;
4090 enum resource_types type;
4091{ 4001{
4092 Lisp_Object value; 4002 Lisp_Object value;
4093 4003
@@ -4107,14 +4017,7 @@ x_frame_get_and_record_arg (f, alist, param, attribute, class, type)
4107 If that is not found either, use the value DEFLT. */ 4017 If that is not found either, use the value DEFLT. */
4108 4018
4109Lisp_Object 4019Lisp_Object
4110x_default_parameter (f, alist, prop, deflt, xprop, xclass, type) 4020x_default_parameter (struct frame *f, Lisp_Object alist, Lisp_Object prop, Lisp_Object deflt, char *xprop, char *xclass, enum resource_types type)
4111 struct frame *f;
4112 Lisp_Object alist;
4113 Lisp_Object prop;
4114 Lisp_Object deflt;
4115 char *xprop;
4116 char *xclass;
4117 enum resource_types type;
4118{ 4021{
4119 Lisp_Object tem; 4022 Lisp_Object tem;
4120 4023
@@ -4208,10 +4111,7 @@ On Nextstep, this just calls `ns-parse-geometry'. */)
4208#define DEFAULT_COLS 80 4111#define DEFAULT_COLS 80
4209 4112
4210int 4113int
4211x_figure_window_size (f, parms, toolbar_p) 4114x_figure_window_size (struct frame *f, Lisp_Object parms, int toolbar_p)
4212 struct frame *f;
4213 Lisp_Object parms;
4214 int toolbar_p;
4215{ 4115{
4216 register Lisp_Object tem0, tem1, tem2; 4116 register Lisp_Object tem0, tem1, tem2;
4217 long window_prompting = 0; 4117 long window_prompting = 0;
@@ -4386,7 +4286,7 @@ x_figure_window_size (f, parms, toolbar_p)
4386#endif /* HAVE_WINDOW_SYSTEM */ 4286#endif /* HAVE_WINDOW_SYSTEM */
4387 4287
4388void 4288void
4389frame_make_pointer_invisible () 4289frame_make_pointer_invisible (void)
4390{ 4290{
4391 if (! NILP (Vmake_pointer_invisible)) 4291 if (! NILP (Vmake_pointer_invisible))
4392 { 4292 {
@@ -4406,7 +4306,7 @@ frame_make_pointer_invisible ()
4406} 4306}
4407 4307
4408void 4308void
4409frame_make_pointer_visible () 4309frame_make_pointer_visible (void)
4410{ 4310{
4411 /* We don't check Vmake_pointer_invisible here in case the 4311 /* We don't check Vmake_pointer_invisible here in case the
4412 pointer was invisible when Vmake_pointer_invisible was set to nil. */ 4312 pointer was invisible when Vmake_pointer_invisible was set to nil. */
@@ -4431,7 +4331,7 @@ frame_make_pointer_visible ()
4431 ***********************************************************************/ 4331 ***********************************************************************/
4432 4332
4433void 4333void
4434syms_of_frame () 4334syms_of_frame (void)
4435{ 4335{
4436 Qframep = intern_c_string ("framep"); 4336 Qframep = intern_c_string ("framep");
4437 staticpro (&Qframep); 4337 staticpro (&Qframep);