1998-01-19
1998-01-19 22:12:34 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
-
62971ddebb7e764a429f1fa526f8b184f669c9be
(14 lines)
(+14/-0)
[
Show
| Annotate
]
Branch: 7.9
more debug in gc()
Rev: src/gc.c:1.25
Rev: src/mapping.h:1.6
Rev: src/multiset.h:1.4
Rev: src/stralloc.c:1.23
Rev: src/stralloc.h:1.11
329: Inside #if defined(DEBUG)
}
}
+ int safe_debug_findstring(struct pike_string *foo)
+ {
+ unsigned INT32 e;
+ if(!base_table) return 0;
+ for(e=0;e<htable_size;e++)
+ {
+ struct pike_string *p;
+ for(p=base_table[e];p;p=p->next)
+ if(p==foo) return 1;
+ }
+ return 0;
+ }
+
struct pike_string *debug_findstring(const struct pike_string *foo)
{
struct pike_string *tmp;