Changeset 6b13103 for lib/ini.c


Ignore:
Timestamp:
2015-01-16T19:50:23Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
1065dd4, eabe6d4
Parents:
6f10697
Message:

Replace isdigit/isalpha/.../tolower/toupper with glib variants

This fixes warnings about passing signed chars to them (apparently they
are implemented as macros that do array lookups without checks in some
platforms, yay)

Specifically:

functions=isalnum|isalpha|isdigit|isspace|isxdigit|tolower|toupper
sed -ir "s/$functions/g_ascii_&/g" /*.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ini.c

    r6f10697 r6b13103  
    6363        char *e;
    6464
    65         while( isspace( *in ) )
     65        while( g_ascii_isspace( *in ) )
    6666                in++;
    6767
    6868        e = in + strlen( in ) - 1;
    69         while( e > in && isspace( *e ) )
     69        while( e > in && g_ascii_isspace( *e ) )
    7070                e--;
    7171        e[1] = 0;
Note: See TracChangeset for help on using the changeset viewer.