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.75 1999/10/31 21:59:13 grubba Exp $"); + RCSID("$Id: stralloc.c,v 1.76 1999/11/05 01:31:44 hubbe 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:301: Inside #if defined(PIKE_DEBUG)
   debug_dump_pike_string(curr, 70);    locate_problem(has_zero_refs);    fatal("String with no references.\n");    }   #endif    debug_malloc_touch(curr);       if (full_hash_value == curr->hval &&    len==curr->len &&    size_shift==curr->size_shift && -  !MEMCMP(curr->str, s,len<<size_shift)) /* found it */ +  ( curr->str == s || +  !MEMCMP(curr->str, s,len<<size_shift))) /* found it */    {    *prev = curr->next;    curr->next = *base;    *base = curr;    return curr; /* pointer to string */    }   #ifndef HASH_PREFIX    depth++;   #endif    }