pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:16:      #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.65 1999/10/18 22:55:17 hubbe Exp $"); + RCSID("$Id: stralloc.c,v 1.66 1999/10/19 13:33:37 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:658:   {    INT32 len;    for(len=0;str[len];len++);    return debug_make_shared_binary_string2(str,len);   }      /*** Free strings ***/      void unlink_pike_string(struct pike_string *s)   { -  int h=s->hval % htable_size; +  unsigned int h=s->hval % htable_size;    propagate_shared_string(s,h);    base_table[h]=s->next;   #ifdef PIKE_DEBUG    s->next=(struct pike_string *)-1;   #endif    num_strings--;   }      void do_free_string(struct pike_string *s)   {