aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorPaul Eggert2013-11-28 21:25:25 -0800
committerPaul Eggert2013-11-28 21:25:25 -0800
commit49faeaaf89c820082ba816d089fab5711c9d2b06 (patch)
treed317ea923409fc6948fdc1fd2a7eaaf4d6c08078 /src/buffer.h
parentc8f0efc2e89d9cfc7befa7f20f584f3f0b12f487 (diff)
downloademacs-49faeaaf89c820082ba816d089fab5711c9d2b06.tar.gz
emacs-49faeaaf89c820082ba816d089fab5711c9d2b06.zip
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
475 /* Usually 0. Temporarily set to 1 in decode_coding_gap to 475 /* Usually 0. Temporarily set to 1 in decode_coding_gap to
476 prevent Fgarbage_collect from shrinking the gap and losing 476 prevent Fgarbage_collect from shrinking the gap and losing
477 not-yet-decoded bytes. */ 477 not-yet-decoded bytes. */
478 bool inhibit_shrinking : 1; 478 unsigned inhibit_shrinking : 1;
479 479
480 /* True if it needs to be redisplayed. */ 480 /* True if it needs to be redisplayed. */
481 bool redisplay : 1; 481 unsigned redisplay : 1;
482 }; 482 };
483 483
484/* Most code should use this macro to access Lisp fields in struct buffer. */ 484/* Most code should use this macro to access Lisp fields in struct buffer. */
@@ -849,10 +849,10 @@ struct buffer
849 849
850 /* Non-zero means don't use redisplay optimizations for 850 /* Non-zero means don't use redisplay optimizations for
851 displaying this buffer. */ 851 displaying this buffer. */
852 bool prevent_redisplay_optimizations_p : 1; 852 unsigned prevent_redisplay_optimizations_p : 1;
853 853
854 /* Non-zero whenever the narrowing is changed in this buffer. */ 854 /* Non-zero whenever the narrowing is changed in this buffer. */
855 bool clip_changed : 1; 855 unsigned clip_changed : 1;
856 856
857 /* List of overlays that end at or before the current center, 857 /* List of overlays that end at or before the current center,
858 in order of end-position. */ 858 in order of end-position. */