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.99 2000/09/03 23:20:12 mast Exp $"); + RCSID("$Id: stralloc.c,v 1.100 2000/09/14 19:58:44 mast 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:735: Inside #if defined(PIKE_DEBUG)
   if(s->next == (struct pike_string *)(ptrdiff_t)-1)    fatal("Freeing shared string again!\n");       if(((ptrdiff_t)s->next) & 1)    fatal("Freeing shared string again, memory corrupt or other bug!\n");    }    }   #endif    unlink_pike_string(s);    debug_free((char *)s,DMALLOC_LOCATION(),1); +  GC_FREE_BLOCK(s);   }      PMOD_EXPORT void debug_free_string(struct pike_string *s)   {    if(--s->refs<=0)    really_free_string(s);   }         /*