#include "GenericHashtable.h"
#include "mem.h"
-//#include "dmalloc.h"
-
+#ifdef DMALLOC
+#include "dmalloc.h"
+#endif
int genputtable(struct genhashtable *ht, void * key, void * object) {
unsigned int bin=genhashfunction(ht,key);
#include "SimpleHash.h"
#include <stdio.h>
+#ifdef DMALLOC
+#include "dmalloc.h"
+#endif
/* SIMPLE HASH ********************************************************/
struct RuntimeIterator* RuntimeHashcreateiterator(struct RuntimeHash * thisvar) {
struct RuntimeNode *ptr=thisvar->listhead;
RUNFREE(thisvar->bucket);
while(ptr) {
- struct RuntimeNode *next=ptr->next;
+ struct RuntimeNode *next=ptr->lnext;
RUNFREE(ptr);
ptr=next;
}