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.58 1999/04/01 17:20:17 hubbe Exp $"); + RCSID("$Id: stralloc.c,v 1.59 1999/05/02 08:11:49 hubbe 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:631: Inside #if defined(PIKE_DEBUG)
   if(d_flag > 2)    {    if(s->next == (struct pike_string *)-1)    fatal("Freeing shared string again!\n");       if(((long)s->next) & 1)    fatal("Freeing shared string again, memory corrupt or other bug!\n");    }   #endif    unlink_pike_string(s); -  free((char *)s); +  debug_free((char *)s,__FILE__,__LINE__,1);   }      void debug_free_string(struct pike_string *s)   {    if(--s->refs<=0)    really_free_string(s);   }         /*