summaryrefslogtreecommitdiff
path: root/src/xfont.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-01-21 23:40:50 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-01-21 23:41:24 -0800
commitb631bb57cf84f880186035f7158c19237856e2ce (patch)
tree4529a22056f61a1ee4efdaf98d1003c31e98b149 /src/xfont.c
parent7f4e7dd378c456b498c270b47b46aaae365a72ab (diff)
downloademacs-b631bb57cf84f880186035f7158c19237856e2ce.tar.gz
emacs-b631bb57cf84f880186035f7158c19237856e2ce.tar.bz2
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 *);
struct font_driver xfont_driver =
{
LISP_INITIALLY_ZERO, /* Qx */
- 0, /* case insensitive */
+ false, /* case insensitive */
xfont_get_cache,
xfont_list,
xfont_match,
@@ -269,7 +269,7 @@ xfont_chars_supported (Lisp_Object chars, XFontStruct *xfont,
}
return (i >= 0);
}
- return 0;
+ return false;
}
/* A hash table recoding which font supports which scripts. Each key
@@ -983,7 +983,7 @@ xfont_text_extents (struct font *font, unsigned int *code,
int i, width = 0;
bool first;
- for (i = 0, first = 1; i < nglyphs; i++)
+ for (i = 0, first = true; i < nglyphs; i++)
{
XChar2b char2b;
static XCharStruct *pcm;
@@ -1000,7 +1000,7 @@ xfont_text_extents (struct font *font, unsigned int *code,
metrics->rbearing = pcm->rbearing;
metrics->ascent = pcm->ascent;
metrics->descent = pcm->descent;
- first = 0;
+ first = false;
}
else
{