diff lwasm/lwasm.h @ 195:17bd59f045af

Changed symbol table to use a binary tree. Changed symbol table to use a binary tree. Hopefully this improves table lookups some but the tree really needs to be balanced at some point.
author William Astle <lost@l-w.ca>
date Sun, 11 Mar 2012 16:05:54 -0600
parents fc8386b13399
children 080bb67d84f2
line wrap: on
line diff
--- a/lwasm/lwasm.h	Wed Jan 25 22:39:17 2012 -0700
+++ b/lwasm/lwasm.h	Sun Mar 11 16:05:54 2012 -0600
@@ -204,7 +204,9 @@
 	int flags;							// flags for the symbol
 	sectiontab_t *section;				// section the symbol is defined in
 	lw_expr_t value;					// symbol value
-	struct symtabe *next;				// next symbol in the table
+	struct symtabe *left;				// left subtree pointer
+	struct symtabe *right;				// right subtree pointer
+	struct symtabe *nextver;			// next lower version
 };
 
 typedef struct