Branch: Tag:

2015-12-25

2015-12-25 12:05:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Rename debug_find_shared_string().

Rename debug_find_shared_string() to debug_findstring(), since
it does what debug_findstring() has done historically, and remove
the old (new?) implementation of debug_findstring().

1285: Inside #if defined(PIKE_DEBUG)
  {    if(current_do_debug_cycle == last_stralloc_verify)    { -  if(debug_find_shared_string(s) != s) +  if(debug_findstring(s) != s)    Pike_fatal("Shared string not shared.\n");    }else{   
1319: Inside #if defined(PIKE_DEBUG)
   Pike_fatal("Hash value changed?\n");    }    -  if(debug_find_shared_string(s) != s) +  if(debug_findstring(s) != s)    Pike_fatal("Shared string not shared.\n");       if(index_shared_string(s,s->len))
1390: Inside #if defined(PIKE_DEBUG)
   Pike_fatal("Num strings is wrong %d!=%d\n",num,num_strings);   }    - const struct pike_string *debug_find_shared_string(const struct pike_string *s) + /* For once, this is actually a debug function! +  * +  * This function is mostly used to check that the argument +  * is a finished string. +  */ + const struct pike_string *debug_findstring(const struct pike_string *s)   {    size_t h;    struct pike_string *p;
1425: Inside #if defined(PIKE_DEBUG)
   return 0;   }    - /* for once, this is actually a debug function! */ - const struct pike_string *debug_findstring(const struct pike_string *foo) - { -  return safe_debug_findstring(foo) ? foo : 0; - } -  +    PMOD_EXPORT void debug_dump_pike_string(const struct pike_string *s, INT32 max)   {    INT32 e;