Branch: Tag:

2015-08-23

2015-08-23 09:37:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Strings: Fixed some issues --with-debug.

280:   }      #ifdef PIKE_DEBUG - PMOD_EXPORT struct pike_string *debug_check_size_shift(struct pike_string *a, int shift) + PMOD_EXPORT struct pike_string *debug_check_size_shift(const struct pike_string *a, int shift)   {    if(a->size_shift != shift)    Pike_fatal("Wrong STRX macro used!\n");
1381: Inside #if defined(PIKE_DEBUG)
  }      /* for once, this is actually a debug function! */ - struct pike_string *debug_findstring(const struct pike_string *foo) + const struct pike_string *debug_findstring(const struct pike_string *foo)   { -  return safe_debug_finstring(foo) ? foo : 0; +  return safe_debug_findstring(foo) ? foo : 0;   }      PMOD_EXPORT void debug_dump_pike_string(const struct pike_string *s, INT32 max)