aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2002-03-04 23:41:00 +0000
committerStefan Monnier2002-03-04 23:41:00 +0000
commit31ade731e6dc0c0a4c124f93a1f0018e245a27a2 (patch)
tree4ff60d1528615a7a75b53df5043ab0753c5eca51 /src
parentc01d0677abc9f0f2645e90ed1e23619c008e90a2 (diff)
downloademacs-31ade731e6dc0c0a4c124f93a1f0018e245a27a2.tar.gz
emacs-31ade731e6dc0c0a4c124f93a1f0018e245a27a2.zip
Change defvar_int def and vars to use EMACS_INT instead of just int.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog83
-rw-r--r--src/abbrev.c2
-rw-r--r--src/alloc.c24
-rw-r--r--src/callproc.c2
-rw-r--r--src/charset.c10
-rw-r--r--src/commands.h2
-rw-r--r--src/dispextern.h2
-rw-r--r--src/dispnew.c2
-rw-r--r--src/dosfns.c16
-rw-r--r--src/dosfns.h18
-rw-r--r--src/emacs.c2
-rw-r--r--src/eval.c4
-rw-r--r--src/keyboard.c16
-rw-r--r--src/keyboard.h2
-rw-r--r--src/lisp.h11
-rw-r--r--src/lread.c2
-rw-r--r--src/sysdep.c2
-rw-r--r--src/termcap.c2
-rw-r--r--src/termchar.h2
-rw-r--r--src/w32term.c2
-rw-r--r--src/window.c10
-rw-r--r--src/xdisp.c16
-rw-r--r--src/xselect.c2
-rw-r--r--src/xterm.c2
24 files changed, 120 insertions, 116 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fe39168e5b0..40706a5c94a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12002-03-04 Stefan Monnier <monnier@cs.yale.edu>
2
3 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
4 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
5 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
6 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
7 and variables to use EMACS_INT instead of just int.
8
12002-03-04 Eli Zaretskii <eliz@is.elta.co.il> 92002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2 10
3 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the 11 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
@@ -54,10 +62,9 @@
54 62
55 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from 63 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
56 automatic-hscrolling. Users changed. 64 automatic-hscrolling. Users changed.
57 <hscroll-margin>: Renamed from automatic-hscroll-margin. Users 65 <hscroll-margin>: Renamed from automatic-hscroll-margin.
58 changed. 66 Users changed.
59 <hscroll-step>: Renamed from automatic-hscroll-step. Users 67 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
60 changed.
61 68
622002-03-02 Eli Zaretskii <eliz@is.elta.co.il> 692002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
63 70
@@ -73,7 +80,7 @@
73 * window.h (struct window): New member phys_cursor_width. 80 * window.h (struct window): New member phys_cursor_width.
74 81
75 * window.c (make_window, replace_window): Init phys_cursor_width. 82 * window.c (make_window, replace_window): Init phys_cursor_width.
76 83
77 * xterm.c (x_display_and_set_cursor): Blink box cursor using 84 * xterm.c (x_display_and_set_cursor): Blink box cursor using
78 hollow box cursor. Blink bar cursor using 1 pixel wide bar. 85 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
79 86
@@ -99,7 +106,7 @@
99 (wait_reading_process_input): Poll for status of non-blocking 106 (wait_reading_process_input): Poll for status of non-blocking
100 connects. Exec sentinel directly when connect succeeds. 107 connects. Exec sentinel directly when connect succeeds.
101 (status_notify): Don't read process output if not yet connected. 108 (status_notify): Don't read process output if not yet connected.
102 109
1032002-02-28 Kim F. Storm <storm@cua.dk> 1102002-02-28 Kim F. Storm <storm@cua.dk>
104 111
105 * window.c: (minibuf_selected_window): Renamed from 112 * window.c: (minibuf_selected_window): Renamed from
@@ -111,7 +118,7 @@
111 The following changes add a new Vminibuf_selected_window variable 118 The following changes add a new Vminibuf_selected_window variable
112 which is similar to Vminibuf_scroll_window, but which is only set 119 which is similar to Vminibuf_scroll_window, but which is only set
113 on entry to the minibuffer (from a non-minibuffer window): 120 on entry to the minibuffer (from a non-minibuffer window):
114 121
115 * window.c: (Vminibuf_selected_window): New variable. 122 * window.c: (Vminibuf_selected_window): New variable.
116 (struct save_window_data): New member minibuf_selected_window. 123 (struct save_window_data): New member minibuf_selected_window.
117 (Fset_window_configuration): Restore Vminibuf_selected_window. 124 (Fset_window_configuration): Restore Vminibuf_selected_window.
@@ -164,16 +171,16 @@
164 171
1652002-02-23 Kim F. Storm <storm@cua.dk> 1722002-02-23 Kim F. Storm <storm@cua.dk>
166 173
167 The following changes rework my patch of 2002-02-06 which 174 The following changes rework my patch of 2002-02-06 which
168 added command remapping by entering the commands directly into 175 added command remapping by entering the commands directly into
169 the keymaps. Now, command remapping uses an explicit `remap' 176 the keymaps. Now, command remapping uses an explicit `remap'
170 prefix in the keymaps, i.e. [remap COMMAND]. 177 prefix in the keymaps, i.e. [remap COMMAND].
171 178
172 * keymap.c (Qremap, remap_command_vector): New variables. 179 * keymap.c (Qremap, remap_command_vector): New variables.
173 (is_command_symbol): Removed function. 180 (is_command_symbol): Removed function.
174 (Fdefine_key): No longer accept a symbol for KEY. Added 181 (Fdefine_key): No longer accept a symbol for KEY.
175 validation of [remap COMMAND] argument for KEY. The DEF is no 182 Added validation of [remap COMMAND] argument for KEY.
176 longer required to be a symbol when remapping a command. 183 The DEF is no longer required to be a symbol when remapping a command.
177 (Fremap_command): New function to remap command through keymaps. 184 (Fremap_command): New function to remap command through keymaps.
178 (Flookup_key): Perform command remapping initiated by 185 (Flookup_key): Perform command remapping initiated by
179 Fremap_command directly for speed. 186 Fremap_command directly for speed.
@@ -184,7 +191,7 @@
184 191
185 * keymap.h (Fremap_command): Declare extern. 192 * keymap.h (Fremap_command): Declare extern.
186 (is_command_symbol): Remove extern. 193 (is_command_symbol): Remove extern.
187 194
188 * keyboard.c (command_loop_1): Use Fremap_command for command 195 * keyboard.c (command_loop_1): Use Fremap_command for command
189 remapping; now try command remapping for all symbols. 196 remapping; now try command remapping for all symbols.
190 197
@@ -227,8 +234,8 @@
227 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer. 234 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
228 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a 235 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
229 menu command is in progress. 236 menu command is in progress.
230 <WM_COMMAND>: Set the menu_command_in_progress flag. Kill 237 <WM_COMMAND>: Set the menu_command_in_progress flag.
231 any menu_free_timer that is running. 238 Kill any menu_free_timer that is running.
232 239
233 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT. 240 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
234 Call ExtTextOutA rather than ExtTextOut. 241 Call ExtTextOutA rather than ExtTextOut.
@@ -266,8 +273,8 @@
266 273
267 * frame.c (syms_of_frame): Change mouse-highlight default to t. 274 * frame.c (syms_of_frame): Change mouse-highlight default to t.
268 275
269 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]: Corrected 276 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
270 composing of language-change event. 277 Correct composing of language-change event.
271 278
2722002-02-20 Kim F. Storm <storm@cua.dk> 2792002-02-20 Kim F. Storm <storm@cua.dk>
273 280
@@ -306,15 +313,15 @@
306 (x_frame_parms) <"fullscreen">: New parameter. 313 (x_frame_parms) <"fullscreen">: New parameter.
307 (x_fullscreen_move, x_set_fullscreen): New functions. 314 (x_fullscreen_move, x_set_fullscreen): New functions.
308 (x_set_frame_parameters): Support Qfullscreen. 315 (x_set_frame_parameters): Support Qfullscreen.
309 (x_real_positions): Save x/y_pixels_diff frame params. 316 (x_real_positions): Save x/y_pixels_diff frame params.
310 (x_figure_window_size): Support full-screen frames. 317 (x_figure_window_size): Support full-screen frames.
311 (Fx_create_frame): Default the fullscreen parameter. 318 (Fx_create_frame): Default the fullscreen parameter.
312 319
313 * w32term.c (x_check_fullscreen, x_check_fullscreen_move) 320 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
314 (x_fullscreen_adjust): New functions. 321 (x_fullscreen_adjust): New functions.
315 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to 322 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
316 fullscreen. Call x_check_fullscreen_move, and set the 323 fullscreen. Call x_check_fullscreen_move, and set the
317 want_fullscreen member of output_data.w32 324 want_fullscreen member of output_data.w32
318 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen. 325 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
319 326
320 * w32term.h: New enum for FULLSCREEN_* constants. 327 * w32term.h: New enum for FULLSCREEN_* constants.
@@ -362,8 +369,7 @@
362 (dos_rawgetc): Fix last change--if the mouse is in the same window 369 (dos_rawgetc): Fix last change--if the mouse is in the same window
363 as recorded in last_mouse_window, don't select this window. 370 as recorded in last_mouse_window, don't select this window.
364 371
365 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not 372 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
366 cus-start.el.
367 373
368 * msdos.c (x_autoselect_window_p): New variable. 374 * msdos.c (x_autoselect_window_p): New variable.
369 (syms_of_msdos): Defvar it. 375 (syms_of_msdos): Defvar it.
@@ -371,8 +377,8 @@
371 in which the last mouse movement occured, unless it is already 377 in which the last mouse movement occured, unless it is already
372 selected. 378 selected.
373 379
374 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step): New 380 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
375 variables. 381 New variables.
376 (syms_of_xdisp): DEVFAR them. 382 (syms_of_xdisp): DEVFAR them.
377 (hscroll_window_tree): Use automatic_hscroll_margin and 383 (hscroll_window_tree): Use automatic_hscroll_margin and
378 Vautomatic_hscroll_step to compute the amount of window scrolling. 384 Vautomatic_hscroll_step to compute the amount of window scrolling.
@@ -398,8 +404,7 @@
398 (Vx_super_keysym): New variables. 404 (Vx_super_keysym): New variables.
399 (syms_of_xterm): DEFVAR_LISP them. 405 (syms_of_xterm): DEFVAR_LISP them.
400 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the 406 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
401 variables to determine which keys to use for the various 407 variables to determine which keys to use for the various modifiers.
402 modifiers.
403 408
4042002-02-13 Kim F. Storm <storm@cua.dk> 4092002-02-13 Kim F. Storm <storm@cua.dk>
405 410
@@ -407,18 +412,18 @@
407 (mode_line_in_non_selected_windows): New variable. 412 (mode_line_in_non_selected_windows): New variable.
408 (syms_of_window): DEFVAR_BOOL it. 413 (syms_of_window): DEFVAR_BOOL it.
409 414
410 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Use 415 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
411 mode_line_in_non_selected_windows. 416 Use mode_line_in_non_selected_windows.
412 (mode_line_in_non_selected_windows): Declare extern. 417 (mode_line_in_non_selected_windows): Declare extern.
413 (Vmode_line_in_non_selected_windows): Removed extern. 418 (Vmode_line_in_non_selected_windows): Removed extern.
414 419
4152002-02-13 Richard M. Stallman <rms@gnu.org> 4202002-02-13 Richard M. Stallman <rms@gnu.org>
416 421
417 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector) 422 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
418 (Fthis_single_command_keys, Fthis_single_command_raw_keys) 423 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
419 (Fclear_this_command_keys): Doc fixes. 424 (Fclear_this_command_keys): Doc fixes.
420 425
421 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face) 426 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
422 (update_face_from_frame_parameter): Increment face_change_count 427 (update_face_from_frame_parameter): Increment face_change_count
423 and windows_or_buffers_changed to force redisplay using changed faces. 428 and windows_or_buffers_changed to force redisplay using changed faces.
424 429
@@ -429,9 +434,9 @@
429 Handle literal output of strings by sharing the 434 Handle literal output of strings by sharing the
430 main-line code for strings, using local var `literal'. 435 main-line code for strings, using local var `literal'.
431 Handle :propertize feature. 436 Handle :propertize feature.
432 (syms_of_xdisp): Initialze and staticpro QCpropertize and 437 (syms_of_xdisp): Initialze and staticpro QCpropertize and
433 mode_line_proptrans_alist. 438 mode_line_proptrans_alist.
434 439
4352002-02-11 Kim F. Storm <storm@cua.dk> 4402002-02-11 Kim F. Storm <storm@cua.dk>
436 441
437 * window.c: (Vmode_line_in_non_selected_windows): New variable. 442 * window.c: (Vmode_line_in_non_selected_windows): New variable.
@@ -486,14 +491,13 @@
486 491
4872002-02-08 Kim F. Storm <storm@cua.dk> 4922002-02-08 Kim F. Storm <storm@cua.dk>
488 493
489 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): 494 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
490 Changed mail addresses to emacs-devel@gnu.org. 495 Changed mail addresses to emacs-devel@gnu.org.
491 496
4922002-02-08 Eli Zaretskii <eliz@is.elta.co.il> 4972002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
493 498
494 * fileio.c (Fsubstitute_in_file_name): If the file name includes 499 * fileio.c (Fsubstitute_in_file_name): If the file name includes
495 ~user, and there's no such user, don't discard everything before 500 ~user, and there's no such user, don't discard everything before ~user.
496 ~user.
497 501
498 * floatfns.c (Fround): Doc fix. 502 * floatfns.c (Fround): Doc fix.
499 503
@@ -540,8 +544,7 @@
540 544
5412002-02-06 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 5452002-02-06 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
542 546
543 * keyboard.c (recursive_edit_1): Call cancel_hourglass 547 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
544 unconditionally.
545 548
5462002-02-06 Jason Rumney <jasonr@gnu.org> 5492002-02-06 Jason Rumney <jasonr@gnu.org>
547 550
@@ -785,8 +788,8 @@
785 788
7862002-01-15 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 7892002-01-15 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
787 790
788 * buffer.c (Fkill_all_local_variables): Increment 791 * buffer.c (Fkill_all_local_variables):
789 `update_mode_lines' only once. 792 Increment `update_mode_lines' only once.
790 793
7912002-01-14 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 7942002-01-14 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
792 795
diff --git a/src/abbrev.c b/src/abbrev.c
index d134f95f25b..5964909261d 100644
--- a/src/abbrev.c
+++ b/src/abbrev.c
@@ -77,7 +77,7 @@ Lisp_Object Vlast_abbrev_text;
77 77
78/* Character address of start of last abbrev expanded */ 78/* Character address of start of last abbrev expanded */
79 79
80int last_abbrev_point; 80EMACS_INT last_abbrev_point;
81 81
82/* Hook to run before expanding any abbrev. */ 82/* Hook to run before expanding any abbrev. */
83 83
diff --git a/src/alloc.c b/src/alloc.c
index 2592d71d22c..5eafa21c2c7 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -122,18 +122,18 @@ int consing_since_gc;
122 122
123/* Count the amount of consing of various sorts of space. */ 123/* Count the amount of consing of various sorts of space. */
124 124
125int cons_cells_consed; 125EMACS_INT cons_cells_consed;
126int floats_consed; 126EMACS_INT floats_consed;
127int vector_cells_consed; 127EMACS_INT vector_cells_consed;
128int symbols_consed; 128EMACS_INT symbols_consed;
129int string_chars_consed; 129EMACS_INT string_chars_consed;
130int misc_objects_consed; 130EMACS_INT misc_objects_consed;
131int intervals_consed; 131EMACS_INT intervals_consed;
132int strings_consed; 132EMACS_INT strings_consed;
133 133
134/* Number of bytes of consing since GC before another GC should be done. */ 134/* Number of bytes of consing since GC before another GC should be done. */
135 135
136int gc_cons_threshold; 136EMACS_INT gc_cons_threshold;
137 137
138/* Nonzero during GC. */ 138/* Nonzero during GC. */
139 139
@@ -155,8 +155,8 @@ int malloc_sbrk_unused;
155 155
156/* Two limits controlling how much undo information to keep. */ 156/* Two limits controlling how much undo information to keep. */
157 157
158int undo_limit; 158EMACS_INT undo_limit;
159int undo_strong_limit; 159EMACS_INT undo_strong_limit;
160 160
161/* Number of live and free conses etc. */ 161/* Number of live and free conses etc. */
162 162
@@ -215,7 +215,7 @@ static size_t pure_bytes_used_before_overflow;
215 215
216/* Index in pure at which next pure object will be allocated.. */ 216/* Index in pure at which next pure object will be allocated.. */
217 217
218int pure_bytes_used; 218EMACS_INT pure_bytes_used;
219 219
220/* If nonzero, this is a warning delivered by malloc and not yet 220/* If nonzero, this is a warning delivered by malloc and not yet
221 displayed. */ 221 displayed. */
diff --git a/src/callproc.c b/src/callproc.c
index f35485f9fe8..56f8efb4ce7 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1151,7 +1151,7 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
1151 1151
1152#ifdef SET_EMACS_PRIORITY 1152#ifdef SET_EMACS_PRIORITY
1153 { 1153 {
1154 extern int emacs_priority; 1154 extern EMACS_INT emacs_priority;
1155 1155
1156 if (emacs_priority < 0) 1156 if (emacs_priority < 0)
1157 nice (- emacs_priority); 1157 nice (- emacs_priority);
diff --git a/src/charset.c b/src/charset.c
index ff177a6cb29..66c239d1bc2 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -49,10 +49,10 @@ Lisp_Object Qcharset, Qascii, Qeight_bit_control, Qeight_bit_graphic;
49Lisp_Object Qunknown; 49Lisp_Object Qunknown;
50 50
51/* Declaration of special leading-codes. */ 51/* Declaration of special leading-codes. */
52int leading_code_private_11; /* for private DIMENSION1 of 1-column */ 52EMACS_INT leading_code_private_11; /* for private DIMENSION1 of 1-column */
53int leading_code_private_12; /* for private DIMENSION1 of 2-column */ 53EMACS_INT leading_code_private_12; /* for private DIMENSION1 of 2-column */
54int leading_code_private_21; /* for private DIMENSION2 of 1-column */ 54EMACS_INT leading_code_private_21; /* for private DIMENSION2 of 1-column */
55int leading_code_private_22; /* for private DIMENSION2 of 2-column */ 55EMACS_INT leading_code_private_22; /* for private DIMENSION2 of 2-column */
56 56
57/* Declaration of special charsets. The values are set by 57/* Declaration of special charsets. The values are set by
58 Fsetup_special_charsets. */ 58 Fsetup_special_charsets. */
@@ -98,7 +98,7 @@ unsigned char *_fetch_multibyte_char_p;
98int _fetch_multibyte_char_len; 98int _fetch_multibyte_char_len;
99 99
100/* Offset to add to a non-ASCII value when inserting it. */ 100/* Offset to add to a non-ASCII value when inserting it. */
101int nonascii_insert_offset; 101EMACS_INT nonascii_insert_offset;
102 102
103/* Translation table for converting non-ASCII unibyte characters 103/* Translation table for converting non-ASCII unibyte characters
104 to multibyte codes, or nil. */ 104 to multibyte codes, or nil. */
diff --git a/src/commands.h b/src/commands.h
index 0494478541c..d830573b58b 100644
--- a/src/commands.h
+++ b/src/commands.h
@@ -51,7 +51,7 @@ extern Lisp_Object Vunread_command_events;
51 51
52/* Command char event to be re-read, or -1 if none. 52/* Command char event to be re-read, or -1 if none.
53 Setting this is obsolete, but some things should still check it. */ 53 Setting this is obsolete, but some things should still check it. */
54extern int unread_command_char; 54extern EMACS_INT unread_command_char;
55 55
56/* The command being executed by the command loop. 56/* The command being executed by the command loop.
57 Commands may set this, and the value set will be copied into 57 Commands may set this, and the value set will be copied into
diff --git a/src/dispextern.h b/src/dispextern.h
index 7777e56f98e..2b5e2e80562 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -2188,7 +2188,7 @@ extern Lisp_Object Vtool_bar_button_margin;
2188 2188
2189/* Thickness of relief to draw around tool-bar buttons. */ 2189/* Thickness of relief to draw around tool-bar buttons. */
2190 2190
2191extern int tool_bar_button_relief; 2191extern EMACS_INT tool_bar_button_relief;
2192 2192
2193/* Default values of the above variables. */ 2193/* Default values of the above variables. */
2194 2194
diff --git a/src/dispnew.c b/src/dispnew.c
index 84cab92eaf5..4f7e36f5c19 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -211,7 +211,7 @@ int inverse_video;
211 211
212/* Line speed of the terminal. */ 212/* Line speed of the terminal. */
213 213
214int baud_rate; 214EMACS_INT baud_rate;
215 215
216/* Either nil or a symbol naming the window system under which Emacs 216/* Either nil or a symbol naming the window system under which Emacs
217 is running. */ 217 is running. */
diff --git a/src/dosfns.c b/src/dosfns.c
index 3c185bb035e..d54f2e3edc0 100644
--- a/src/dosfns.c
+++ b/src/dosfns.c
@@ -240,11 +240,11 @@ Return nil if startup screen is not available. */)
240} 240}
241 241
242/* country info */ 242/* country info */
243int dos_country_code; 243EMACS_INT dos_country_code;
244int dos_codepage; 244EMACS_INT dos_codepage;
245int dos_timezone_offset; 245EMACS_INT dos_timezone_offset;
246int dos_decimal_point; 246EMACS_INT dos_decimal_point;
247int dos_keyboard_layout; 247EMACS_INT dos_keyboard_layout;
248unsigned char dos_country_info[DOS_COUNTRY_INFO]; 248unsigned char dos_country_info[DOS_COUNTRY_INFO];
249static unsigned char usa_country_info[DOS_COUNTRY_INFO] = { 249static unsigned char usa_country_info[DOS_COUNTRY_INFO] = {
250 0, 0, /* date format */ 250 0, 0, /* date format */
@@ -261,9 +261,9 @@ static unsigned char usa_country_info[DOS_COUNTRY_INFO] = {
261 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /* reserved */ 261 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /* reserved */
262}; 262};
263 263
264int dos_hyper_key; 264EMACS_INT dos_hyper_key;
265int dos_super_key; 265EMACS_INT dos_super_key;
266int dos_keypad_mode; 266EMACS_INT dos_keypad_mode;
267 267
268Lisp_Object Vdos_version; 268Lisp_Object Vdos_version;
269Lisp_Object Vdos_display_scancodes; 269Lisp_Object Vdos_display_scancodes;
diff --git a/src/dosfns.h b/src/dosfns.h
index 8575d411088..00e2e1ed1a3 100644
--- a/src/dosfns.h
+++ b/src/dosfns.h
@@ -22,15 +22,15 @@ along with GNU Emacs; see the file COPYING. If not, write to
22the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 22the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23Boston, MA 02111-1307, USA. */ 23Boston, MA 02111-1307, USA. */
24 24
25extern int dos_hyper_key; 25extern EMACS_INT dos_hyper_key;
26extern int dos_super_key; 26extern EMACS_INT dos_super_key;
27extern int dos_decimal_point; 27extern EMACS_INT dos_decimal_point;
28extern int dos_keypad_mode; 28extern EMACS_INT dos_keypad_mode;
29 29
30extern int dos_keyboard_layout; 30extern EMACS_INT dos_keyboard_layout;
31extern int dos_country_code; 31extern EMACS_INT dos_country_code;
32extern int dos_codepage; 32extern EMACS_INT dos_codepage;
33extern int dos_timezone_offset; 33extern EMACS_INT dos_timezone_offset;
34 34
35#define DOS_COUNTRY_INFO 34 /* no of bytes returned by dos int 38h */ 35#define DOS_COUNTRY_INFO 34 /* no of bytes returned by dos int 38h */
36extern unsigned char dos_country_info[DOS_COUNTRY_INFO]; 36extern unsigned char dos_country_info[DOS_COUNTRY_INFO];
diff --git a/src/emacs.c b/src/emacs.c
index eeb9002fe3c..debb7a90df0 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -165,7 +165,7 @@ int inhibit_window_system;
165/* If nonzero, set Emacs to run at this priority. This is also used 165/* If nonzero, set Emacs to run at this priority. This is also used
166 in child_setup and sys_suspend to make sure subshells run at normal 166 in child_setup and sys_suspend to make sure subshells run at normal
167 priority; those functions have their own extern declaration. */ 167 priority; those functions have their own extern declaration. */
168int emacs_priority; 168EMACS_INT emacs_priority;
169 169
170/* If non-zero, a filter or a sentinel is running. Tested to save the match 170/* If non-zero, a filter or a sentinel is running. Tested to save the match
171 data on the first attempt to change it inside asynchronous code. */ 171 data on the first attempt to change it inside asynchronous code. */
diff --git a/src/eval.c b/src/eval.c
index 0970086fedc..c2ebfd46fe8 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -119,7 +119,7 @@ struct specbinding *specpdl_ptr;
119 119
120/* Maximum size allowed for specpdl allocation */ 120/* Maximum size allowed for specpdl allocation */
121 121
122int max_specpdl_size; 122EMACS_INT max_specpdl_size;
123 123
124/* Depth in Lisp evaluations and function calls. */ 124/* Depth in Lisp evaluations and function calls. */
125 125
@@ -127,7 +127,7 @@ int lisp_eval_depth;
127 127
128/* Maximum allowed depth in Lisp evaluations and function calls. */ 128/* Maximum allowed depth in Lisp evaluations and function calls. */
129 129
130int max_lisp_eval_depth; 130EMACS_INT max_lisp_eval_depth;
131 131
132/* Nonzero means enter debugger before next function call */ 132/* Nonzero means enter debugger before next function call */
133 133
diff --git a/src/keyboard.c b/src/keyboard.c
index 61f27adb3d5..0e777a6bd07 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -298,7 +298,7 @@ Lisp_Object Vspecial_event_map;
298int command_loop_level; 298int command_loop_level;
299 299
300/* Total number of times command_loop has read a key sequence. */ 300/* Total number of times command_loop has read a key sequence. */
301int num_input_keys; 301EMACS_INT num_input_keys;
302 302
303/* Last input character read as a command. */ 303/* Last input character read as a command. */
304Lisp_Object last_command_char; 304Lisp_Object last_command_char;
@@ -322,7 +322,7 @@ Lisp_Object Vunread_input_method_events;
322Lisp_Object Vunread_post_input_method_events; 322Lisp_Object Vunread_post_input_method_events;
323 323
324/* If not -1, an event to be read as subsequent command input. */ 324/* If not -1, an event to be read as subsequent command input. */
325int unread_command_char; 325EMACS_INT unread_command_char;
326 326
327/* If not Qnil, this is a switch-frame event which we decided to put 327/* If not Qnil, this is a switch-frame event which we decided to put
328 off until the end of a key sequence. This should be read as the 328 off until the end of a key sequence. This should be read as the
@@ -334,7 +334,7 @@ int unread_command_char;
334Lisp_Object unread_switch_frame; 334Lisp_Object unread_switch_frame;
335 335
336/* A mask of extra modifier bits to put into every keyboard char. */ 336/* A mask of extra modifier bits to put into every keyboard char. */
337int extra_keyboard_modifiers; 337EMACS_INT extra_keyboard_modifiers;
338 338
339/* Char to use as prefix when a meta character is typed in. 339/* Char to use as prefix when a meta character is typed in.
340 This is bound on entry to minibuffer in case ESC is changed there. */ 340 This is bound on entry to minibuffer in case ESC is changed there. */
@@ -351,12 +351,12 @@ static Lisp_Object Vauto_save_timeout;
351int num_input_events; 351int num_input_events;
352 352
353/* Total number of times read_char has returned, outside of macros. */ 353/* Total number of times read_char has returned, outside of macros. */
354int num_nonmacro_input_events; 354EMACS_INT num_nonmacro_input_events;
355 355
356/* Auto-save automatically when this many characters have been typed 356/* Auto-save automatically when this many characters have been typed
357 since the last time. */ 357 since the last time. */
358 358
359static int auto_save_interval; 359static EMACS_INT auto_save_interval;
360 360
361/* Value of num_nonmacro_input_events as of last auto save. */ 361/* Value of num_nonmacro_input_events as of last auto save. */
362 362
@@ -448,7 +448,7 @@ Lisp_Object Qcommand_hook_internal, Vcommand_hook_internal;
448Lisp_Object Qpost_command_idle_hook, Vpost_command_idle_hook; 448Lisp_Object Qpost_command_idle_hook, Vpost_command_idle_hook;
449 449
450/* Delay time in microseconds before running post-command-idle-hook. */ 450/* Delay time in microseconds before running post-command-idle-hook. */
451int post_command_idle_delay; 451EMACS_INT post_command_idle_delay;
452 452
453/* List of deferred actions to be performed at a later time. 453/* List of deferred actions to be performed at a later time.
454 The precise format isn't relevant here; we just check whether it is nil. */ 454 The precise format isn't relevant here; we just check whether it is nil. */
@@ -1823,7 +1823,7 @@ safe_run_hooks (hook)
1823/* Number of seconds between polling for input. This is a Lisp 1823/* Number of seconds between polling for input. This is a Lisp
1824 variable that can be bound. */ 1824 variable that can be bound. */
1825 1825
1826int polling_period; 1826EMACS_INT polling_period;
1827 1827
1828/* Nonzero means polling for input is temporarily suppressed. */ 1828/* Nonzero means polling for input is temporarily suppressed. */
1829 1829
@@ -4664,7 +4664,7 @@ Lisp_Object Vdouble_click_time;
4664/* Maximum number of pixels the mouse may be moved between clicks 4664/* Maximum number of pixels the mouse may be moved between clicks
4665 to make a double-click. */ 4665 to make a double-click. */
4666 4666
4667int double_click_fuzz; 4667EMACS_INT double_click_fuzz;
4668 4668
4669/* The number of clicks in this multiple-click. */ 4669/* The number of clicks in this multiple-click. */
4670 4670
diff --git a/src/keyboard.h b/src/keyboard.h
index d9cc41f6ba1..a6fe2602b00 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -187,7 +187,7 @@ extern Lisp_Object Qrecompute_lucid_menubar, Qactivate_menubar_hook;
187extern int num_input_events; 187extern int num_input_events;
188 188
189/* Total number of times read_char has returned, outside of macros. */ 189/* Total number of times read_char has returned, outside of macros. */
190extern int num_nonmacro_input_events; 190extern EMACS_INT num_nonmacro_input_events;
191 191
192/* Nonzero means polling for input is temporarily suppressed. */ 192/* Nonzero means polling for input is temporarily suppressed. */
193extern int poll_suppress_count; 193extern int poll_suppress_count;
diff --git a/src/lisp.h b/src/lisp.h
index 2c4ac62df7c..cc464b95e92 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1068,7 +1068,7 @@ struct Lisp_Intfwd
1068 { 1068 {
1069 int type : 16; /* = Lisp_Misc_Intfwd */ 1069 int type : 16; /* = Lisp_Misc_Intfwd */
1070 int spacer : 16; 1070 int spacer : 16;
1071 int *intvar; 1071 EMACS_INT *intvar;
1072 }; 1072 };
1073 1073
1074/* Boolean forwarding pointer to an int variable. 1074/* Boolean forwarding pointer to an int variable.
@@ -1598,7 +1598,7 @@ extern void defsubr P_ ((struct Lisp_Subr *));
1598extern void defvar_lisp P_ ((char *, Lisp_Object *)); 1598extern void defvar_lisp P_ ((char *, Lisp_Object *));
1599extern void defvar_lisp_nopro P_ ((char *, Lisp_Object *)); 1599extern void defvar_lisp_nopro P_ ((char *, Lisp_Object *));
1600extern void defvar_bool P_ ((char *, int *)); 1600extern void defvar_bool P_ ((char *, int *));
1601extern void defvar_int P_ ((char *, int *)); 1601extern void defvar_int P_ ((char *, EMACS_INT *));
1602extern void defvar_per_buffer P_ ((char *, Lisp_Object *, Lisp_Object, char *)); 1602extern void defvar_per_buffer P_ ((char *, Lisp_Object *, Lisp_Object, char *));
1603extern void defvar_kboard P_ ((char *, int)); 1603extern void defvar_kboard P_ ((char *, int));
1604 1604
@@ -1653,7 +1653,7 @@ extern struct specbinding *specpdl;
1653extern struct specbinding *specpdl_ptr; 1653extern struct specbinding *specpdl_ptr;
1654extern int specpdl_size; 1654extern int specpdl_size;
1655 1655
1656extern int max_specpdl_size; 1656extern EMACS_INT max_specpdl_size;
1657 1657
1658#define BINDING_STACK_SIZE() (specpdl_ptr - specpdl) 1658#define BINDING_STACK_SIZE() (specpdl_ptr - specpdl)
1659 1659
@@ -1763,7 +1763,7 @@ extern int consing_since_gc;
1763 1763
1764/* Threshold for doing another gc. */ 1764/* Threshold for doing another gc. */
1765 1765
1766extern int gc_cons_threshold; 1766extern EMACS_INT gc_cons_threshold;
1767 1767
1768/* Structure for recording stack slots that need marking. */ 1768/* Structure for recording stack slots that need marking. */
1769 1769
@@ -2121,7 +2121,7 @@ extern Lisp_Object code_convert_string_norecord P_ ((Lisp_Object, Lisp_Object,
2121 int)); 2121 int));
2122 2122
2123/* Defined in charset.c */ 2123/* Defined in charset.c */
2124extern int nonascii_insert_offset; 2124extern EMACS_INT nonascii_insert_offset;
2125extern Lisp_Object Vnonascii_translation_table; 2125extern Lisp_Object Vnonascii_translation_table;
2126EXFUN (Fchar_bytes, 1); 2126EXFUN (Fchar_bytes, 1);
2127EXFUN (Fchar_width, 1); 2127EXFUN (Fchar_width, 1);
@@ -2289,6 +2289,7 @@ extern void syms_of_insdel P_ ((void));
2289 2289
2290/* Defined in dispnew.c */ 2290/* Defined in dispnew.c */
2291extern Lisp_Object selected_frame; 2291extern Lisp_Object selected_frame;
2292extern EMACS_INT baud_rate;
2292EXFUN (Fding, 1); 2293EXFUN (Fding, 1);
2293EXFUN (Fredraw_frame, 1); 2294EXFUN (Fredraw_frame, 1);
2294EXFUN (Fredraw_display, 0); 2295EXFUN (Fredraw_display, 0);
diff --git a/src/lread.c b/src/lread.c
index 186b890fae4..9e2687e272b 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -3249,7 +3249,7 @@ defalias (sname, string)
3249void 3249void
3250defvar_int (namestring, address) 3250defvar_int (namestring, address)
3251 char *namestring; 3251 char *namestring;
3252 int *address; 3252 EMACS_INT *address;
3253{ 3253{
3254 Lisp_Object sym, val; 3254 Lisp_Object sym, val;
3255 sym = intern (namestring); 3255 sym = intern (namestring);
diff --git a/src/sysdep.c b/src/sysdep.c
index f79311f837b..b951b545fbe 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -842,7 +842,7 @@ sys_subshell ()
842 842
843#ifdef SET_EMACS_PRIORITY 843#ifdef SET_EMACS_PRIORITY
844 { 844 {
845 extern int emacs_priority; 845 extern EMACS_INT emacs_priority;
846 846
847 if (emacs_priority < 0) 847 if (emacs_priority < 0)
848 nice (-emacs_priority); 848 nice (-emacs_priority);
diff --git a/src/termcap.c b/src/termcap.c
index b8cf67cc2fe..b87fee48e87 100644
--- a/src/termcap.c
+++ b/src/termcap.c
@@ -323,7 +323,7 @@ tputs (str, nlines, outfun)
323 register int speed; 323 register int speed;
324 324
325#ifdef emacs 325#ifdef emacs
326 extern int baud_rate; 326 extern EMACS_INT baud_rate;
327 speed = baud_rate; 327 speed = baud_rate;
328 /* For quite high speeds, convert to the smaller 328 /* For quite high speeds, convert to the smaller
329 units to avoid overflow. */ 329 units to avoid overflow. */
diff --git a/src/termchar.h b/src/termchar.h
index 1feb8772769..da5413b8f9b 100644
--- a/src/termchar.h
+++ b/src/termchar.h
@@ -19,7 +19,7 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */ 19Boston, MA 02111-1307, USA. */
20 20
21 21
22extern int baud_rate; /* Output speed in baud */ 22/* extern EMACS_INT baud_rate; */ /* Output speed in baud */
23extern int must_write_spaces; /* Nonzero means spaces in the text 23extern int must_write_spaces; /* Nonzero means spaces in the text
24 must actually be output; can't just skip 24 must actually be output; can't just skip
25 over some columns to leave them blank. */ 25 over some columns to leave them blank. */
diff --git a/src/w32term.c b/src/w32term.c
index 8cec1b34bd2..07624b9d20a 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -333,7 +333,7 @@ extern int errno;
333 333
334/* A mask of extra modifier bits to put into every keyboard char. */ 334/* A mask of extra modifier bits to put into every keyboard char. */
335 335
336extern int extra_keyboard_modifiers; 336extern EMACS_INT extra_keyboard_modifiers;
337 337
338/* Enumeration for overriding/changing the face to use for drawing 338/* Enumeration for overriding/changing the face to use for drawing
339 glyphs in x_draw_glyphs. */ 339 glyphs in x_draw_glyphs. */
diff --git a/src/window.c b/src/window.c
index 9dc070bc498..8b9b49f5f12 100644
--- a/src/window.c
+++ b/src/window.c
@@ -145,8 +145,8 @@ int mode_line_in_non_selected_windows;
145 145
146/* If a window gets smaller than either of these, it is removed. */ 146/* If a window gets smaller than either of these, it is removed. */
147 147
148int window_min_height; 148EMACS_INT window_min_height;
149int window_min_width; 149EMACS_INT window_min_width;
150 150
151/* Nonzero implies Fdisplay_buffer should create windows. */ 151/* Nonzero implies Fdisplay_buffer should create windows. */
152 152
@@ -199,11 +199,11 @@ Lisp_Object Qtemp_buffer_show_hook;
199/* Fdisplay_buffer always splits the largest window 199/* Fdisplay_buffer always splits the largest window
200 if that window is more than this high. */ 200 if that window is more than this high. */
201 201
202int split_height_threshold; 202EMACS_INT split_height_threshold;
203 203
204/* Number of lines of continuity in scrolling by screenfuls. */ 204/* Number of lines of continuity in scrolling by screenfuls. */
205 205
206int next_screen_context_lines; 206EMACS_INT next_screen_context_lines;
207 207
208/* Incremented for each window created. */ 208/* Incremented for each window created. */
209 209
@@ -228,7 +228,7 @@ Lisp_Object Vscroll_preserve_screen_position;
228static int inhibit_frame_unsplittable; 228static int inhibit_frame_unsplittable;
229#endif /* 0 */ 229#endif /* 0 */
230 230
231extern int scroll_margin; 231extern EMACS_INT scroll_margin;
232 232
233extern Lisp_Object Qwindow_scroll_functions, Vwindow_scroll_functions; 233extern Lisp_Object Qwindow_scroll_functions, Vwindow_scroll_functions;
234 234
diff --git a/src/xdisp.c b/src/xdisp.c
index f57269cec03..c591e69b7cc 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -242,7 +242,7 @@ Lisp_Object Vtool_bar_button_margin;
242 242
243/* Thickness of shadow to draw around tool bar buttons. */ 243/* Thickness of shadow to draw around tool bar buttons. */
244 244
245int tool_bar_button_relief; 245EMACS_INT tool_bar_button_relief;
246 246
247/* Non-zero means automatically resize tool-bars so that all tool-bar 247/* Non-zero means automatically resize tool-bars so that all tool-bar
248 items are visible, and no blank lines remain. */ 248 items are visible, and no blank lines remain. */
@@ -383,19 +383,19 @@ int highlight_nonselected_windows;
383/* If cursor motion alone moves point off frame, try scrolling this 383/* If cursor motion alone moves point off frame, try scrolling this
384 many lines up or down if that will bring it back. */ 384 many lines up or down if that will bring it back. */
385 385
386static int scroll_step; 386static EMACS_INT scroll_step;
387 387
388/* Nonzero means scroll just far enough to bring point back on the 388/* Nonzero means scroll just far enough to bring point back on the
389 screen, when appropriate. */ 389 screen, when appropriate. */
390 390
391static int scroll_conservatively; 391static EMACS_INT scroll_conservatively;
392 392
393/* Recenter the window whenever point gets within this many lines of 393/* Recenter the window whenever point gets within this many lines of
394 the top or bottom of the window. This value is translated into a 394 the top or bottom of the window. This value is translated into a
395 pixel value by multiplying it with CANON_Y_UNIT, which means that 395 pixel value by multiplying it with CANON_Y_UNIT, which means that
396 there is really a fixed pixel height scroll margin. */ 396 there is really a fixed pixel height scroll margin. */
397 397
398int scroll_margin; 398EMACS_INT scroll_margin;
399 399
400/* Number of windows showing the buffer of the selected window (or 400/* Number of windows showing the buffer of the selected window (or
401 another buffer with the same base buffer). keyboard.c refers to 401 another buffer with the same base buffer). keyboard.c refers to
@@ -463,7 +463,7 @@ Lisp_Object Vline_number_display_limit;
463 463
464/* Line width to consider when repositioning for line number display. */ 464/* Line width to consider when repositioning for line number display. */
465 465
466static int line_number_display_limit_width; 466static EMACS_INT line_number_display_limit_width;
467 467
468/* Number of lines to keep in the message log buffer. t means 468/* Number of lines to keep in the message log buffer. t means
469 infinite. nil means don't log at all. */ 469 infinite. nil means don't log at all. */
@@ -733,7 +733,7 @@ static struct glyph_row *get_overlay_arrow_glyph_row P_ ((struct window *));
733static void extend_face_to_end_of_line P_ ((struct it *)); 733static void extend_face_to_end_of_line P_ ((struct it *));
734static int append_space P_ ((struct it *, int)); 734static int append_space P_ ((struct it *, int));
735static int make_cursor_line_fully_visible P_ ((struct window *)); 735static int make_cursor_line_fully_visible P_ ((struct window *));
736static int try_scrolling P_ ((Lisp_Object, int, int, int, int)); 736static int try_scrolling P_ ((Lisp_Object, int, EMACS_INT, EMACS_INT, int));
737static int try_cursor_movement P_ ((Lisp_Object, struct text_pos, int *)); 737static int try_cursor_movement P_ ((Lisp_Object, struct text_pos, int *));
738static int trailing_whitespace_p P_ ((int)); 738static int trailing_whitespace_p P_ ((int));
739static int message_log_check_duplicate P_ ((int, int, int, int)); 739static int message_log_check_duplicate P_ ((int, int, int, int));
@@ -8205,7 +8205,7 @@ int debug_delta, debug_delta_bytes;
8205/* Values of window_end_pos and window_end_vpos at the end of 8205/* Values of window_end_pos and window_end_vpos at the end of
8206 try_window_id. */ 8206 try_window_id. */
8207 8207
8208int debug_end_pos, debug_end_vpos; 8208EMACS_INT debug_end_pos, debug_end_vpos;
8209 8209
8210/* Append a string to W->desired_matrix->method. FMT is a printf 8210/* Append a string to W->desired_matrix->method. FMT is a printf
8211 format string. A1...A9 are a supplement for a variable-length 8211 format string. A1...A9 are a supplement for a variable-length
@@ -9517,7 +9517,7 @@ try_scrolling (window, just_this_one_p, scroll_conservatively,
9517 scroll_step, temp_scroll_step) 9517 scroll_step, temp_scroll_step)
9518 Lisp_Object window; 9518 Lisp_Object window;
9519 int just_this_one_p; 9519 int just_this_one_p;
9520 int scroll_conservatively, scroll_step; 9520 EMACS_INT scroll_conservatively, scroll_step;
9521 int temp_scroll_step; 9521 int temp_scroll_step;
9522{ 9522{
9523 struct window *w = XWINDOW (window); 9523 struct window *w = XWINDOW (window);
diff --git a/src/xselect.c b/src/xselect.c
index d21a978060f..03580b782fe 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -154,7 +154,7 @@ static Lisp_Object Vselection_converter_alist;
154 154
155/* If the selection owner takes too long to reply to a selection request, 155/* If the selection owner takes too long to reply to a selection request,
156 we give up on it. This is in milliseconds (0 = no timeout.) */ 156 we give up on it. This is in milliseconds (0 = no timeout.) */
157static int x_selection_timeout; 157static EMACS_INT x_selection_timeout;
158 158
159/* Utility functions */ 159/* Utility functions */
160 160
diff --git a/src/xterm.c b/src/xterm.c
index a6a4e21a531..58a60b59145 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -383,7 +383,7 @@ extern int errno;
383 383
384/* A mask of extra modifier bits to put into every keyboard char. */ 384/* A mask of extra modifier bits to put into every keyboard char. */
385 385
386extern int extra_keyboard_modifiers; 386extern EMACS_INT extra_keyboard_modifiers;
387 387
388/* The keysyms to use for the various modifiers. */ 388/* The keysyms to use for the various modifiers. */
389 389