aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.h
diff options
context:
space:
mode:
authorPaul Eggert2013-12-14 13:36:44 -0800
committerPaul Eggert2013-12-14 13:36:44 -0800
commit96c0686368d8b7d481cb40239db896ff37df416a (patch)
tree84d8ee02271476dd4aaaee52c5302f2c576089ef /src/frame.h
parent5ae811ddef14ea1989088c259a9ed2d14d5332b4 (diff)
downloademacs-96c0686368d8b7d481cb40239db896ff37df416a.tar.gz
emacs-96c0686368d8b7d481cb40239db896ff37df416a.zip
Use bool for boolean, focusing on headers.
* configure.ac (PTY_OPEN, GC_MARK_SECONDARY_STACK): Use bool for boolean. * lib-src/emacsclient.c, lib-src/etags.c, lib-src/hexl.c (FALSE, TRUE): Remove. All uses replaced with uncapitalized version. * lib-src/emacsclient.c (message): * lib-src/etags.c (make_tag, pfnote, consider_token, make_C_tag, lang_names): * lib-src/hexl.c (un_flag, iso_flag, endian): * lib-src/pop.c (pop_debug, pop_open, pop_multi_first, pop_multi_next) (pop_trash): Use bool for boolean. * lib-src/etags.c (bool): Remove. * lib-src/etags.c (globals, members, declarations, no_line_directive) (no_duplicates): Use 'int' for boolean values that getopt requires to be 'int'. Formerly, these were 'bool' and 'bool' was 'int', but we can no longer rely on this implementation. * lib-src/pop.h (struct _popserver): Use bool_bf for boolean bit-fields. * lwlib/xlwmenuP.h (XlwMenu_part): Use bool_bf for boolean bit-fields. * src/atimer.h, src/lisp.h, src/syssignal.h, src/syswait.h, src/unexelf.c: No need to include <stdbool.h>, since conf_post.h does it now. * src/buffer.h (BUF_COMPUTE_UNCHANGED, DECODE_POSITION) (BUFFER_CHECK_INDIRECTION, GET_OVERLAYS_AT, PER_BUFFER_VALUE_P) (SET_PER_BUFFER_VALUE_P): * src/ccl.c, src/ccl.h (setup_ccl_program): * src/ccl.h (CHECK_CCL_PROGRAM): * src/character.h (MAKE_CHAR_UNIBYTE, CHECK_CHARACTER_CAR) (CHECK_CHARACTER_CDR, CHAR_STRING_ADVANCE, NEXT_CHAR_BOUNDARY) (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE) (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE) (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, FETCH_CHAR_ADVANCE) (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, INC_BOTH) (DEC_BOTH, BUF_INC_POS, BUF_DEC_POS): * src/charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID) (CHECK_CHARSET_GET_ATTR, CHECK_CHARSET_GET_CHARSET) (CHARSET_FAST_MAP_SET): * src/coding.c (decode_coding_ccl, encode_coding_ccl): * src/coding.h (CHECK_CODING_SYSTEM, CHECK_CODING_SYSTEM_GET_SPEC) (CHECK_CODING_SYSTEM_GET_ID, SJIS_TO_JIS, SJIS_TO_JIS2) (JIS_TO_SJIS, JIS_TO_SJIS2, ENCODE_FILE, DECODE_FILE) (ENCODE_SYSTEM, DECODE_SYSTEM, ENCODE_UTF_8) (decode_coding_c_string): * src/composite.h (COMPOSITION_DECODE_REFS, COMPOSITION_DECODE_RULE): * src/conf_post.h (has_attribute): * src/dispextern.h (trace_redisplay_p): (INC_TEXT_POS, DEC_TEXT_POS, SET_GLYPH_FROM_GLYPH_CODE) (SET_CHAR_GLYPH, SET_CHAR_GLYPH_FROM_GLYPH) (SET_GLYPH_FROM_CHAR_GLYPH): (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P) (FACE_SUITABLE_FOR_ASCII_CHAR_P, FACE_SUITABLE_FOR_CHAR_P) (PRODUCE_GLYPHS, reset_mouse_highlight, in_display_vector_p) (cursor_in_mouse_face_p): * src/dispnew.c (adjust_glyph_matrix, clear_glyph_matrix_rows) (blank_row, prepare_desired_row) (build_frame_matrix_from_leaf_window, make_current) (mirror_make_current, mirrored_line_dance, mirror_line_dance) (update_window, scrolling_window, update_frame_line): * src/disptab.h (GLYPH_FOLLOW_ALIASES): * src/editfns.c (Fformat): * src/font.h (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC) (FONT_WIDTH_SYMBOLIC, FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE) (FONT_WIDTH_FOR_FACE, FONT_WEIGHT_NAME_NUMERIC) (FONT_SLANT_NAME_NUMERIC, FONT_WIDTH_NAME_NUMERIC) (FONT_SET_STYLE, CHECK_FONT, CHECK_FONT_SPEC, CHECK_FONT_ENTITY) (CHECK_FONT_OBJECT, CHECK_FONT_GET_OBJECT, FONT_ADD_LOG) (FONT_DEFERRED_LOG): * src/frame.h (FRAME_W32_P, FRAME_MSDOS_P, FRAME_WINDOW_P): (FRAME_EXTERNAL_TOOL_BAR, FRAME_EXTERNAL_MENU_BAR, FOR_EACH_FRAME) (FRAME_MOUSE_UPDATE): * src/fringe.c (Fdefine_fringe_bitmap): * src/image.c (x_create_bitmap_from_data, x_create_bitmap_mask) (x_create_bitmap_from_xpm_data, xpm_load_image): * src/intervals.h (INTERVAL_HAS_PARENT, INTERVAL_PARENT) (set_interval_parent, RESET_INTERVAL, COPY_INTERVAL_CACHE) (MERGE_INTERVAL_CACHE): * src/keymap.h (KEYMAPP): * src/lisp.h (eassert, USE_LSB_TAG, CHECK_LISP_OBJECT_TYPE) (STRING_SET_UNIBYTE, STRING_SET_MULTIBYTE, DEFSYM, PSEUDOVECTORP) (CHECK_RANGED_INTEGER, CHECK_TYPE_RANGED_INTEGER) (CHECK_NUMBER_COERCE_MARKER, CHECK_NUMBER_OR_FLOAT_COERCE_MARKER) (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT) (DEFVAR_BUFFER_DEFAULTS, DEFVAR_KBOARD, QUIT) (RETURN_UNGCPRO, USE_SAFE_ALLOCA, SAFE_NALLOCA, SAFE_FREE) (SAFE_ALLOCA_LISP, FOR_EACH_ALIST_VALUE, functionp): * src/syntax.h (SYNTAX_ENTRY, SYNTAX_WITH_FLAGS, SYNTAX) (UPDATE_SYNTAX_TABLE_FORWARD, UPDATE_SYNTAX_TABLE_BACKWARD) (SETUP_BUFFER_SYNTAX_TABLE): * src/systime.h (timespec_valid_p): * src/term.c (save_and_enable_current_matrix): * src/window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): * src/xdisp.c (in_display_vector_p, display_tool_bar_line) (redisplay_internal, try_window_reusing_current_matrix) (sync_frame_with_window_matrix_rows, try_window_id) (display_menu_bar, display_tty_menu_item, display_mode_line) (coords_in_mouse_face_p, cursor_in_mouse_face_p): * src/xmenu.c (xmenu_show): * src/xterm.c (use_xim, x_term_init): * src/xterm.h (XSync, GTK_CHECK_VERSION, use_xim, SET_SCROLL_BAR_X_WIDGET) (struct x_bitmap_record): Use bool for booleans. * src/ccl.c (struct buffer_text): * src/ccl.h (struct ccl_program): * src/charset.h (struct charset): * src/cm.h (struct cm): * src/coding.h (struct iso_2022_spec, struct coding_system): * src/dispextern.h (struct glyph, struct glyph_matrix, struct glyph_row) (struct glyph_string, struct face, struct face_cache) (struct bidi_string_data, struct bidi_it) (struct draw_fringe_bitmap_params, struct it, Mouse_HLInfo) (struct image): * src/editfns.c (Fformat): * src/frame.h (struct frame): * src/fringe.c (struct fringe_bitmap): * src/intervals.h (struct interval): * src/keyboard.h (struct kboard): * src/lisp.h (struct Lisp_Symbol, struct Lisp_Misc_Any, struct Lisp_Marker) (struct Lisp_Overlay, struct Lisp_Save_Value, struct Lisp_Free) (struct Lisp_Buffer_Local_Value, union specbinding): * src/macfont.m (struct macfont_info): * src/process.h (struct Lisp_Process): * src/termchar.h (struct tty_display_info): * src/window.h (struct window): * src/xterm.h (struct x_output): Use bool_bf for boolean bit-fields. * src/ccl.c (setup_ccl_program): Now returns bool instead of -1 or 0. All callers changed. * src/ccl.h (struct ccl_program): Remove unused members private_state, src_multibyte, dst_multibyte, cr_consumed, suppress_error, eight_bit_control. (struct ccl_spec): Remove unused members cr_carryover, eight_bit_carryover. * src/conf_post.h: Include <stdbool.h>. (bool_bf): New type. * src/dispextern.h (TRACE, PREPARE_FACE_FOR_DISPLAY): * src/interval.h (RESET_INTERVAL, COPY_INTERVAL_CACHE, MERGE_INTERVAL_CACHE) Surround statement macro with proper 'do { ... } while (false)' brackets. (SET_MATRIX_ROW_ENABLED_P): Assume 2nd arg is bool. (PRODUCE_GLYPHS): Simplify use of boolean. * src/fileio.c (Fcopy_file): If I is an integer, prefer 'if (I != 0)' to 'if (I)'. * src/lisp.h (UNGCPRO): Return void, not int. (FOR_EACH_TAIL): Use void expression, not int expression. * src/region-cache.c: Reindent. * src/region-cache.h: Copy comments from region-cache.c, to fix incorrect remarks about booleans.
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h124
1 files changed, 61 insertions, 63 deletions
diff --git a/src/frame.h b/src/frame.h
index 0f6a674dc06..91b8ca04903 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -177,46 +177,46 @@ struct frame
177 struct glyph_matrix *desired_matrix; 177 struct glyph_matrix *desired_matrix;
178 struct glyph_matrix *current_matrix; 178 struct glyph_matrix *current_matrix;
179 179
180 /* 1 means that glyphs on this frame have been initialized so it can 180 /* True means that glyphs on this frame have been initialized so it can
181 be used for output. */ 181 be used for output. */
182 unsigned glyphs_initialized_p : 1; 182 bool_bf glyphs_initialized_p : 1;
183 183
184 /* Set to non-zero in change_frame_size when size of frame changed 184 /* Set to true in change_frame_size when size of frame changed
185 Clear the frame in clear_garbaged_frames if set. */ 185 Clear the frame in clear_garbaged_frames if set. */
186 unsigned resized_p : 1; 186 bool_bf resized_p : 1;
187 187
188 /* Set to non-zero if the default face for the frame has been 188 /* Set to true if the default face for the frame has been
189 realized. Reset to zero whenever the default face changes. 189 realized. Reset to zero whenever the default face changes.
190 Used to see the difference between a font change and face change. */ 190 Used to see the difference between a font change and face change. */
191 unsigned default_face_done_p : 1; 191 bool_bf default_face_done_p : 1;
192 192
193 /* Set to non-zero if this frame has already been hscrolled during 193 /* Set to true if this frame has already been hscrolled during
194 current redisplay. */ 194 current redisplay. */
195 unsigned already_hscrolled_p : 1; 195 bool_bf already_hscrolled_p : 1;
196 196
197 /* Set to non-zero when current redisplay has updated frame. */ 197 /* Set to true when current redisplay has updated frame. */
198 unsigned updated_p : 1; 198 bool_bf updated_p : 1;
199 199
200#if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS) 200#if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS)
201 /* Set to non-zero to minimize tool-bar height even when 201 /* Set to true to minimize tool-bar height even when
202 auto-resize-tool-bar is set to grow-only. */ 202 auto-resize-tool-bar is set to grow-only. */
203 unsigned minimize_tool_bar_window_p : 1; 203 bool_bf minimize_tool_bar_window_p : 1;
204#endif 204#endif
205 205
206#if defined (USE_GTK) || defined (HAVE_NS) 206#if defined (USE_GTK) || defined (HAVE_NS)
207 /* Nonzero means using a tool bar that comes from the toolkit. */ 207 /* True means using a tool bar that comes from the toolkit. */
208 unsigned external_tool_bar : 1; 208 bool_bf external_tool_bar : 1;
209#endif 209#endif
210 210
211 /* Nonzero means that fonts have been loaded since the last glyph 211 /* True means that fonts have been loaded since the last glyph
212 matrix adjustments. */ 212 matrix adjustments. */
213 unsigned fonts_changed : 1; 213 bool_bf fonts_changed : 1;
214 214
215 /* Nonzero means that cursor type has been changed. */ 215 /* True means that cursor type has been changed. */
216 unsigned cursor_type_changed : 1; 216 bool_bf cursor_type_changed : 1;
217 217
218 /* True if it needs to be redisplayed. */ 218 /* True if it needs to be redisplayed. */
219 unsigned redisplay : 1; 219 bool_bf redisplay : 1;
220 220
221 /* Margin at the top of the frame. Used to display the tool-bar. */ 221 /* Margin at the top of the frame. Used to display the tool-bar. */
222 int tool_bar_lines; 222 int tool_bar_lines;
@@ -353,8 +353,8 @@ struct frame
353 353
354#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) \ 354#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) \
355 || defined (HAVE_NS) || defined (USE_GTK) 355 || defined (HAVE_NS) || defined (USE_GTK)
356 /* Nonzero means using a menu bar that comes from the X toolkit. */ 356 /* True means using a menu bar that comes from the X toolkit. */
357 unsigned external_menu_bar : 1; 357 bool_bf external_menu_bar : 1;
358#endif 358#endif
359 359
360 /* Next two bitfields are mutually exclusive. They might both be 360 /* Next two bitfields are mutually exclusive. They might both be
@@ -371,45 +371,45 @@ struct frame
371 updating it. */ 371 updating it. */
372 unsigned visible : 2; 372 unsigned visible : 2;
373 373
374 /* Nonzero if the frame is currently iconified. Do not 374 /* True if the frame is currently iconified. Do not
375 set this directly, use SET_FRAME_ICONIFIED instead. */ 375 set this directly, use SET_FRAME_ICONIFIED instead. */
376 unsigned iconified : 1; 376 bool_bf iconified : 1;
377 377
378 /* Nonzero if this frame should be redrawn. */ 378 /* True if this frame should be redrawn. */
379 unsigned garbaged : 1; 379 bool_bf garbaged : 1;
380 380
381 /* 0 means, if this frame has just one window, 381 /* False means, if this frame has just one window,
382 show no modeline for that window. */ 382 show no modeline for that window. */
383 unsigned wants_modeline : 1; 383 bool_bf wants_modeline : 1;
384 384
385 /* Non-0 means raise this frame to the top of the heap when selected. */ 385 /* True means raise this frame to the top of the heap when selected. */
386 unsigned auto_raise : 1; 386 bool_bf auto_raise : 1;
387 387
388 /* Non-0 means lower this frame to the bottom of the stack when left. */ 388 /* True means lower this frame to the bottom of the stack when left. */
389 unsigned auto_lower : 1; 389 bool_bf auto_lower : 1;
390 390
391 /* True if frame's root window can't be split. */ 391 /* True if frame's root window can't be split. */
392 unsigned no_split : 1; 392 bool_bf no_split : 1;
393 393
394 /* If this is set, then Emacs won't change the frame name to indicate 394 /* If this is set, then Emacs won't change the frame name to indicate
395 the current buffer, etcetera. If the user explicitly sets the frame 395 the current buffer, etcetera. If the user explicitly sets the frame
396 name, this gets set. If the user sets the name to Qnil, this is 396 name, this gets set. If the user sets the name to Qnil, this is
397 cleared. */ 397 cleared. */
398 unsigned explicit_name : 1; 398 bool_bf explicit_name : 1;
399 399
400 /* Nonzero if size of some window on this frame has changed. */ 400 /* True if size of some window on this frame has changed. */
401 unsigned window_sizes_changed : 1; 401 bool_bf window_sizes_changed : 1;
402 402
403 /* Nonzero if the mouse has moved on this display device 403 /* True if the mouse has moved on this display device
404 since the last time we checked. */ 404 since the last time we checked. */
405 unsigned mouse_moved : 1; 405 bool_bf mouse_moved : 1;
406 406
407 /* Nonzero means that the pointer is invisible. */ 407 /* True means that the pointer is invisible. */
408 unsigned pointer_invisible : 1; 408 bool_bf pointer_invisible : 1;
409 409
410 /* Nonzero means that all windows except mini-window and 410 /* True means that all windows except mini-window and
411 selected window on this frame have frozen window starts. */ 411 selected window on this frame have frozen window starts. */
412 unsigned frozen_window_starts : 1; 412 bool_bf frozen_window_starts : 1;
413 413
414 /* Nonzero if we should actually display the scroll bars on this frame. */ 414 /* Nonzero if we should actually display the scroll bars on this frame. */
415 enum vertical_scroll_bar_type vertical_scroll_bar_type; 415 enum vertical_scroll_bar_type vertical_scroll_bar_type;
@@ -606,17 +606,17 @@ default_pixels_per_inch_y (void)
606#define FRAME_TERMCAP_P(f) ((f)->output_method == output_termcap) 606#define FRAME_TERMCAP_P(f) ((f)->output_method == output_termcap)
607#define FRAME_X_P(f) ((f)->output_method == output_x_window) 607#define FRAME_X_P(f) ((f)->output_method == output_x_window)
608#ifndef HAVE_NTGUI 608#ifndef HAVE_NTGUI
609#define FRAME_W32_P(f) (0) 609#define FRAME_W32_P(f) false
610#else 610#else
611#define FRAME_W32_P(f) ((f)->output_method == output_w32) 611#define FRAME_W32_P(f) ((f)->output_method == output_w32)
612#endif 612#endif
613#ifndef MSDOS 613#ifndef MSDOS
614#define FRAME_MSDOS_P(f) (0) 614#define FRAME_MSDOS_P(f) false
615#else 615#else
616#define FRAME_MSDOS_P(f) ((f)->output_method == output_msdos_raw) 616#define FRAME_MSDOS_P(f) ((f)->output_method == output_msdos_raw)
617#endif 617#endif
618#ifndef HAVE_NS 618#ifndef HAVE_NS
619#define FRAME_NS_P(f) (0) 619#define FRAME_NS_P(f) false
620#else 620#else
621#define FRAME_NS_P(f) ((f)->output_method == output_ns) 621#define FRAME_NS_P(f) ((f)->output_method == output_ns)
622#endif 622#endif
@@ -634,7 +634,7 @@ default_pixels_per_inch_y (void)
634#define FRAME_WINDOW_P(f) FRAME_NS_P(f) 634#define FRAME_WINDOW_P(f) FRAME_NS_P(f)
635#endif 635#endif
636#ifndef FRAME_WINDOW_P 636#ifndef FRAME_WINDOW_P
637#define FRAME_WINDOW_P(f) ((void) (f), 0) 637#define FRAME_WINDOW_P(f) ((void) (f), false)
638#endif 638#endif
639 639
640/* Dots per inch of the screen the frame F is on. */ 640/* Dots per inch of the screen the frame F is on. */
@@ -669,14 +669,14 @@ default_pixels_per_inch_y (void)
669 (&(F)->output_data.tty->display_info->mouse_highlight) 669 (&(F)->output_data.tty->display_info->mouse_highlight)
670#endif 670#endif
671 671
672/* Nonzero if frame F is still alive (not deleted). */ 672/* True if frame F is still alive (not deleted). */
673#define FRAME_LIVE_P(f) ((f)->terminal != 0) 673#define FRAME_LIVE_P(f) ((f)->terminal != 0)
674 674
675/* Nonzero if frame F is a minibuffer-only frame. */ 675/* True if frame F is a minibuffer-only frame. */
676#define FRAME_MINIBUF_ONLY_P(f) \ 676#define FRAME_MINIBUF_ONLY_P(f) \
677 EQ (FRAME_ROOT_WINDOW (f), FRAME_MINIBUF_WINDOW (f)) 677 EQ (FRAME_ROOT_WINDOW (f), FRAME_MINIBUF_WINDOW (f))
678 678
679/* Nonzero if frame F contains it's own minibuffer window. Frame always has 679/* True if frame F contains it's own minibuffer window. Frame always has
680 minibuffer window, but it could use minibuffer window of another frame. */ 680 minibuffer window, but it could use minibuffer window of another frame. */
681#define FRAME_HAS_MINIBUF_P(f) \ 681#define FRAME_HAS_MINIBUF_P(f) \
682 (WINDOWP (f->minibuffer_window) \ 682 (WINDOWP (f->minibuffer_window) \
@@ -714,12 +714,12 @@ default_pixels_per_inch_y (void)
714/* Pixel height of frame F's menu bar. */ 714/* Pixel height of frame F's menu bar. */
715#define FRAME_MENU_BAR_HEIGHT(f) (f)->menu_bar_height 715#define FRAME_MENU_BAR_HEIGHT(f) (f)->menu_bar_height
716 716
717/* Nonzero if this frame should display a tool bar 717/* True if this frame should display a tool bar
718 in a way that does not use any text lines. */ 718 in a way that does not use any text lines. */
719#if defined (USE_GTK) || defined (HAVE_NS) 719#if defined (USE_GTK) || defined (HAVE_NS)
720#define FRAME_EXTERNAL_TOOL_BAR(f) (f)->external_tool_bar 720#define FRAME_EXTERNAL_TOOL_BAR(f) (f)->external_tool_bar
721#else 721#else
722#define FRAME_EXTERNAL_TOOL_BAR(f) 0 722#define FRAME_EXTERNAL_TOOL_BAR(f) false
723#endif 723#endif
724 724
725/* Number of lines of frame F used for the tool-bar. */ 725/* Number of lines of frame F used for the tool-bar. */
@@ -736,40 +736,40 @@ default_pixels_per_inch_y (void)
736#define FRAME_TOP_MARGIN_HEIGHT(F) \ 736#define FRAME_TOP_MARGIN_HEIGHT(F) \
737 (FRAME_MENU_BAR_HEIGHT (F) + FRAME_TOOL_BAR_HEIGHT (F)) 737 (FRAME_MENU_BAR_HEIGHT (F) + FRAME_TOOL_BAR_HEIGHT (F))
738 738
739/* Nonzero if this frame should display a menu bar 739/* True if this frame should display a menu bar
740 in a way that does not use any text lines. */ 740 in a way that does not use any text lines. */
741#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) \ 741#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) \
742 || defined (HAVE_NS) || defined (USE_GTK) 742 || defined (HAVE_NS) || defined (USE_GTK)
743#define FRAME_EXTERNAL_MENU_BAR(f) (f)->external_menu_bar 743#define FRAME_EXTERNAL_MENU_BAR(f) (f)->external_menu_bar
744#else 744#else
745#define FRAME_EXTERNAL_MENU_BAR(f) 0 745#define FRAME_EXTERNAL_MENU_BAR(f) false
746#endif 746#endif
747#define FRAME_VISIBLE_P(f) (f)->visible 747#define FRAME_VISIBLE_P(f) (f)->visible
748 748
749/* Nonzero if frame F is currently visible but hidden. */ 749/* True if frame F is currently visible but hidden. */
750#define FRAME_OBSCURED_P(f) ((f)->visible > 1) 750#define FRAME_OBSCURED_P(f) ((f)->visible > 1)
751 751
752/* Nonzero if frame F is currently iconified. */ 752/* True if frame F is currently iconified. */
753#define FRAME_ICONIFIED_P(f) (f)->iconified 753#define FRAME_ICONIFIED_P(f) (f)->iconified
754 754
755/* Mark frame F as currently garbaged. */ 755/* Mark frame F as currently garbaged. */
756#define SET_FRAME_GARBAGED(f) \ 756#define SET_FRAME_GARBAGED(f) \
757 (frame_garbaged = true, fset_redisplay (f), f->garbaged = true) 757 (frame_garbaged = true, fset_redisplay (f), f->garbaged = true)
758 758
759/* Nonzero if frame F is currently garbaged. */ 759/* True if frame F is currently garbaged. */
760#define FRAME_GARBAGED_P(f) (f)->garbaged 760#define FRAME_GARBAGED_P(f) (f)->garbaged
761 761
762/* Nonzero means do not allow splitting this frame's window. */ 762/* True means do not allow splitting this frame's window. */
763#define FRAME_NO_SPLIT_P(f) (f)->no_split 763#define FRAME_NO_SPLIT_P(f) (f)->no_split
764 764
765/* Not really implemented. */ 765/* Not really implemented. */
766#define FRAME_WANTS_MODELINE_P(f) (f)->wants_modeline 766#define FRAME_WANTS_MODELINE_P(f) (f)->wants_modeline
767 767
768/* Nonzero if all windows except selected window and mini window 768/* True if all windows except selected window and mini window
769 are frozen on frame F. */ 769 are frozen on frame F. */
770#define FRAME_WINDOWS_FROZEN(f) (f)->frozen_window_starts 770#define FRAME_WINDOWS_FROZEN(f) (f)->frozen_window_starts
771 771
772/* Nonzero if a size change has been requested for frame F 772/* True if a size change has been requested for frame F
773 but not yet really put into effect. This can be true temporarily 773 but not yet really put into effect. This can be true temporarily
774 when an X event comes in at a bad time. */ 774 when an X event comes in at a bad time. */
775#define FRAME_WINDOW_SIZES_CHANGED(f) (f)->window_sizes_changed 775#define FRAME_WINDOW_SIZES_CHANGED(f) (f)->window_sizes_changed
@@ -888,8 +888,6 @@ default_pixels_per_inch_y (void)
888#define FRAME_CURSOR_X_LIMIT(f) \ 888#define FRAME_CURSOR_X_LIMIT(f) \
889 (FRAME_COLS (f) + FRAME_LEFT_SCROLL_BAR_COLS (f)) 889 (FRAME_COLS (f) + FRAME_LEFT_SCROLL_BAR_COLS (f))
890 890
891/* Nonzero if frame F has scroll bars. */
892
893#define FRAME_SCROLL_BARS(f) (f->scroll_bars) 891#define FRAME_SCROLL_BARS(f) (f->scroll_bars)
894 892
895#define FRAME_CONDEMNED_SCROLL_BARS(f) (f->condemned_scroll_bars) 893#define FRAME_CONDEMNED_SCROLL_BARS(f) (f->condemned_scroll_bars)
@@ -934,7 +932,7 @@ default_pixels_per_inch_y (void)
934#define FOR_EACH_FRAME(list_var, frame_var) \ 932#define FOR_EACH_FRAME(list_var, frame_var) \
935 for ((list_var) = Vframe_list; \ 933 for ((list_var) = Vframe_list; \
936 (CONSP (list_var) \ 934 (CONSP (list_var) \
937 && (frame_var = XCAR (list_var), 1)); \ 935 && (frame_var = XCAR (list_var), true)); \
938 list_var = XCDR (list_var)) 936 list_var = XCDR (list_var))
939 937
940/* Reflect mouse movement when a complete frame update is performed. */ 938/* Reflect mouse movement when a complete frame update is performed. */
@@ -950,7 +948,7 @@ default_pixels_per_inch_y (void)
950 hlinfo->mouse_face_mouse_y); \ 948 hlinfo->mouse_face_mouse_y); \
951 unblock_input (); \ 949 unblock_input (); \
952 } \ 950 } \
953 } while (0) 951 } while (true)
954 952
955/* Set visibility of frame F. 953/* Set visibility of frame F.
956 We call redisplay_other_windows to make sure the frame gets redisplayed 954 We call redisplay_other_windows to make sure the frame gets redisplayed
@@ -978,7 +976,7 @@ extern Lisp_Object Qtty_color_mode;
978extern Lisp_Object Qterminal; 976extern Lisp_Object Qterminal;
979extern Lisp_Object Qnoelisp; 977extern Lisp_Object Qnoelisp;
980 978
981/* Nonzero means there is at least one garbaged frame. */ 979/* True means there is at least one garbaged frame. */
982extern bool frame_garbaged; 980extern bool frame_garbaged;
983 981
984extern void set_menu_bar_lines (struct frame *, Lisp_Object, Lisp_Object); 982extern void set_menu_bar_lines (struct frame *, Lisp_Object, Lisp_Object);