pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:18:      #include <errno.h>   #include <float.h>   #include <ctype.h>   #include <math.h>      #ifndef HUGE   #define HUGE HUGE_VAL   #endif /*!HUGE*/    - RCSID("$Id: stralloc.c,v 1.95 2000/08/10 18:23:17 grubba Exp $"); + RCSID("$Id: stralloc.c,v 1.96 2000/08/11 13:44:03 grubba Exp $");      #define BEGIN_HASH_SIZE 997   #define MAX_AVG_LINK_LENGTH 3      /* Experimental dynamic hash length */   #ifndef HASH_PREFIX   static unsigned int HASH_PREFIX=64;   static unsigned int need_more_hash_prefix=0;   #endif   
pike.git/src/stralloc.c:1035:    }   }      PMOD_EXPORT int c_compare_string(struct pike_string *s, char *foo, int len)   {    return s->len == len && s->size_shift == 0 && !MEMCMP(s->str,foo,len);   }      #ifndef HAVE_STRCOLL   /* No locale function available */ - int low_binary_strcmp(char *a, ptrdiff_t alen, + static int low_binary_strcmp(char *a, ptrdiff_t alen,    char *b, ptrdiff_t blen)   {    low_quick_binary_strcmp(a,alen,b,blen);   }   #else      /* takes locale into account */ - static int low_binary_strcmp(char *a,INT32 alen, -  char *b,INT32 blen) + static int low_binary_strcmp(char *a, ptrdiff_t alen, +  char *b, ptrdiff_t blen)   {    INT32 tmp;    while(alen>0 && blen>0)    {    tmp=strcoll(a,b);    if(tmp) return (int)tmp;    tmp=strlen(a)+1;    a+=tmp;    b+=tmp;    alen-=tmp;