aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfont.c
diff options
context:
space:
mode:
authorPaul Eggert2015-01-21 23:40:50 -0800
committerPaul Eggert2015-01-21 23:41:24 -0800
commitb631bb57cf84f880186035f7158c19237856e2ce (patch)
tree4529a22056f61a1ee4efdaf98d1003c31e98b149 /src/xfont.c
parent7f4e7dd378c456b498c270b47b46aaae365a72ab (diff)
downloademacs-b631bb57cf84f880186035f7158c19237856e2ce.tar.gz
emacs-b631bb57cf84f880186035f7158c19237856e2ce.zip
Use bool for boolean in xfont.c, xftfont.c, xgselect.c
* xfont.c (xfont_driver, xfont_chars_supported) (xfont_text_extents): * xftfont.c (xftfont_get_colors, xftfont_open) (xftfont_prepare_face, xftfont_done_face) (xftfont_cached_font_ok): * xgselect.c (xg_select): Use bool for boolean.
Diffstat (limited to 'src/xfont.c')
-rw-r--r--src/xfont.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xfont.c b/src/xfont.c
index 10cc321b60c..55053b9a421 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -132,7 +132,7 @@ static int xfont_check (struct frame *, struct font *);
132struct font_driver xfont_driver = 132struct font_driver xfont_driver =
133 { 133 {
134 LISP_INITIALLY_ZERO, /* Qx */ 134 LISP_INITIALLY_ZERO, /* Qx */
135 0, /* case insensitive */ 135 false, /* case insensitive */
136 xfont_get_cache, 136 xfont_get_cache,
137 xfont_list, 137 xfont_list,
138 xfont_match, 138 xfont_match,
@@ -269,7 +269,7 @@ xfont_chars_supported (Lisp_Object chars, XFontStruct *xfont,
269 } 269 }
270 return (i >= 0); 270 return (i >= 0);
271 } 271 }
272 return 0; 272 return false;
273} 273}
274 274
275/* A hash table recoding which font supports which scripts. Each key 275/* A hash table recoding which font supports which scripts. Each key
@@ -983,7 +983,7 @@ xfont_text_extents (struct font *font, unsigned int *code,
983 int i, width = 0; 983 int i, width = 0;
984 bool first; 984 bool first;
985 985
986 for (i = 0, first = 1; i < nglyphs; i++) 986 for (i = 0, first = true; i < nglyphs; i++)
987 { 987 {
988 XChar2b char2b; 988 XChar2b char2b;
989 static XCharStruct *pcm; 989 static XCharStruct *pcm;
@@ -1000,7 +1000,7 @@ xfont_text_extents (struct font *font, unsigned int *code,
1000 metrics->rbearing = pcm->rbearing; 1000 metrics->rbearing = pcm->rbearing;
1001 metrics->ascent = pcm->ascent; 1001 metrics->ascent = pcm->ascent;
1002 metrics->descent = pcm->descent; 1002 metrics->descent = pcm->descent;
1003 first = 0; 1003 first = false;
1004 } 1004 }
1005 else 1005 else
1006 { 1006 {