2015-12-25
2015-12-25 12:05:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
33e87313facb4c475db627245af41282c39e781d
(18 lines)
(+9/-9)
[
Show
| Annotate
]
Branch: 8.1
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;