diff options
author | Darin Adler <darin@src.gnome.org> | 2002-02-08 19:08:20 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2002-02-08 19:08:20 +0000 |
commit | 27fec072e3fc9800f257897fab3a80a54cbf3e96 (patch) | |
tree | bb1855e277a86a2f30e2a3c5b9de4dc008dfe7b0 /gdk-pixbuf/io-xbm.c | |
parent | 0d18cf961a5c0ebf3240ec0368ead96f5bd2f86d (diff) | |
download | gtk+-27fec072e3fc9800f257897fab3a80a54cbf3e96.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.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdk-pixbuf/io-xbm.c b/gdk-pixbuf/io-xbm.c index c5589bc979..d1a087e447 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++; |