summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-01-02 15:38:35 -0500
committerAdrian Thurston <thurston@complang.org>2015-01-02 15:38:35 -0500
commitb971eadb2e439da9cfbaed2486fc8260711983ea (patch)
tree018dda10387f968f9f0fe50ccfb3f2ee4499679c /src/map.h
parent3a89385a6495b9012342af527615f3a6b2be5f94 (diff)
downloadcolm-b971eadb2e439da9cfbaed2486fc8260711983ea.tar.gz
made list and map into structs
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/map.h b/src/map.h
index c881ab3f..1cbc2d74 100644
--- a/src/map.h
+++ b/src/map.h
@@ -10,32 +10,8 @@ extern "C" {
#endif
#include <colm/program.h>
+#include <colm/struct.h>
-typedef struct _MapEl
-{
- /* Must overlay Kid. */
- Tree *tree;
- struct _MapEl *next;
- struct _MapEl *prev;
-
- struct _MapEl *left, *right, *parent;
- long height;
- Tree *key;
-} MapEl;
-
-typedef struct _Map
-{
- /* Must overlay Tree. */
- short id;
- unsigned short flags;
- long refs;
- MapEl *head;
-
- MapEl *tail;
- MapEl *root;
- long treeSize;
- GenericInfo *genericInfo;
-} Map;
void mapListAbandon( Map *map );