a80d67e2d6f51b8ea536928b74974302e61df23e
[satune.git] / asthash.h
1 #ifndef ASTHASH_H
2 #define ASTHASH_H
3 #include "classes.h"
4 #include "hashtable.h"
5
6 uint hashBoolean(Boolean *boolean);
7 bool compareBoolean(Boolean *b1, Boolean *b2);
8
9 uint hashElement(Element *element);
10 bool compareElement(Element *e1, Element *e2);
11
12 typedef Hashtable<Boolean *, Boolean *, uintptr_t, 4, hashBoolean, compareBoolean> BooleanMatchMap;
13
14 typedef Hashtable<Element *, Element *, uintptr_t, 4, hashElement, compareElement> ElementMatchMap;
15
16 #endif