Commit 27fec072 authored by Darin Adler's avatar Darin Adler

Wean this from <ctype.h>.

	* io-xbm.c: (next_int): Wean this from <ctype.h>.
parent 0d18cf96
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>
* Makefile.am: Build the tga loader as a static library. (#70157)
......
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment