Add serialize back to the test case
[satune.git] / src / AST / asthash.h
index fccd963b469ef30834a62368f0731034ff478111..a80d67e2d6f51b8ea536928b74974302e61df23e 100644 (file)
@@ -1,11 +1,16 @@
 #ifndef ASTHASH_H
 #define ASTHASH_H
-#include "classlist.h"
+#include "classes.h"
+#include "hashtable.h"
 
-uint hashBoolean(Boolean * boolean);
+uint hashBoolean(Boolean *boolean);
 bool compareBoolean(Boolean *b1, Boolean *b2);
 
 uint hashElement(Element *element);
 bool compareElement(Element *e1, Element *e2);
 
+typedef Hashtable<Boolean *, Boolean *, uintptr_t, 4, hashBoolean, compareBoolean> BooleanMatchMap;
+
+typedef Hashtable<Element *, Element *, uintptr_t, 4, hashElement, compareElement> ElementMatchMap;
+
 #endif