pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:819:   #endif    t->refs = 0;    add_ref(t); /* For DMALLOC */    t->len=len;    t->size_shift=shift;    DO_IF_DEBUG(t->next = NULL);    low_set_index(t,len,0);    return t;   }    - PMOD_EXPORT void hash_string(struct pike_string *s) - { -  if (!(s->flags & STRING_NOT_HASHED)) return; -  /* if( s->len < hash_prefix_len ) */ -  /* check_string_range( s, 0, 0, 0 ); */ -  s->hval=do_hash(s); -  s->flags &= ~STRING_NOT_HASHED; - } -  +    /*    * This function assumes that the shift size is already the minimum it    * can be.    */   struct pike_string *low_end_shared_string(struct pike_string *s)   {    ptrdiff_t len;    size_t h=0;    struct pike_string *s2;