summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-xbm.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2002-02-08 19:08:20 +0000
committerDarin Adler <darin@src.gnome.org>2002-02-08 19:08:20 +0000
commit113f8d1b29a8a49e2b2d4043f1b4c435fd2f1757 (patch)
treebc142e096382ba1191121dd166c561948a8086fd /gdk-pixbuf/io-xbm.c
parenta362ec28735233df90bed1b396bdcc81cbe7416e (diff)
downloadgdk-pixbuf-113f8d1b29a8a49e2b2d4043f1b4c435fd2f1757.tar.gz
Wean this from <ctype.h>.
* io-xbm.c: (next_int): Wean this from <ctype.h>.
Diffstat (limited to 'gdk-pixbuf/io-xbm.c')
-rw-r--r--gdk-pixbuf/io-xbm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdk-pixbuf/io-xbm.c b/gdk-pixbuf/io-xbm.c
index c5589bc97..d1a087e44 100644
--- a/gdk-pixbuf/io-xbm.c
+++ b/gdk-pixbuf/io-xbm.c
@@ -33,7 +33,6 @@
#include <string.h>
#include <unistd.h>
#include <stdio.h>
-#include <ctype.h>
#include <errno.h>
#include "gdk-pixbuf-private.h"
#include "gdk-pixbuf-io.h"
@@ -129,8 +128,8 @@ next_int (FILE *fstream)
} else {
/* trim high bits, check type and accumulate */
ch &= 0xff;
- if (isascii (ch) && isxdigit (ch)) {
- value = (value << 4) + hex_table[ch];
+ if (g_ascii_isxdigit (ch)) {
+ value = (value << 4) + g_ascii_xdigit_value (ch);
gotone++;
} else if ((hex_table[ch]) < 0 && gotone) {
done++;