diff options
| author | Paul Eggert | 2015-02-09 23:48:29 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-02-09 23:50:18 -0800 |
| commit | f0ed1d633697fca0be8f2cf9d50b2056d583a2a1 (patch) | |
| tree | fac54b1ce77f6743f9240cdbd417bbf6b0d93620 /src/lisp.h | |
| parent | d5111d525f134d0a1f15c61d16d59b20d824f552 (diff) | |
| download | emacs-f0ed1d633697fca0be8f2cf9d50b2056d583a2a1.tar.gz emacs-f0ed1d633697fca0be8f2cf9d50b2056d583a2a1.zip | |
Use bool for boolean in xdisp.c
* dispextern.h (display_prop_intangible_p, resize_mini_window)
(pixel_to_glyph_coords, mark_window_display_accurate)
(compute_display_string_pos, handle_tool_bar_click)
(x_intersect_rectangles, clear_mouse_face, display_tty_menu_item):
* lisp.h (setup_echo_area_for_printing, message_with_string)
(pos_visible_p): Use bool for boolean.
* xdisp.c: Use bool, true, false intstead of int, 1, 0.
Remove unnecessary forward decls.
(trace_move) [DEBUG_TRACE_MOVE]: Now static.
(CHECK_IT, CHECK_WINDOW_END):
Now an inline function that is always defined.
(check_it) [0]:
(check_window_end) [oGLYPH_DEBUG && ENABLE_CHECKING]:
Remove; no longer needed.
(handle_stop): Prefer (X && !Y) to (X ? !Y : 0).
(get_overlay_strings): Omit unnecessary casts.
(forward_to_next_line_start):
(Ftool_bar_height):
Prefer !BOOL to (BOOL ? 0 : 1).
(next_element_function): New typedef.
(get_next_element): Use it. Now const.
(IT_POS_VALID_AFTER_MOVE_P): Prefer !X || Y==0 to (X ? Y==0 : 1).
(vmessage): Now ATTRIBUTE_FORMAT_PRINTF (1, 0), to pacify GCC 4.9.2
(display_echo_area): Prefer BOOLEXPR to BOOLEXPR ? 1 : 0.
(tool_bar_item_info): Simplify.
(invisible_prop): Rename from invisible_p, since it doesn't
return bool. All callers changed.
(x_produce_glyphs): Simplify.
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lisp.h b/src/lisp.h index f5242ab84a1..6c7b51fea06 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3640,7 +3640,7 @@ extern bool noninteractive_need_newline; | |||
| 3640 | extern Lisp_Object echo_area_buffer[2]; | 3640 | extern Lisp_Object echo_area_buffer[2]; |
| 3641 | extern void add_to_log (const char *, Lisp_Object, Lisp_Object); | 3641 | extern void add_to_log (const char *, Lisp_Object, Lisp_Object); |
| 3642 | extern void check_message_stack (void); | 3642 | extern void check_message_stack (void); |
| 3643 | extern void setup_echo_area_for_printing (int); | 3643 | extern void setup_echo_area_for_printing (bool); |
| 3644 | extern bool push_message (void); | 3644 | extern bool push_message (void); |
| 3645 | extern void pop_message_unwind (void); | 3645 | extern void pop_message_unwind (void); |
| 3646 | extern Lisp_Object restore_message_unwind (Lisp_Object); | 3646 | extern Lisp_Object restore_message_unwind (Lisp_Object); |
| @@ -3653,7 +3653,7 @@ extern void message1_nolog (const char *); | |||
| 3653 | extern void message3 (Lisp_Object); | 3653 | extern void message3 (Lisp_Object); |
| 3654 | extern void message3_nolog (Lisp_Object); | 3654 | extern void message3_nolog (Lisp_Object); |
| 3655 | extern void message_dolog (const char *, ptrdiff_t, bool, bool); | 3655 | extern void message_dolog (const char *, ptrdiff_t, bool, bool); |
| 3656 | extern void message_with_string (const char *, Lisp_Object, int); | 3656 | extern void message_with_string (const char *, Lisp_Object, bool); |
| 3657 | extern void message_log_maybe_newline (void); | 3657 | extern void message_log_maybe_newline (void); |
| 3658 | extern void update_echo_area (void); | 3658 | extern void update_echo_area (void); |
| 3659 | extern void truncate_echo_area (ptrdiff_t); | 3659 | extern void truncate_echo_area (ptrdiff_t); |
| @@ -3663,8 +3663,8 @@ void set_frame_cursor_types (struct frame *, Lisp_Object); | |||
| 3663 | extern void syms_of_xdisp (void); | 3663 | extern void syms_of_xdisp (void); |
| 3664 | extern void init_xdisp (void); | 3664 | extern void init_xdisp (void); |
| 3665 | extern Lisp_Object safe_eval (Lisp_Object); | 3665 | extern Lisp_Object safe_eval (Lisp_Object); |
| 3666 | extern int pos_visible_p (struct window *, ptrdiff_t, int *, | 3666 | extern bool pos_visible_p (struct window *, ptrdiff_t, int *, |
| 3667 | int *, int *, int *, int *, int *); | 3667 | int *, int *, int *, int *, int *); |
| 3668 | 3668 | ||
| 3669 | /* Defined in xsettings.c. */ | 3669 | /* Defined in xsettings.c. */ |
| 3670 | extern void syms_of_xsettings (void); | 3670 | extern void syms_of_xsettings (void); |