summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-11-28 21:25:25 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2013-11-28 21:25:25 -0800
commit49faeaaf89c820082ba816d089fab5711c9d2b06 (patch)
treed317ea923409fc6948fdc1fd2a7eaaf4d6c08078 /src/buffer.h
parentc8f0efc2e89d9cfc7befa7f20f584f3f0b12f487 (diff)
downloademacs-49faeaaf89c820082ba816d089fab5711c9d2b06.tar.gz
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/buffer.h')
-rw-r--r--src/buffer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buffer.h b/src/buffer.h
index d26f91b5b06..586090fbe88 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -475,10 +475,10 @@ struct buffer_text
/* Usually 0. Temporarily set to 1 in decode_coding_gap to
prevent Fgarbage_collect from shrinking the gap and losing
not-yet-decoded bytes. */
- bool inhibit_shrinking : 1;
+ unsigned inhibit_shrinking : 1;
/* True if it needs to be redisplayed. */
- bool redisplay : 1;
+ unsigned redisplay : 1;
};
/* Most code should use this macro to access Lisp fields in struct buffer. */
@@ -849,10 +849,10 @@ struct buffer
/* Non-zero means don't use redisplay optimizations for
displaying this buffer. */
- bool prevent_redisplay_optimizations_p : 1;
+ unsigned prevent_redisplay_optimizations_p : 1;
/* Non-zero whenever the narrowing is changed in this buffer. */
- bool clip_changed : 1;
+ unsigned clip_changed : 1;
/* List of overlays that end at or before the current center,
in order of end-position. */