pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:8:   #include "pike_macros.h"   #include "dynamic_buffer.h"   #include "pike_macros.h"   #include "pike_memory.h"   #include "error.h"   #include "gc.h"   #include "stuff.h"      #include <ctype.h>    - RCSID("$Id: stralloc.c,v 1.40 1998/10/11 11:18:53 hubbe Exp $"); + RCSID("$Id: stralloc.c,v 1.41 1998/10/11 21:07:30 grubba Exp $");      #define BEGIN_HASH_SIZE 997   #define MAX_AVG_LINK_LENGTH 3   #define HASH_PREFIX 64      unsigned INT32 htable_size=0;   static unsigned int hashprimes_entry=0;   static struct pike_string **base_table=0;   static unsigned INT32 full_hash_value;   unsigned INT32 num_strings=0;
pike.git/src/stralloc.c:803: Inside #if defined(DEBUG) and #if 0
   }    }    }   #endif    return tmp;   }      void debug_dump_pike_string(struct pike_string *s, INT32 max)   {    INT32 e; -  fprintf(stderr,"0x%p: %ld refs, len=%ld, hval=%lux (%lx)\n", +  fprintf(stderr,"0x%p: %ld refs, len=%ld, size_shift=%d, hval=%lux (%lx)\n",    s,    (long)s->refs,    (long)s->len, -  +  s->size_shift,    (unsigned long)s->hval,    (unsigned long)StrHash(s->str, s->len));    fprintf(stderr," \"");    for(e=0;e<s->len && max>0;e++)    {    int c=EXTRACT_UCHAR(s->str+e);    switch(c)    {    case '\t': fprintf(stderr,"\\t"); max-=2; break;    case '\n': fprintf(stderr,"\\n"); max-=2; break;