pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:1511:      /* does not take locale into account */   ptrdiff_t generic_quick_binary_strcmp(const char *a,    ptrdiff_t alen, int asize,    const char *b,    ptrdiff_t blen, int bsize)   {    if(!asize && !bsize)    {    int tmp; -  /* FIXME: Does MEMCMP() guarantee that the characters -  * are compared as unsigned? -  * /grubba 2006-03-11 -  */ +     if(alen > blen)    {    tmp=MEMCMP(a, b, blen);    if(tmp) return tmp;    return 1;    }else if(alen < blen){    tmp=MEMCMP(a, b, alen);    if(tmp) return tmp;    return -1;    }else{