diff src/lwasm.h @ 82:03be43ae19cf

Added EXTERN directive
author lost
date Sat, 10 Jan 2009 22:24:29 +0000
parents 121bf4a588ea
children 918be0c02239
line wrap: on
line diff
--- a/src/lwasm.h	Sat Jan 10 19:05:15 2009 +0000
+++ b/src/lwasm.h	Sat Jan 10 22:24:29 2009 +0000
@@ -98,6 +98,7 @@
 #define SYMBOL_COMPLEX	2	// register symbol as a complex symbol (from l -> expr)
 #define SYMBOL_FORCE	4	// force resetting the symbol value if it already exists on pass 2
 #define SYMBOL_NORM		0	// no flags
+#define SYMBOL_EXTERN	8	// the symbol is an external reference
 typedef struct lwasm_symbol_ent_s lwasm_symbol_ent_t;
 struct lwasm_symbol_ent_s
 {
@@ -105,6 +106,7 @@
 	int context;				// the context number of the symbol (-1 for global)
 	int value;					// the value of the symbol
 	int flags;					// flags for the symbol
+	char *externalname;			// for external references that are aliased locally
 	sectiontab_t *sect;			// the section the symbol exists in; NULL for none
 	lwasm_expr_stack_t *expr;	// expression for a symbol that is not constant NULL for const
 	lwasm_symbol_ent_t *next;	// next symbol in the table