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.91 2000/08/09 18:46:10 grubba Exp $"); + RCSID("$Id: stralloc.c,v 1.92 2000/08/10 08:41:30 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:328: Inside #if undefined(HASH_PREFIX)
   need_more_hash_prefix++;   /* fprintf(stderr,"depth=%d num_strings=%d need_more_hash_prefix=%d HASH_PREFIX=%d\n",depth,num_strings,need_more_hash_prefix,HASH_PREFIX); */    }else{    if(need_more_hash_prefix)    need_more_hash_prefix--;    }   #endif    return 0; /* not found */   }    - PMOD_EXPORT struct pike_string *binary_findstring(const char *foo, INT32 l) + PMOD_EXPORT struct pike_string *binary_findstring(const char *foo, ptrdiff_t l)   {    return internal_findstring(foo, l, 0, StrHash(foo,l));   }      PMOD_EXPORT struct pike_string *findstring(const char *foo)   {    return binary_findstring(foo, strlen(foo));   }      /*