diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-11-28 21:25:25 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-11-28 21:25:25 -0800 |
commit | 49faeaaf89c820082ba816d089fab5711c9d2b06 (patch) | |
tree | d317ea923409fc6948fdc1fd2a7eaaf4d6c08078 /src/xdisp.c | |
parent | c8f0efc2e89d9cfc7befa7f20f584f3f0b12f487 (diff) |
Fix minor problems found by static checking.
* buffer.h (struct buffer_text, struct buffer):
* frame.h (struct frame):
* window.h (struct window):
Avoid 'bool foo : 1;', as it's not portable to pre-C99 compilers,
as described in ../lib/stdbool.in.h. Use 'unsigned foo : 1;' instead.
* menu.c (syms_of_menu): Define x-popup-dialog, removing a
no-longer-valid use of HAVE_MENUS.
* xdisp.c (propagate_buffer_redisplay): Now static.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r-- | src/xdisp.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 16e6341748..6357f4f5f3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -610,25 +610,29 @@ bool help_echo_showing_p; /* Functions to mark elements as needing redisplay. */ enum { REDISPLAY_SOME = 2}; /* Arbitrary choice. */ -void redisplay_other_windows (void) +void +redisplay_other_windows (void) { if (!windows_or_buffers_changed) windows_or_buffers_changed = REDISPLAY_SOME; } -void wset_redisplay (struct window *w) +void +wset_redisplay (struct window *w) { redisplay_other_windows (); w->redisplay = true; } -void fset_redisplay (struct frame *f) +void +fset_redisplay (struct frame *f) { redisplay_other_windows (); f->redisplay = true; } -void bset_redisplay (struct buffer *b) +void +bset_redisplay (struct buffer *b) { int count = buffer_window_count (b); if (count > 0) @@ -643,7 +647,8 @@ void bset_redisplay (struct buffer *b) } } -extern void bset_update_mode_line (struct buffer *b) +void +bset_update_mode_line (struct buffer *b) { if (!update_mode_lines) update_mode_lines = REDISPLAY_SOME; @@ -11201,11 +11206,10 @@ static void prepare_menu_bars (void) { bool all_windows = windows_or_buffers_changed || update_mode_lines; - bool some_windows - = (windows_or_buffers_changed == 0 - || windows_or_buffers_changed == REDISPLAY_SOME) - && (update_mode_lines == 0 - || update_mode_lines == REDISPLAY_SOME); + bool some_windows = ((windows_or_buffers_changed == 0 + || windows_or_buffers_changed == REDISPLAY_SOME) + && (update_mode_lines == 0 + || update_mode_lines == REDISPLAY_SOME)); struct gcpro gcpro1, gcpro2; Lisp_Object tooltip_frame; @@ -12922,7 +12926,8 @@ reconsider_clip_changes (struct window *w) } } -void propagate_buffer_redisplay (void) +static void +propagate_buffer_redisplay (void) { /* Resetting b->text->redisplay is problematic! We can't just reset it in the case that some window that displays it has not been redisplayed; and such a window can stay |