diff options
| author | Dan Nicolaescu | 2010-07-04 00:50:25 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-04 00:50:25 -0700 |
| commit | 971de7fb158335fbda39525feb2d7776a26bc030 (patch) | |
| tree | 605333d85f16e35bb06baffcb66ac49f4ec0dce9 /src/frame.c | |
| parent | b8463cbfbe2c5183cf40772df2746e58b787ddeb (diff) | |
| download | emacs-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.c | 210 |
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; | |||
| 142 | int focus_follows_mouse; | 142 | int focus_follows_mouse; |
| 143 | 143 | ||
| 144 | static void | 144 | static void |
| 145 | set_menu_bar_lines_1 (window, n) | 145 | set_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 | ||
| 172 | void | 170 | void |
| 173 | set_menu_bar_lines (f, value, oldval) | 171 | set_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) | |||
| 202 | Lisp_Object Vframe_list; | 198 | Lisp_Object Vframe_list; |
| 203 | 199 | ||
| 204 | extern Lisp_Object Vminibuffer_list; | 200 | extern Lisp_Object Vminibuffer_list; |
| 205 | extern Lisp_Object get_minibuffer (); | 201 | extern Lisp_Object get_minibuffer (int); |
| 206 | extern Lisp_Object Fhandle_switch_frame (); | 202 | extern Lisp_Object Fhandle_switch_frame (Lisp_Object event); |
| 207 | extern Lisp_Object Fredirect_frame_focus (); | 203 | extern Lisp_Object Fredirect_frame_focus (Lisp_Object frame, Lisp_Object focus_frame); |
| 208 | extern Lisp_Object x_get_focus_frame (); | 204 | extern Lisp_Object x_get_focus_frame (); |
| 209 | extern Lisp_Object QCname, Qfont_param; | 205 | extern Lisp_Object QCname, Qfont_param; |
| 210 | 206 | ||
| @@ -282,8 +278,7 @@ FRAME defaults to the currently selected frame. */) | |||
| 282 | } | 278 | } |
| 283 | 279 | ||
| 284 | struct frame * | 280 | struct frame * |
| 285 | make_frame (mini_p) | 281 | make_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 | ||
| 435 | struct frame * | 430 | struct frame * |
| 436 | make_frame_without_minibuffer (mini_window, kb, display) | 431 | make_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 | ||
| 487 | struct frame * | 479 | struct frame * |
| 488 | make_minibuffer_frame () | 480 | make_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 | ||
| 786 | Lisp_Object | 778 | Lisp_Object |
| 787 | do_switch_frame (frame, track, for_deletion, norecord) | 779 | do_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 | ||
| 1063 | static Lisp_Object | 1053 | static Lisp_Object |
| 1064 | next_frame (frame, minibuf) | 1054 | next_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 | ||
| 1143 | static Lisp_Object | 1131 | static Lisp_Object |
| 1144 | prev_frame (frame, minibuf) | 1132 | prev_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 | ||
| 1263 | int | 1249 | int |
| 1264 | other_visible_frames (f) | 1250 | other_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. */ |
| 1318 | Lisp_Object | 1303 | Lisp_Object |
| 1319 | delete_frame (frame, force) | 1304 | delete_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 | ||
| 1860 | static void | 1845 | static void |
| 1861 | make_frame_visible_1 (window) | 1846 | make_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 | ||
| 2138 | Lisp_Object | 2122 | Lisp_Object |
| 2139 | get_frame_param (frame, prop) | 2123 | get_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 | ||
| 2153 | Lisp_Object | 2135 | Lisp_Object |
| 2154 | frame_buffer_predicate (frame) | 2136 | frame_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 | ||
| 2162 | Lisp_Object | 2143 | Lisp_Object |
| 2163 | frame_buffer_list (frame) | 2144 | frame_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 | ||
| 2171 | void | 2151 | void |
| 2172 | set_frame_buffer_list (frame, list) | 2152 | set_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 | ||
| 2180 | void | 2159 | void |
| 2181 | frames_discard_buffer (buffer) | 2160 | frames_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 | ||
| 2198 | void | 2176 | void |
| 2199 | store_in_alist (alistptr, prop, val) | 2177 | store_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 | ||
| 2212 | static int | 2188 | static int |
| 2213 | frame_name_fnn_p (str, len) | 2189 | frame_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 | ||
| 2232 | static void | 2206 | static void |
| 2233 | set_term_frame_name (f, name) | 2207 | set_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 | ||
| 2272 | void | 2244 | void |
| 2273 | store_frame_param (f, prop, val) | 2245 | store_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 | ||
| 2895 | void | 2865 | void |
| 2896 | x_fullscreen_adjust (f, width, height, top_pos, left_pos) | 2866 | x_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 | ||
| 2943 | void | 2908 | void |
| 2944 | x_set_frame_parameters (f, alist) | 2909 | x_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 | ||
| 3219 | void | 3182 | void |
| 3220 | x_report_frame_params (f, alistptr) | 3183 | x_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 | ||
| 3290 | void | 3251 | void |
| 3291 | x_set_fullscreen (f, new_value, old_value) | 3252 | x_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 | ||
| 3314 | void | 3273 | void |
| 3315 | x_set_line_spacing (f, new_value, old_value) | 3274 | x_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 | ||
| 3333 | void | 3290 | void |
| 3334 | x_set_screen_gamma (f, new_value, old_value) | 3291 | x_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 | ||
| 3365 | void | 3320 | void |
| 3366 | x_set_font (f, arg, oldval) | 3321 | x_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 | ||
| 3464 | void | 3417 | void |
| 3465 | x_set_font_backend (f, new_value, old_value) | 3418 | x_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 | ||
| 3522 | void | 3473 | void |
| 3523 | x_set_fringe_width (f, new_value, old_value) | 3474 | x_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 | ||
| 3530 | void | 3479 | void |
| 3531 | x_set_border_width (f, arg, oldval) | 3480 | x_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 | ||
| 3546 | void | 3493 | void |
| 3547 | x_set_internal_border_width (f, arg, oldval) | 3494 | x_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 | ||
| 3576 | void | 3521 | void |
| 3577 | x_set_visibility (f, value, oldval) | 3522 | x_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 | ||
| 3592 | void | 3535 | void |
| 3593 | x_set_autoraise (f, arg, oldval) | 3536 | x_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 | ||
| 3600 | void | 3541 | void |
| 3601 | x_set_autolower (f, arg, oldval) | 3542 | x_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 | ||
| 3608 | void | 3547 | void |
| 3609 | x_set_unsplittable (f, arg, oldval) | 3548 | x_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 | ||
| 3616 | void | 3553 | void |
| 3617 | x_set_vertical_scroll_bars (f, arg, oldval) | 3554 | x_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 | ||
| 3649 | void | 3584 | void |
| 3650 | x_set_scroll_bar_width (f, arg, oldval) | 3585 | x_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 | ||
| 3686 | Lisp_Object | 3619 | Lisp_Object |
| 3687 | x_icon_type (f) | 3620 | x_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 | ||
| 3699 | void | 3631 | void |
| 3700 | x_set_alpha (f, arg, oldval) | 3632 | x_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 | ||
| 3759 | void | 3689 | void |
| 3760 | validate_x_resource_name () | 3690 | validate_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 | ||
| 3834 | static Lisp_Object | 3764 | static Lisp_Object |
| 3835 | xrdb_get_resource (rdb, attribute, class, component, subclass) | 3765 | xrdb_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 | ||
| 3921 | Lisp_Object | 3849 | Lisp_Object |
| 3922 | display_x_get_resource (dpyinfo, attribute, class, component, subclass) | 3850 | display_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. */ |
| 3933 | char * | 3859 | char * |
| 3934 | x_get_resource_string (attribute, class) | 3860 | x_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 | ||
| 3967 | Lisp_Object | 3892 | Lisp_Object |
| 3968 | x_get_arg (dpyinfo, alist, param, attribute, class, type) | 3893 | x_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 | ||
| 4070 | Lisp_Object | 3990 | Lisp_Object |
| 4071 | x_frame_get_arg (f, alist, param, attribute, class, type) | 3991 | x_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 | ||
| 4084 | Lisp_Object | 3999 | Lisp_Object |
| 4085 | x_frame_get_and_record_arg (f, alist, param, attribute, class, type) | 4000 | x_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 | ||
| 4109 | Lisp_Object | 4019 | Lisp_Object |
| 4110 | x_default_parameter (f, alist, prop, deflt, xprop, xclass, type) | 4020 | x_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 | ||
| 4210 | int | 4113 | int |
| 4211 | x_figure_window_size (f, parms, toolbar_p) | 4114 | x_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 | ||
| 4388 | void | 4288 | void |
| 4389 | frame_make_pointer_invisible () | 4289 | frame_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 | ||
| 4408 | void | 4308 | void |
| 4409 | frame_make_pointer_visible () | 4309 | frame_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 | ||
| 4433 | void | 4333 | void |
| 4434 | syms_of_frame () | 4334 | syms_of_frame (void) |
| 4435 | { | 4335 | { |
| 4436 | Qframep = intern_c_string ("framep"); | 4336 | Qframep = intern_c_string ("framep"); |
| 4437 | staticpro (&Qframep); | 4337 | staticpro (&Qframep); |