Branch: Tag:

2002-09-11

2002-09-11 22:42:13 by David Hedbor <david@hedbor.org>

Renamed 'empty_string' to 'empty_pike_string' to remove name clash with PHP.
Also made Parser.HTML and spider modules use 'empty_pike_string' rather than
their own.

Rev: src/cpp.c:1.103
Rev: src/modules/Parser/html.c:1.153
Rev: src/modules/spider/spider.c:1.116
Rev: src/stralloc.c:1.144
Rev: src/stralloc.h:1.68

27:   #define HUGE HUGE_VAL   #endif /*!HUGE*/    - RCSID("$Id: stralloc.c,v 1.143 2002/08/15 14:49:25 marcus Exp $"); + RCSID("$Id: stralloc.c,v 1.144 2002/09/11 22:42:13 neotron Exp $");      /* #define STRALLOC_USE_PRIMES */   
90:   static unsigned int hashprimes_entry=0;   static struct pike_string **base_table=0;   unsigned INT32 num_strings=0; - PMOD_EXPORT struct pike_string *empty_string = 0; + PMOD_EXPORT struct pike_string *empty_pike_string = 0;      /*** Main string hash function ***/   
1801: Inside #if defined(PIKE_RUN_UNLOCKED)
   for(h=0;h<BUCKET_LOCKS;h++) mt_init(bucket_locks + h);    }   #endif -  empty_string = make_shared_string(""); +  empty_pike_string = make_shared_string("");   }      #ifdef DEBUG_MALLOC
1814:    unsigned INT32 e;    struct pike_string *s,*next;    -  if (empty_string) { -  free_string(empty_string); -  empty_string = 0; +  if (empty_pike_string) { +  free_string(empty_pike_string); +  empty_pike_string = 0;    }      #if defined(PIKE_DEBUG) && defined(DEBUG_MALLOC)