diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-11-05 16:14:56 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-11-05 16:14:56 -0800 |
commit | 798aef02223bdfdf4ff383e59590b2a44eaf3a0c (patch) | |
tree | 289c91326c8954fbab11e196397d70bb943477f3 /src/menu.h | |
parent | 9e6e98264c0c2684245463689614926bb22a8516 (diff) | |
download | emacs-798aef02223bdfdf4ff383e59590b2a44eaf3a0c.tar.gz |
Integer-related fixes for term.c etc.
* dispextern.h (face_tty_specified_color): New function.
* term.c (turn_on_face): Don't rely on undefined behavior when
assigning an out-of-range value to 'long'. Simplify
test for toggling highlight.
(tty_capable_p): Omit last two (unused) args. All callers changed.
* term.c (tty_capable_p, tty_menu_display, tty_menu_add_selection)
(read_menu_input, tty_menu_activate, tty_menu_show):
* xfaces.c (x_supports_face_attributes_p)
(tty_supports_face_attributes_p):
Use bool for boolean. All callers changed.
(tty_supports_face_attributes_p): Omit defaults for color indices;
no longer needed. Simplify tail call.
Diffstat (limited to 'src/menu.h')
-rw-r--r-- | src/menu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menu.h b/src/menu.h index 17d66290647..cd89f5eecea 100644 --- a/src/menu.h +++ b/src/menu.h @@ -51,7 +51,7 @@ extern Lisp_Object ns_menu_show (struct frame *, int, int, bool, bool, Lisp_Object, const char **); extern Lisp_Object xmenu_show (struct frame *, int, int, bool, bool, Lisp_Object, const char **); -extern Lisp_Object tty_menu_show (struct frame *, int, int, int, int, - Lisp_Object, int, const char **); +extern Lisp_Object tty_menu_show (struct frame *, int, int, bool, bool, + Lisp_Object, bool, const char **); extern ptrdiff_t menu_item_width (const unsigned char *); #endif /* MENU_H */ |