Subversion Repositories Kolibri OS

Rev

Rev 9552 | Rev 9620 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9552 Rev 9558
Line 217... Line 217...
217
    KSYS_FILE_UTF16LE = 2,
217
    KSYS_FILE_UTF16LE = 2,
218
    KSYS_FILE_UTF8 = 3
218
    KSYS_FILE_UTF8 = 3
219
};
219
};
Line 220... Line 220...
220
 
220
 
221
static inline
221
static inline 
222
int __strcmp(const char * s1, const char * s2 )
222
int _ksys_strcmp(const char * s1, const char * s2 )
223
{
223
{
224
    while ((*s1) && (*s1 == *s2)){ ++s1; ++s2; }
224
    while ((*s1) && (*s1 == *s2)){ ++s1; ++s2; }
225
    return(*(unsigned char*)s1 - *(unsigned char *)s2);
225
    return(*(unsigned char*)s1 - *(unsigned char *)s2);
Line 1161... Line 1161...
1161
    unsigned i=0;
1161
    unsigned i=0;
1162
    while (1){
1162
    while (1){
1163
        if (!(table+i)->func_name){
1163
        if (!(table+i)->func_name){
1164
            break;
1164
            break;
1165
        }else{
1165
        }else{
1166
            if (!__strcmp(fun_name, (table+i)->func_name)){
1166
            if (!_ksys_strcmp(fun_name, (table+i)->func_name)){
1167
                return (table+i)->func_ptr;
1167
                return (table+i)->func_ptr;
1168
            }
1168
            }
1169
        }
1169
        }
1170
        i++;
1170
        i++;
1171
    }
1171
    }