mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Wean this from <ctype.h>.
* io-xbm.c: (next_int): Wean this from <ctype.h>.
This commit is contained in:
parent
0d18cf961a
commit
27fec072e3
@ -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>
|
||||
|
||||
* 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++;
|
||||
|
Loading…
Reference in New Issue
Block a user