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.86 2000/08/03 16:30:16 grubba Exp $"); + RCSID("$Id: stralloc.c,v 1.87 2000/08/04 14:49:59 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:1359:    r=(char *)generic_memory_search(&s,    haystack->str+(start<<haystack->size_shift),    haystack->len-start,    haystack->size_shift);       if(!r) return -1;    return (r-haystack->str)>>haystack->size_shift;   }      PMOD_EXPORT struct pike_string *string_slice(struct pike_string *s, -  INT32 start, -  INT32 len) +  ptrdiff_t start, +  ptrdiff_t len)   {   #ifdef PIKE_DEBUG    if(start < 0 || len<0 || start+len>s->len )    {    fatal("string_slice, start = %d, len = %d, s->len = %d\n",start,len,s->len);    }   #endif       if(start==0 && len==s->len)    {