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.209 2006/03/20 18:57:00 grubba Exp $ + || $Id: stralloc.c,v 1.210 2006/04/25 18:29:50 neotron 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:749:    s->flags &= ~STRING_NOT_HASHED;   }      /*    * This function assumes that the shift size is already the minimum it    * can be.    */   PMOD_EXPORT struct pike_string *low_end_shared_string(struct pike_string *s)   {    ptrdiff_t len; -  size_t h; +  size_t h=0;    struct pike_string *s2;       len = s->len;    if (s->flags & STRING_NOT_HASHED) {    h = s->hval = do_hash(s);    s->flags &= ~STRING_NOT_HASHED;    }    s2 = internal_findstring(s->str, len, s->size_shift, h);   #ifdef PIKE_DEBUG    if(s2==s)