pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: stralloc.c,v 1.152 2003/02/26 22:42:29 mast Exp $ + || $Id: stralloc.c,v 1.153 2003/03/14 15:50:47 grubba Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "dynamic_buffer.h"   #include "pike_macros.h"   #include "pike_memory.h"   #include "pike_error.h"   #include "gc.h"
pike.git/src/stralloc.c:17:   #include "bignum.h"   #include "interpret.h"   #include "block_alloc.h"   #include "operators.h"      #include <errno.h>   #include <float.h>   #include <ctype.h>   #include <math.h>    - RCSID("$Id: stralloc.c,v 1.152 2003/02/26 22:42:29 mast Exp $"); + RCSID("$Id: stralloc.c,v 1.153 2003/03/14 15:50:47 grubba Exp $");      /* #define STRALLOC_USE_PRIMES */      #ifdef STRALLOC_USE_PRIMES      #define SET_HSIZE(X) htable_size=hashprimes[(X)]   #define HMODULO(X) ((X) % htable_size)      #else   
pike.git/src/stralloc.c:949: Inside #if defined(PIKE_DEBUG)
   s->size_shift);    }   #endif    unlink_pike_string(s);    really_free_pike_string(s);    GC_FREE_SIMPLE_BLOCK(s);   }      PMOD_EXPORT void debug_free_string(struct pike_string *s)   { -  if(--s->refs<=0) +  if(!sub_ref(s))    really_free_string(s);   }         /*    * String table status    */   struct pike_string *add_string_status(int verbose)   {    char b[200];