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.79 2000/03/17 05:11:49 hubbe Exp $"); + RCSID("$Id: stralloc.c,v 1.80 2000/03/20 21:00:04 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:720: 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); -  debug_free((char *)s,__FILE__,__LINE__,1); +  debug_free((char *)s,DMALLOC_LOCATION(),1);   }      void debug_free_string(struct pike_string *s)   {    if(--s->refs<=0)    really_free_string(s);   }         /*