Ignore:
Timestamp:
2015-01-16T19:50:23Z (9 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
  • protocols/account.c

    r6f10697 r6b13103  
    8181        if( strcmp( prpl->name, "oscar" ) == 0 )
    8282        {
    83                 if( isdigit( a->user[0] ) )
     83                if( g_ascii_isdigit( a->user[0] ) )
    8484                        strcpy( tag, "icq" );
    8585                else
     
    417417       
    418418        /* Format: /[0-9]+([*+][0-9]+(<[0-9+])?)?/ */
    419         while( *value && isdigit( *value ) )
     419        while( *value && g_ascii_isdigit( *value ) )
    420420                p->start = p->start * 10 + *value++ - '0';
    421421       
     
    433433       
    434434        /* + or * the delay by this number every time. */
    435         while( *value && isdigit( *value ) )
     435        while( *value && g_ascii_isdigit( *value ) )
    436436                p->step = p->step * 10 + *value++ - '0';
    437437       
     
    444444        p->max = 0;
    445445        value ++;
    446         while( *value && isdigit( *value ) )
     446        while( *value && g_ascii_isdigit( *value ) )
    447447                p->max = p->max * 10 + *value++ - '0';
    448448       
Note: See TracChangeset for help on using the changeset viewer.