aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2015-02-09 23:48:29 -0800
committerPaul Eggert2015-02-09 23:50:18 -0800
commitf0ed1d633697fca0be8f2cf9d50b2056d583a2a1 (patch)
treefac54b1ce77f6743f9240cdbd417bbf6b0d93620 /src/ChangeLog
parentd5111d525f134d0a1f15c61d16d59b20d824f552 (diff)
downloademacs-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/ChangeLog')
-rw-r--r--src/ChangeLog32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 77589f8d949..b4abdc59045 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,35 @@
12015-02-10 Paul Eggert <eggert@cs.ucla.edu>
2
3 Use bool for boolean in xdisp.c
4 * dispextern.h (display_prop_intangible_p, resize_mini_window)
5 (pixel_to_glyph_coords, mark_window_display_accurate)
6 (compute_display_string_pos, handle_tool_bar_click)
7 (x_intersect_rectangles, clear_mouse_face, display_tty_menu_item):
8 * lisp.h (setup_echo_area_for_printing, message_with_string)
9 (pos_visible_p): Use bool for boolean.
10 * xdisp.c: Use bool, true, false intstead of int, 1, 0.
11 Remove unnecessary forward decls.
12 (trace_move) [DEBUG_TRACE_MOVE]: Now static.
13 (CHECK_IT, CHECK_WINDOW_END):
14 Now an inline function that is always defined.
15 (check_it) [0]:
16 (check_window_end) [oGLYPH_DEBUG && ENABLE_CHECKING]:
17 Remove; no longer needed.
18 (handle_stop): Prefer (X && !Y) to (X ? !Y : 0).
19 (get_overlay_strings): Omit unnecessary casts.
20 (forward_to_next_line_start):
21 (Ftool_bar_height):
22 Prefer !BOOL to (BOOL ? 0 : 1).
23 (next_element_function): New typedef.
24 (get_next_element): Use it. Now const.
25 (IT_POS_VALID_AFTER_MOVE_P): Prefer !X || Y==0 to (X ? Y==0 : 1).
26 (vmessage): Now ATTRIBUTE_FORMAT_PRINTF (1, 0), to pacify GCC 4.9.2
27 (display_echo_area): Prefer BOOLEXPR to BOOLEXPR ? 1 : 0.
28 (tool_bar_item_info): Simplify.
29 (invisible_prop): Rename from invisible_p, since it doesn't
30 return bool. All callers changed.
31 (x_produce_glyphs): Simplify.
32
12015-02-09 Paul Eggert <eggert@cs.ucla.edu> 332015-02-09 Paul Eggert <eggert@cs.ucla.edu>
2 34
3 Check for some overflows in vertical-motion 35 Check for some overflows in vertical-motion