more bug fixes
[IRC.git] / Robust / src / Runtime / SimpleHash.h
index ed0c0625886a454aff3c3cef5f4d33c56eb7d050..fa647e462159d2b98c3b748951c25c3e17bf504b 100755 (executable)
@@ -22,8 +22,13 @@ struct RuntimeHash * allocateRuntimeHash(int size);
 void RuntimeHashaddChild(struct RuntimeHash *thisvar, struct RuntimeHash * child);
 void freeRuntimeHash(struct RuntimeHash *);
 
-
+void RuntimeHashrehash(struct RuntimeHash * thisvar);
 int RuntimeHashadd(struct RuntimeHash *, int key, int data);
+#ifdef MULTICORE
+struct RuntimeHash * allocateRuntimeHash_I(int size);
+int RuntimeHashadd_I(struct RuntimeHash *, int key, int data);
+#endif
+int RuntimeHashremovekey(struct RuntimeHash *,int key);
 int RuntimeHashremove(struct RuntimeHash *,int key, int data);
 bool RuntimeHashcontainskey(struct RuntimeHash *,int key);
 bool RuntimeHashcontainskeydata(struct RuntimeHash *,int key, int data);
@@ -36,11 +41,11 @@ int RuntimeHashcount(struct RuntimeHash *, int key);
 struct RuntimeHash * RuntimeHashimageSet(struct RuntimeHash *, int key);
 
 struct RuntimeHash {
-    int numelements;
-    int size;
-    struct RuntimeNode **bucket;
-    struct RuntimeNode *listhead;
-    struct RuntimeNode *listtail;
+  int numelements;
+  int size;
+  struct RuntimeNode **bucket;
+  struct RuntimeNode *listhead;
+  struct RuntimeNode *listtail;
 };
 
 inline int RuntimeHashcountset(struct RuntimeHash * thisvar);
@@ -60,7 +65,7 @@ struct RuntimeNode {
 };
 
 struct RuntimeIterator {
-  struct RuntimeNode *cur, *tail;
+  struct RuntimeNode *cur;
 };
 
 inline struct RuntimeIterator * noargallocateRuntimeIterator();