aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-01-25 23:12:35 +0200
committerEli Zaretskii2015-01-25 23:12:35 +0200
commit49b822741f9cabc47b9a748eb6d82c3fbf2bb4a6 (patch)
tree8d827a105a95a648808d96d04366ef54efb359f3
parent11a9f3779ca7ec0c7559a5a3abf732d068684b84 (diff)
downloademacs-49b822741f9cabc47b9a748eb6d82c3fbf2bb4a6.tar.gz
emacs-49b822741f9cabc47b9a748eb6d82c3fbf2bb4a6.zip
Use bool for boolean in w32fns.c
src/w32fns.c (w32_defined_color, x_decode_color) (Fxw_color_defined_p, Fxw_color_values, x_set_icon_type) (x_set_menu_bar_lines, x_change_tool_bar_height) (x_set_internal_border_width, x_explicitly_set_name) (x_implicitly_set_name, Fx_create_frame, w32_window) (x_create_tip_frame, Fx_show_tip): Use bool where appropriate.
-rw-r--r--src/ChangeLog10
-rw-r--r--src/w32fns.c79
-rw-r--r--src/w32term.h2
3 files changed, 52 insertions, 39 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index eeea0d8bb22..bdc7c721095 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12015-01-25 Eli Zaretskii <eliz@gnu.org>
2
3 Use bool for boolean in w32fns.c
4 * w32fns.c (w32_defined_color, x_decode_color)
5 (Fxw_color_defined_p, Fxw_color_values, x_set_icon_type)
6 (x_set_menu_bar_lines, x_change_tool_bar_height)
7 (x_set_internal_border_width, x_explicitly_set_name)
8 (x_implicitly_set_name, Fx_create_frame, w32_window)
9 (x_create_tip_frame, Fx_show_tip): Use bool where appropriate.
10
12015-01-25 Paul Eggert <eggert@cs.ucla.edu> 112015-01-25 Paul Eggert <eggert@cs.ucla.edu>
2 12
3 Use bool for boolean in xfns.c 13 Use bool for boolean in xfns.c
diff --git a/src/w32fns.c b/src/w32fns.c
index 55e58294629..c269c4f8e68 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -1133,7 +1133,8 @@ gamma_correct (struct frame *f, COLORREF *color)
1133 If ALLOC is nonzero, allocate a new colormap cell. */ 1133 If ALLOC is nonzero, allocate a new colormap cell. */
1134 1134
1135int 1135int
1136w32_defined_color (struct frame *f, const char *color, XColor *color_def, int alloc) 1136w32_defined_color (struct frame *f, const char *color, XColor *color_def,
1137 bool alloc_p)
1137{ 1138{
1138 register Lisp_Object tem; 1139 register Lisp_Object tem;
1139 COLORREF w32_color_ref; 1140 COLORREF w32_color_ref;
@@ -1167,7 +1168,7 @@ w32_defined_color (struct frame *f, const char *color, XColor *color_def, int al
1167 entry = entry->next; 1168 entry = entry->next;
1168 } 1169 }
1169 1170
1170 if (entry == NULL && alloc) 1171 if (entry == NULL && alloc_p)
1171 { 1172 {
1172 /* not already mapped, so add to list */ 1173 /* not already mapped, so add to list */
1173 entry = xmalloc (sizeof (struct w32_palette_entry)); 1174 entry = xmalloc (sizeof (struct w32_palette_entry));
@@ -1220,7 +1221,7 @@ x_decode_color (struct frame *f, Lisp_Object arg, int def)
1220 1221
1221 /* w32_defined_color is responsible for coping with failures 1222 /* w32_defined_color is responsible for coping with failures
1222 by looking for a near-miss. */ 1223 by looking for a near-miss. */
1223 if (w32_defined_color (f, SDATA (arg), &cdef, 1)) 1224 if (w32_defined_color (f, SDATA (arg), &cdef, true))
1224 return cdef.pixel; 1225 return cdef.pixel;
1225 1226
1226 /* defined_color failed; return an ultimate default. */ 1227 /* defined_color failed; return an ultimate default. */
@@ -1524,7 +1525,7 @@ x_set_cursor_type (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
1524void 1525void
1525x_set_icon_type (struct frame *f, Lisp_Object arg, Lisp_Object oldval) 1526x_set_icon_type (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
1526{ 1527{
1527 int result; 1528 bool result;
1528 1529
1529 if (NILP (arg) && NILP (oldval)) 1530 if (NILP (arg) && NILP (oldval))
1530 return; 1531 return;
@@ -1632,7 +1633,7 @@ x_set_internal_border_width (struct frame *f, Lisp_Object arg, Lisp_Object oldva
1632 1633
1633 if (FRAME_X_WINDOW (f) != 0) 1634 if (FRAME_X_WINDOW (f) != 0)
1634 { 1635 {
1635 adjust_frame_size (f, -1, -1, 3, 0, Qinternal_border_width); 1636 adjust_frame_size (f, -1, -1, 3, false, Qinternal_border_width);
1636 1637
1637 if (FRAME_VISIBLE_P (f)) 1638 if (FRAME_VISIBLE_P (f))
1638 x_clear_under_internal_border (f); 1639 x_clear_under_internal_border (f);
@@ -1678,7 +1679,7 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
1678 of the outer rectangle (including decorations) unchanged, and a 1679 of the outer rectangle (including decorations) unchanged, and a
1679 second time because we want to keep the height of the inner 1680 second time because we want to keep the height of the inner
1680 rectangle (without the decorations unchanged). */ 1681 rectangle (without the decorations unchanged). */
1681 adjust_frame_size (f, -1, -1, 2, 1, Qmenu_bar_lines); 1682 adjust_frame_size (f, -1, -1, 2, true, Qmenu_bar_lines);
1682 1683
1683 /* Not sure whether this is needed. */ 1684 /* Not sure whether this is needed. */
1684 x_clear_under_internal_border (f); 1685 x_clear_under_internal_border (f);
@@ -1748,7 +1749,7 @@ x_change_tool_bar_height (struct frame *f, int height)
1748 (!f->tool_bar_redisplayed_once ? 1 1749 (!f->tool_bar_redisplayed_once ? 1
1749 : (old_height == 0 || height == 0) ? 2 1750 : (old_height == 0 || height == 0) ? 2
1750 : 4), 1751 : 4),
1751 0, Qtool_bar_lines); 1752 false, Qtool_bar_lines);
1752 1753
1753 /* adjust_frame_size might not have done anything, garbage frame 1754 /* adjust_frame_size might not have done anything, garbage frame
1754 here. */ 1755 here. */
@@ -1771,7 +1772,7 @@ x_change_tool_bar_height (struct frame *f, int height)
1771 F->explicit_name is set, ignore the new name; otherwise, set it. */ 1772 F->explicit_name is set, ignore the new name; otherwise, set it. */
1772 1773
1773void 1774void
1774x_set_name (struct frame *f, Lisp_Object name, int explicit) 1775x_set_name (struct frame *f, Lisp_Object name, bool explicit)
1775{ 1776{
1776 /* Make sure that requests from lisp code override requests from 1777 /* Make sure that requests from lisp code override requests from
1777 Emacs redisplay code. */ 1778 Emacs redisplay code. */
@@ -1826,7 +1827,7 @@ x_set_name (struct frame *f, Lisp_Object name, int explicit)
1826void 1827void
1827x_explicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) 1828x_explicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
1828{ 1829{
1829 x_set_name (f, arg, 1); 1830 x_set_name (f, arg, true);
1830} 1831}
1831 1832
1832/* This function should be called by Emacs redisplay code to set the 1833/* This function should be called by Emacs redisplay code to set the
@@ -1835,7 +1836,7 @@ x_explicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
1835void 1836void
1836x_implicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) 1837x_implicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
1837{ 1838{
1838 x_set_name (f, arg, 0); 1839 x_set_name (f, arg, false);
1839} 1840}
1840 1841
1841/* Change the title of frame F to NAME. 1842/* Change the title of frame F to NAME.
@@ -4199,7 +4200,7 @@ my_create_tip_window (struct frame *f)
4199/* Create and set up the w32 window for frame F. */ 4200/* Create and set up the w32 window for frame F. */
4200 4201
4201static void 4202static void
4202w32_window (struct frame *f, long window_prompting, int minibuffer_only) 4203w32_window (struct frame *f, long window_prompting, bool minibuffer_only)
4203{ 4204{
4204 block_input (); 4205 block_input ();
4205 4206
@@ -4418,7 +4419,7 @@ This function is an internal primitive--use `make-frame' instead. */)
4418 struct frame *f; 4419 struct frame *f;
4419 Lisp_Object frame, tem; 4420 Lisp_Object frame, tem;
4420 Lisp_Object name; 4421 Lisp_Object name;
4421 int minibuffer_only = 0; 4422 bool minibuffer_only = false;
4422 long window_prompting = 0; 4423 long window_prompting = 0;
4423 ptrdiff_t count = SPECPDL_INDEX (); 4424 ptrdiff_t count = SPECPDL_INDEX ();
4424 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; 4425 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
@@ -4478,12 +4479,12 @@ This function is an internal primitive--use `make-frame' instead. */)
4478 else if (EQ (tem, Qonly)) 4479 else if (EQ (tem, Qonly))
4479 { 4480 {
4480 f = make_minibuffer_frame (); 4481 f = make_minibuffer_frame ();
4481 minibuffer_only = 1; 4482 minibuffer_only = true;
4482 } 4483 }
4483 else if (WINDOWP (tem)) 4484 else if (WINDOWP (tem))
4484 f = make_frame_without_minibuffer (tem, kb, display); 4485 f = make_frame_without_minibuffer (tem, kb, display);
4485 else 4486 else
4486 f = make_frame (1); 4487 f = make_frame (true);
4487 4488
4488 XSETFRAME (frame, f); 4489 XSETFRAME (frame, f);
4489 4490
@@ -4520,12 +4521,12 @@ This function is an internal primitive--use `make-frame' instead. */)
4520 /* Cast to UINT_PTR shuts up compiler warnings about cast to 4521 /* Cast to UINT_PTR shuts up compiler warnings about cast to
4521 pointer from integer of different size. */ 4522 pointer from integer of different size. */
4522 f->output_data.w32->parent_desc = (Window) (UINT_PTR) XFASTINT (parent); 4523 f->output_data.w32->parent_desc = (Window) (UINT_PTR) XFASTINT (parent);
4523 f->output_data.w32->explicit_parent = 1; 4524 f->output_data.w32->explicit_parent = true;
4524 } 4525 }
4525 else 4526 else
4526 { 4527 {
4527 f->output_data.w32->parent_desc = FRAME_DISPLAY_INFO (f)->root_window; 4528 f->output_data.w32->parent_desc = FRAME_DISPLAY_INFO (f)->root_window;
4528 f->output_data.w32->explicit_parent = 0; 4529 f->output_data.w32->explicit_parent = false;
4529 } 4530 }
4530 4531
4531 /* Set the name; the functions to which we pass f expect the name to 4532 /* Set the name; the functions to which we pass f expect the name to
@@ -4533,12 +4534,12 @@ This function is an internal primitive--use `make-frame' instead. */)
4533 if (EQ (name, Qunbound) || NILP (name)) 4534 if (EQ (name, Qunbound) || NILP (name))
4534 { 4535 {
4535 fset_name (f, build_string (dpyinfo->w32_id_name)); 4536 fset_name (f, build_string (dpyinfo->w32_id_name));
4536 f->explicit_name = 0; 4537 f->explicit_name = false;
4537 } 4538 }
4538 else 4539 else
4539 { 4540 {
4540 fset_name (f, name); 4541 fset_name (f, name);
4541 f->explicit_name = 1; 4542 f->explicit_name = true;
4542 /* Use the frame's title when getting resources for this frame. */ 4543 /* Use the frame's title when getting resources for this frame. */
4543 specbind (Qx_resource_name, name); 4544 specbind (Qx_resource_name, name);
4544 } 4545 }
@@ -4616,7 +4617,7 @@ This function is an internal primitive--use `make-frame' instead. */)
4616 had one frame line vs one toolbar line which left us with a zero 4617 had one frame line vs one toolbar line which left us with a zero
4617 root window height which was obviously wrong as well ... */ 4618 root window height which was obviously wrong as well ... */
4618 adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), 4619 adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f),
4619 FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 5, 1, 4620 FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 5, true,
4620 Qx_create_frame_1); 4621 Qx_create_frame_1);
4621 4622
4622 /* The X resources controlling the menu-bar and tool-bar are 4623 /* The X resources controlling the menu-bar and tool-bar are
@@ -4651,7 +4652,7 @@ This function is an internal primitive--use `make-frame' instead. */)
4651 4652
4652 f->output_data.w32->current_cursor = f->output_data.w32->nontext_cursor; 4653 f->output_data.w32->current_cursor = f->output_data.w32->nontext_cursor;
4653 4654
4654 window_prompting = x_figure_window_size (f, parameters, 1); 4655 window_prompting = x_figure_window_size (f, parameters, true);
4655 4656
4656 tem = x_get_arg (dpyinfo, parameters, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); 4657 tem = x_get_arg (dpyinfo, parameters, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN);
4657 f->no_split = minibuffer_only || EQ (tem, Qt); 4658 f->no_split = minibuffer_only || EQ (tem, Qt);
@@ -4685,14 +4686,14 @@ This function is an internal primitive--use `make-frame' instead. */)
4685 /* Allow x_set_window_size, now. */ 4686 /* Allow x_set_window_size, now. */
4686 f->can_x_set_window_size = true; 4687 f->can_x_set_window_size = true;
4687 4688
4688 adjust_frame_size (f, FRAME_TEXT_WIDTH (f), FRAME_TEXT_HEIGHT (f), 0, 1, 4689 adjust_frame_size (f, FRAME_TEXT_WIDTH (f), FRAME_TEXT_HEIGHT (f), 0, true,
4689 Qx_create_frame_2); 4690 Qx_create_frame_2);
4690 4691
4691 /* Tell the server what size and position, etc, we want, and how 4692 /* Tell the server what size and position, etc, we want, and how
4692 badly we want them. This should be done after we have the menu 4693 badly we want them. This should be done after we have the menu
4693 bar so that its size can be taken into account. */ 4694 bar so that its size can be taken into account. */
4694 block_input (); 4695 block_input ();
4695 x_wm_set_size_hint (f, window_prompting, 0); 4696 x_wm_set_size_hint (f, window_prompting, false);
4696 unblock_input (); 4697 unblock_input ();
4697 4698
4698 /* Make the window appear on the frame and enable display, unless 4699 /* Make the window appear on the frame and enable display, unless
@@ -4762,7 +4763,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0,
4762 4763
4763 CHECK_STRING (color); 4764 CHECK_STRING (color);
4764 4765
4765 if (w32_defined_color (f, SDATA (color), &foo, 0)) 4766 if (w32_defined_color (f, SDATA (color), &foo, false))
4766 return Qt; 4767 return Qt;
4767 else 4768 else
4768 return Qnil; 4769 return Qnil;
@@ -4777,7 +4778,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0,
4777 4778
4778 CHECK_STRING (color); 4779 CHECK_STRING (color);
4779 4780
4780 if (w32_defined_color (f, SDATA (color), &foo, 0)) 4781 if (w32_defined_color (f, SDATA (color), &foo, false))
4781 return list3i ((GetRValue (foo.pixel) << 8) | GetRValue (foo.pixel), 4782 return list3i ((GetRValue (foo.pixel) << 8) | GetRValue (foo.pixel),
4782 (GetGValue (foo.pixel) << 8) | GetGValue (foo.pixel), 4783 (GetGValue (foo.pixel) << 8) | GetGValue (foo.pixel),
4783 (GetBValue (foo.pixel) << 8) | GetBValue (foo.pixel)); 4784 (GetBValue (foo.pixel) << 8) | GetBValue (foo.pixel));
@@ -5647,7 +5648,7 @@ x_create_tip_frame (struct w32_display_info *dpyinfo,
5647 frame = Qnil; 5648 frame = Qnil;
5648 GCPRO3 (parms, name, frame); 5649 GCPRO3 (parms, name, frame);
5649 /* Make a frame without minibuffer nor mode-line. */ 5650 /* Make a frame without minibuffer nor mode-line. */
5650 f = make_frame (0); 5651 f = make_frame (false);
5651 f->wants_modeline = 0; 5652 f->wants_modeline = 0;
5652 XSETFRAME (frame, f); 5653 XSETFRAME (frame, f);
5653 5654
@@ -5655,7 +5656,7 @@ x_create_tip_frame (struct w32_display_info *dpyinfo,
5655 buffer = Fget_buffer_create (tip); 5656 buffer = Fget_buffer_create (tip);
5656 /* Use set_window_buffer instead of Fset_window_buffer (see 5657 /* Use set_window_buffer instead of Fset_window_buffer (see
5657 discussion of bug#11984, bug#12025, bug#12026). */ 5658 discussion of bug#11984, bug#12025, bug#12026). */
5658 set_window_buffer (FRAME_ROOT_WINDOW (f), buffer, 0, 0); 5659 set_window_buffer (FRAME_ROOT_WINDOW (f), buffer, false, false);
5659 old_buffer = current_buffer; 5660 old_buffer = current_buffer;
5660 set_buffer_internal_1 (XBUFFER (buffer)); 5661 set_buffer_internal_1 (XBUFFER (buffer));
5661 bset_truncate_lines (current_buffer, Qnil); 5662 bset_truncate_lines (current_buffer, Qnil);
@@ -5685,19 +5686,19 @@ x_create_tip_frame (struct w32_display_info *dpyinfo,
5685#endif /* GLYPH_DEBUG */ 5686#endif /* GLYPH_DEBUG */
5686 FRAME_KBOARD (f) = kb; 5687 FRAME_KBOARD (f) = kb;
5687 f->output_data.w32->parent_desc = FRAME_DISPLAY_INFO (f)->root_window; 5688 f->output_data.w32->parent_desc = FRAME_DISPLAY_INFO (f)->root_window;
5688 f->output_data.w32->explicit_parent = 0; 5689 f->output_data.w32->explicit_parent = false;
5689 5690
5690 /* Set the name; the functions to which we pass f expect the name to 5691 /* Set the name; the functions to which we pass f expect the name to
5691 be set. */ 5692 be set. */
5692 if (EQ (name, Qunbound) || NILP (name)) 5693 if (EQ (name, Qunbound) || NILP (name))
5693 { 5694 {
5694 fset_name (f, build_string (dpyinfo->w32_id_name)); 5695 fset_name (f, build_string (dpyinfo->w32_id_name));
5695 f->explicit_name = 0; 5696 f->explicit_name = false;
5696 } 5697 }
5697 else 5698 else
5698 { 5699 {
5699 fset_name (f, name); 5700 fset_name (f, name);
5700 f->explicit_name = 1; 5701 f->explicit_name = true;
5701 /* use the frame's title when getting resources for this frame. */ 5702 /* use the frame's title when getting resources for this frame. */
5702 specbind (Qx_resource_name, name); 5703 specbind (Qx_resource_name, name);
5703 } 5704 }
@@ -5758,7 +5759,7 @@ x_create_tip_frame (struct w32_display_info *dpyinfo,
5758 f->output_data.w32->dwStyle = WS_BORDER | WS_POPUP | WS_DISABLED; 5759 f->output_data.w32->dwStyle = WS_BORDER | WS_POPUP | WS_DISABLED;
5759 f->output_data.w32->parent_desc = FRAME_DISPLAY_INFO (f)->root_window; 5760 f->output_data.w32->parent_desc = FRAME_DISPLAY_INFO (f)->root_window;
5760 5761
5761 window_prompting = x_figure_window_size (f, parms, 0); 5762 window_prompting = x_figure_window_size (f, parms, false);
5762 5763
5763 /* No fringes on tip frame. */ 5764 /* No fringes on tip frame. */
5764 f->fringe_cols = 0; 5765 f->fringe_cols = 0;
@@ -5786,7 +5787,7 @@ x_create_tip_frame (struct w32_display_info *dpyinfo,
5786 SET_FRAME_COLS (f, 0); 5787 SET_FRAME_COLS (f, 0);
5787 SET_FRAME_LINES (f, 0); 5788 SET_FRAME_LINES (f, 0);
5788 adjust_frame_size (f, width * FRAME_COLUMN_WIDTH (f), 5789 adjust_frame_size (f, width * FRAME_COLUMN_WIDTH (f),
5789 height * FRAME_LINE_HEIGHT (f), 0, 1, Qnil); 5790 height * FRAME_LINE_HEIGHT (f), 0, true, Qnil);
5790 5791
5791 /* Add `tooltip' frame parameter's default value. */ 5792 /* Add `tooltip' frame parameter's default value. */
5792 if (NILP (Fframe_parameter (frame, Qtooltip))) 5793 if (NILP (Fframe_parameter (frame, Qtooltip)))
@@ -5818,7 +5819,7 @@ x_create_tip_frame (struct w32_display_info *dpyinfo,
5818 Fmodify_frame_parameters (frame, colors); 5819 Fmodify_frame_parameters (frame, colors);
5819 } 5820 }
5820 5821
5821 f->no_split = 1; 5822 f->no_split = true;
5822 5823
5823 UNGCPRO; 5824 UNGCPRO;
5824 5825
@@ -5965,7 +5966,8 @@ Text larger than the specified size is clipped. */)
5965 int root_x, root_y; 5966 int root_x, root_y;
5966 struct buffer *old_buffer; 5967 struct buffer *old_buffer;
5967 struct text_pos pos; 5968 struct text_pos pos;
5968 int i, width, height, seen_reversed_p; 5969 int i, width, height;
5970 bool seen_reversed_p;
5969 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; 5971 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
5970 int old_windows_or_buffers_changed = windows_or_buffers_changed; 5972 int old_windows_or_buffers_changed = windows_or_buffers_changed;
5971 ptrdiff_t count = SPECPDL_INDEX (); 5973 ptrdiff_t count = SPECPDL_INDEX ();
@@ -6094,7 +6096,7 @@ Text larger than the specified size is clipped. */)
6094 6096
6095 FRAME_TOTAL_COLS (f) = WINDOW_TOTAL_COLS (w); 6097 FRAME_TOTAL_COLS (f) = WINDOW_TOTAL_COLS (w);
6096 adjust_frame_glyphs (f); 6098 adjust_frame_glyphs (f);
6097 w->pseudo_window_p = 1; 6099 w->pseudo_window_p = true;
6098 6100
6099 /* Display the tooltip text in a temporary buffer. */ 6101 /* Display the tooltip text in a temporary buffer. */
6100 old_buffer = current_buffer; 6102 old_buffer = current_buffer;
@@ -6106,7 +6108,8 @@ Text larger than the specified size is clipped. */)
6106 try_window (FRAME_ROOT_WINDOW (f), pos, TRY_WINDOW_IGNORE_FONTS_CHANGE); 6108 try_window (FRAME_ROOT_WINDOW (f), pos, TRY_WINDOW_IGNORE_FONTS_CHANGE);
6107 6109
6108 /* Compute width and height of the tooltip. */ 6110 /* Compute width and height of the tooltip. */
6109 width = height = seen_reversed_p = 0; 6111 width = height = 0;
6112 seen_reversed_p = false;
6110 for (i = 0; i < w->desired_matrix->nrows; ++i) 6113 for (i = 0; i < w->desired_matrix->nrows; ++i)
6111 { 6114 {
6112 struct glyph_row *row = &w->desired_matrix->rows[i]; 6115 struct glyph_row *row = &w->desired_matrix->rows[i];
@@ -6118,7 +6121,7 @@ Text larger than the specified size is clipped. */)
6118 break; 6121 break;
6119 6122
6120 /* Let the row go over the full width of the frame. */ 6123 /* Let the row go over the full width of the frame. */
6121 row->full_width_p = 1; 6124 row->full_width_p = true;
6122 6125
6123 row_width = row->pixel_width; 6126 row_width = row->pixel_width;
6124 if (row->used[TEXT_AREA]) 6127 if (row->used[TEXT_AREA])
@@ -6142,7 +6145,7 @@ Text larger than the specified size is clipped. */)
6142 if (g->type == STRETCH_GLYPH && NILP (g->object)) 6145 if (g->type == STRETCH_GLYPH && NILP (g->object))
6143 { 6146 {
6144 row_width -= g->pixel_width; 6147 row_width -= g->pixel_width;
6145 seen_reversed_p = 1; 6148 seen_reversed_p = true;
6146 } 6149 }
6147 } 6150 }
6148 } 6151 }
@@ -6183,7 +6186,7 @@ Text larger than the specified size is clipped. */)
6183 6186
6184 if (!row->enabled_p || !MATRIX_ROW_DISPLAYS_TEXT_P (row)) 6187 if (!row->enabled_p || !MATRIX_ROW_DISPLAYS_TEXT_P (row))
6185 break; 6188 break;
6186 row->full_width_p = 1; 6189 row->full_width_p = true;
6187 row_width = row->pixel_width; 6190 row_width = row->pixel_width;
6188 if (row->used[TEXT_AREA] && !row->reversed_p) 6191 if (row->used[TEXT_AREA] && !row->reversed_p)
6189 { 6192 {
diff --git a/src/w32term.h b/src/w32term.h
index c905ef15737..3532e95fdce 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -239,7 +239,7 @@ Lisp_Object display_x_get_resource (struct w32_display_info *,
239extern struct w32_display_info *w32_term_init (Lisp_Object, 239extern struct w32_display_info *w32_term_init (Lisp_Object,
240 char *, char *); 240 char *, char *);
241extern int w32_defined_color (struct frame *f, const char *color, 241extern int w32_defined_color (struct frame *f, const char *color,
242 XColor *color_def, int alloc); 242 XColor *color_def, bool alloc_p);
243extern void x_set_window_size (struct frame *f, bool change_gravity, 243extern void x_set_window_size (struct frame *f, bool change_gravity,
244 int width, int height, bool pixelwise); 244 int width, int height, bool pixelwise);
245extern int x_display_pixel_height (struct w32_display_info *); 245extern int x_display_pixel_height (struct w32_display_info *);