diff options
| author | Tom Tromey | 2018-07-06 21:56:17 -0600 |
|---|---|---|
| committer | Tom Tromey | 2018-07-12 22:12:27 -0600 |
| commit | 42fe787b0f26c2df682b2797407a669ef8522ccb (patch) | |
| tree | e944fe465e2b65703a8361bc82647faf4f7907f1 /src/w32term.c | |
| parent | 01dbf2a347944497fdcf2ec156f4605020d7ba2a (diff) | |
| download | emacs-42fe787b0f26c2df682b2797407a669ef8522ccb.tar.gz emacs-42fe787b0f26c2df682b2797407a669ef8522ccb.zip | |
Rename integerp->fixnum, etc, in preparation for bignums
* src/json.c, src/keyboard.c, src/keyboard.h, src/keymap.c,
src/kqueue.c, src/lcms.c, src/lisp.h, src/lread.c, src/macros.c,
src/marker.c, src/menu.c, src/minibuf.c, src/msdos.c, src/print.c,
src/process.c, src/profiler.c, src/search.c, src/sound.c,
src/syntax.c, src/sysdep.c, src/term.c, src/terminal.c,
src/textprop.c, src/undo.c, src/w16select.c, src/w32.c,
src/w32console.c, src/w32cygwinx.c, src/w32fns.c, src/w32font.c,
src/w32inevt.c, src/w32proc.c, src/w32select.c, src/w32term.c,
src/w32uniscribe.c, src/widget.c, src/window.c, src/xdisp.c,
src/xfaces.c, src/xfns.c, src/xfont.c, src/xftfont.c, src/xmenu.c,
src/xrdb.c, src/xselect.c, src/xterm.c, src/xwidget.c: Rename
INTEGERP->FIXNUM, make_number->make_fixnum, CHECK_NUMBER->CHECK_FIXNUM,
make_natnum->make_fixed_natum, NUMBERP->FIXED_OR_FLOATP,
NATNUMP->FIXNATP, CHECK_NATNUM->CHECK_FIXNAT.
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/w32term.c b/src/w32term.c index ff0d2bf5ddb..cf6d516d583 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -478,7 +478,7 @@ x_set_frame_alpha (struct frame *f) | |||
| 478 | 478 | ||
| 479 | if (FLOATP (Vframe_alpha_lower_limit)) | 479 | if (FLOATP (Vframe_alpha_lower_limit)) |
| 480 | alpha_min = XFLOAT_DATA (Vframe_alpha_lower_limit); | 480 | alpha_min = XFLOAT_DATA (Vframe_alpha_lower_limit); |
| 481 | else if (INTEGERP (Vframe_alpha_lower_limit)) | 481 | else if (FIXNUMP (Vframe_alpha_lower_limit)) |
| 482 | alpha_min = (XINT (Vframe_alpha_lower_limit)) / 100.0; | 482 | alpha_min = (XINT (Vframe_alpha_lower_limit)) / 100.0; |
| 483 | 483 | ||
| 484 | if (alpha < 0.0) | 484 | if (alpha < 0.0) |
| @@ -1979,13 +1979,13 @@ x_draw_image_relief (struct glyph_string *s) | |||
| 1979 | if (s->face->id == TOOL_BAR_FACE_ID) | 1979 | if (s->face->id == TOOL_BAR_FACE_ID) |
| 1980 | { | 1980 | { |
| 1981 | if (CONSP (Vtool_bar_button_margin) | 1981 | if (CONSP (Vtool_bar_button_margin) |
| 1982 | && INTEGERP (XCAR (Vtool_bar_button_margin)) | 1982 | && FIXNUMP (XCAR (Vtool_bar_button_margin)) |
| 1983 | && INTEGERP (XCDR (Vtool_bar_button_margin))) | 1983 | && FIXNUMP (XCDR (Vtool_bar_button_margin))) |
| 1984 | { | 1984 | { |
| 1985 | extra_x = XINT (XCAR (Vtool_bar_button_margin)); | 1985 | extra_x = XINT (XCAR (Vtool_bar_button_margin)); |
| 1986 | extra_y = XINT (XCDR (Vtool_bar_button_margin)); | 1986 | extra_y = XINT (XCDR (Vtool_bar_button_margin)); |
| 1987 | } | 1987 | } |
| 1988 | else if (INTEGERP (Vtool_bar_button_margin)) | 1988 | else if (FIXNUMP (Vtool_bar_button_margin)) |
| 1989 | extra_x = extra_y = XINT (Vtool_bar_button_margin); | 1989 | extra_x = extra_y = XINT (Vtool_bar_button_margin); |
| 1990 | } | 1990 | } |
| 1991 | 1991 | ||
| @@ -2481,7 +2481,7 @@ x_draw_glyph_string (struct glyph_string *s) | |||
| 2481 | Lisp_Object val | 2481 | Lisp_Object val |
| 2482 | = buffer_local_value (Qunderline_minimum_offset, | 2482 | = buffer_local_value (Qunderline_minimum_offset, |
| 2483 | s->w->contents); | 2483 | s->w->contents); |
| 2484 | if (INTEGERP (val)) | 2484 | if (FIXNUMP (val)) |
| 2485 | minimum_offset = XFASTINT (val); | 2485 | minimum_offset = XFASTINT (val); |
| 2486 | else | 2486 | else |
| 2487 | minimum_offset = 1; | 2487 | minimum_offset = 1; |
| @@ -4769,7 +4769,7 @@ w32_read_socket (struct terminal *terminal, | |||
| 4769 | 4769 | ||
| 4770 | if (f && !FRAME_ICONIFIED_P (f)) | 4770 | if (f && !FRAME_ICONIFIED_P (f)) |
| 4771 | { | 4771 | { |
| 4772 | if (!hlinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) | 4772 | if (!hlinfo->mouse_face_hidden && FIXNUMP (Vmouse_highlight) |
| 4773 | && !EQ (f->tool_bar_window, hlinfo->mouse_face_window)) | 4773 | && !EQ (f->tool_bar_window, hlinfo->mouse_face_window)) |
| 4774 | { | 4774 | { |
| 4775 | clear_mouse_face (hlinfo); | 4775 | clear_mouse_face (hlinfo); |
| @@ -4794,7 +4794,7 @@ w32_read_socket (struct terminal *terminal, | |||
| 4794 | 4794 | ||
| 4795 | if (f && !FRAME_ICONIFIED_P (f)) | 4795 | if (f && !FRAME_ICONIFIED_P (f)) |
| 4796 | { | 4796 | { |
| 4797 | if (!hlinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) | 4797 | if (!hlinfo->mouse_face_hidden && FIXNUMP (Vmouse_highlight) |
| 4798 | && !EQ (f->tool_bar_window, hlinfo->mouse_face_window)) | 4798 | && !EQ (f->tool_bar_window, hlinfo->mouse_face_window)) |
| 4799 | { | 4799 | { |
| 4800 | clear_mouse_face (hlinfo); | 4800 | clear_mouse_face (hlinfo); |
| @@ -4872,7 +4872,7 @@ w32_read_socket (struct terminal *terminal, | |||
| 4872 | 4872 | ||
| 4873 | if (f && !FRAME_ICONIFIED_P (f)) | 4873 | if (f && !FRAME_ICONIFIED_P (f)) |
| 4874 | { | 4874 | { |
| 4875 | if (!hlinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) | 4875 | if (!hlinfo->mouse_face_hidden && FIXNUMP (Vmouse_highlight) |
| 4876 | && !EQ (f->tool_bar_window, hlinfo->mouse_face_window)) | 4876 | && !EQ (f->tool_bar_window, hlinfo->mouse_face_window)) |
| 4877 | { | 4877 | { |
| 4878 | clear_mouse_face (hlinfo); | 4878 | clear_mouse_face (hlinfo); |
| @@ -6142,8 +6142,8 @@ x_calc_absolute_position (struct frame *f) | |||
| 6142 | geometry = Fassoc (Qgeometry, attributes, Qnil); | 6142 | geometry = Fassoc (Qgeometry, attributes, Qnil); |
| 6143 | if (!NILP (geometry)) | 6143 | if (!NILP (geometry)) |
| 6144 | { | 6144 | { |
| 6145 | monitor_left = Fnth (make_number (1), geometry); | 6145 | monitor_left = Fnth (make_fixnum (1), geometry); |
| 6146 | monitor_top = Fnth (make_number (2), geometry); | 6146 | monitor_top = Fnth (make_fixnum (2), geometry); |
| 6147 | 6147 | ||
| 6148 | display_left = min (display_left, XINT (monitor_left)); | 6148 | display_left = min (display_left, XINT (monitor_left)); |
| 6149 | display_top = min (display_top, XINT (monitor_top)); | 6149 | display_top = min (display_top, XINT (monitor_top)); |
| @@ -6432,10 +6432,10 @@ x_set_window_size (struct frame *f, bool change_gravity, | |||
| 6432 | { | 6432 | { |
| 6433 | frame_size_history_add | 6433 | frame_size_history_add |
| 6434 | (f, Qx_set_window_size_1, width, height, | 6434 | (f, Qx_set_window_size_1, width, height, |
| 6435 | list2 (Fcons (make_number (pixelwidth), | 6435 | list2 (Fcons (make_fixnum (pixelwidth), |
| 6436 | make_number (pixelheight)), | 6436 | make_fixnum (pixelheight)), |
| 6437 | Fcons (make_number (rect.right - rect.left), | 6437 | Fcons (make_fixnum (rect.right - rect.left), |
| 6438 | make_number (rect.bottom - rect.top)))); | 6438 | make_fixnum (rect.bottom - rect.top)))); |
| 6439 | 6439 | ||
| 6440 | if (!FRAME_PARENT_FRAME (f)) | 6440 | if (!FRAME_PARENT_FRAME (f)) |
| 6441 | my_set_window_pos (FRAME_W32_WINDOW (f), NULL, | 6441 | my_set_window_pos (FRAME_W32_WINDOW (f), NULL, |
| @@ -7265,7 +7265,7 @@ w32_initialize (void) | |||
| 7265 | 7265 | ||
| 7266 | /* Initialize input mode: interrupt_input off, no flow control, allow | 7266 | /* Initialize input mode: interrupt_input off, no flow control, allow |
| 7267 | 8 bit character input, standard quit char. */ | 7267 | 8 bit character input, standard quit char. */ |
| 7268 | Fset_input_mode (Qnil, Qnil, make_number (2), Qnil); | 7268 | Fset_input_mode (Qnil, Qnil, make_fixnum (2), Qnil); |
| 7269 | 7269 | ||
| 7270 | { | 7270 | { |
| 7271 | LCID input_locale_id = LOWORD (GetKeyboardLayout (0)); | 7271 | LCID input_locale_id = LOWORD (GetKeyboardLayout (0)); |