diff lwasm/lwasm.h @ 356:7166254491ed

Finished pseudo ops
author lost@starbug
date Wed, 31 Mar 2010 18:46:32 -0600
parents 60568b123281
children 0cf4948d53b4
line wrap: on
line diff
--- a/lwasm/lwasm.h	Tue Mar 30 23:12:41 2010 -0600
+++ b/lwasm/lwasm.h	Wed Mar 31 18:46:32 2010 -0600
@@ -104,6 +104,20 @@
 	struct line_expr_s *next;
 };
 
+typedef struct exportlist_s exportlist_t;
+struct exportlist_s
+{
+	char *symbol;						// symbol to export
+	exportlist_t *next;					// next in the export list
+};
+
+typedef struct importlist_s importlist_t;
+struct importlist_s
+{
+	char *symbol;						// symbol to import
+	importlist_t *next;					// next in the import list
+};
+
 typedef struct line_s line_t;
 struct line_s
 {
@@ -186,7 +200,8 @@
 	symtab_t symtab;					// meta data for the symbol table
 	macrotab_t *macros;					// macro table
 	sectiontab_t *sections;				// section table
-
+	exportlist_t *exportlist;			// list of exported symbols
+	importlist_t *importlist;			// list of imported symbols
 	char *list_file;					// name of file to list to
 	char *output_file;					// output file name	
 	lw_stringlist_t input_files;		// files to assemble