Branch: Tag:

1996-08-12

1996-08-12 16:52:16 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

more debug added

Rev: src/stralloc.c:1.4

25: Inside #if defined(DEBUG)
  #ifdef DEBUG   void check_string(struct lpc_string *s)   { +  StrHash(s->str, s->len); +  if(full_hash_value != s->hval) +  fatal("Hash value changed?\n"); +     if(debug_findstring(s) !=s)    fatal("Shared string not shared.\n");   
133: Inside #if defined(DEBUG)
  #ifdef DEBUG   struct lpc_string *debug_findstring(const struct lpc_string *foo)   { -  return propagate_shared_string(foo, StrHash(foo->str, foo->len)); +  return propagate_shared_string(foo, foo->hval % HTABLE_SIZE);   }   #endif