Wean this from <ctype.h>.

* io-xbm.c: (next_int): Wean this from <ctype.h>.
This commit is contained in:
Darin Adler 2002-02-08 19:08:20 +00:00
parent 0d18cf961a
commit 27fec072e3
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-02-08 Darin Adler <darin@bentspoon.com>
* io-xbm.c: (next_int): Wean this from <ctype.h>.
2002-02-01 Matthias Clasen <matthiasc@poet.de> 2002-02-01 Matthias Clasen <matthiasc@poet.de>
* Makefile.am: Build the tga loader as a static library. (#70157) * Makefile.am: Build the tga loader as a static library. (#70157)

View File

@ -33,7 +33,6 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <ctype.h>
#include <errno.h> #include <errno.h>
#include "gdk-pixbuf-private.h" #include "gdk-pixbuf-private.h"
#include "gdk-pixbuf-io.h" #include "gdk-pixbuf-io.h"
@ -129,8 +128,8 @@ next_int (FILE *fstream)
} else { } else {
/* trim high bits, check type and accumulate */ /* trim high bits, check type and accumulate */
ch &= 0xff; ch &= 0xff;
if (isascii (ch) && isxdigit (ch)) { if (g_ascii_isxdigit (ch)) {
value = (value << 4) + hex_table[ch]; value = (value << 4) + g_ascii_xdigit_value (ch);
gotone++; gotone++;
} else if ((hex_table[ch]) < 0 && gotone) { } else if ((hex_table[ch]) < 0 && gotone) {
done++; done++;