diff options
author | Eli Zaretskii <eliz@gnu.org> | 2015-01-29 19:16:56 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2015-01-29 19:16:56 +0200 |
commit | 0761ec1669d6125d555ec39d2b938ce3562874af (patch) | |
tree | 83f62ccea45c0ade728fc55a9146f2020c129e0e /src/w32font.c | |
parent | 0c7b0967d262bd361de721d0d7a4da192bde1319 (diff) | |
download | emacs-0761ec1669d6125d555ec39d2b938ce3562874af.tar.gz emacs-0761ec1669d6125d555ec39d2b938ce3562874af.tar.bz2 emacs-0761ec1669d6125d555ec39d2b938ce3562874af.zip |
Use bool for boolean in w32menu.c, w32font.c, w32uniscribe.c.
src/w32uniscribe.c (uniscribe_list, uniscribe_match): Use bool where
appropriate.
src/w32font.c (struct font_callback_data, w32font_list_internal)
(w32font_driver, w32font_match_internal): Use bool where appropriate.
src/w32menu.c (x_activate_menubar, set_frame_menubar)
(w32_dialog_show, initialize_frame_menubar, w32_menu_show)
(is_simple_dialog): Use bool where appropriate.
Diffstat (limited to 'src/w32font.c')
-rw-r--r-- | src/w32font.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/w32font.c b/src/w32font.c index ab772679908..360ad3f1c48 100644 --- a/src/w32font.c +++ b/src/w32font.c @@ -95,7 +95,7 @@ struct font_callback_data /* The list to add matches to. */ Lisp_Object list; /* Whether to match only opentype fonts. */ - int opentype_only; + bool opentype_only; }; /* Handles the problem that EnumFontFamiliesEx will not return all @@ -746,7 +746,8 @@ w32font_otf_drive (struct font *font, Lisp_Object features, Additional parameter opentype_only restricts the returned fonts to opentype fonts, which can be used with the Uniscribe backend. */ Lisp_Object -w32font_list_internal (struct frame *f, Lisp_Object font_spec, int opentype_only) +w32font_list_internal (struct frame *f, Lisp_Object font_spec, + bool opentype_only) { struct font_callback_data match_data; HDC dc; @@ -798,7 +799,8 @@ w32font_list_internal (struct frame *f, Lisp_Object font_spec, int opentype_only Additional parameter opentype_only restricts the returned fonts to opentype fonts, which can be used with the Uniscribe backend. */ Lisp_Object -w32font_match_internal (struct frame *f, Lisp_Object font_spec, int opentype_only) +w32font_match_internal (struct frame *f, Lisp_Object font_spec, + bool opentype_only) { struct font_callback_data match_data; HDC dc; @@ -2459,7 +2461,7 @@ w32font_filter_properties (Lisp_Object font, Lisp_Object alist) struct font_driver w32font_driver = { LISP_INITIALLY_ZERO, /* Qgdi */ - 0, /* case insensitive */ + false, /* case insensitive */ w32font_get_cache, w32font_list, w32font_match, |