pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:1059:      PMOD_EXPORT struct pike_string *debug_make_shared_string2(const p_wchar2 *str)   {    INT32 len;    for(len=0;str[len];len++);    return debug_make_shared_binary_string2(str,len);   }      /*** Free strings ***/    - static void unlink_pike_string(struct pike_string *s) + PMOD_EXPORT void unlink_pike_string(struct pike_string *s)   {    size_t h;    h= HMODULO(s->hval);    propagate_shared_string(s,h);   #ifdef PIKE_DEBUG    if (base_table[h] != s) {    Pike_fatal("propagate_shared_string() failed. Probably got bogus pike_string.\n");    }   #endif /* PIKE_DEBUG */    base_table[h]=s->next;