diff lwasm/lwasm.h @ 219:afd50d6b4113

Add --preprocess option Add --preprocess option which expands macros, resolves conditions, and resolves include files if possible. If an include file is not available, it the include directive is retained.
author William Astle <lost@l-w.ca>
date Sun, 10 Jun 2012 18:24:31 -0600
parents 6f2e18f1fe67
children 03f7192fcd20
line wrap: on
line diff
--- a/lwasm/lwasm.h	Sun Jun 10 14:55:27 2012 -0600
+++ b/lwasm/lwasm.h	Sun Jun 10 18:24:31 2012 -0600
@@ -189,7 +189,7 @@
 
 	int noexpand_start;					// start of a no-expand block
 	int noexpand_end;					// end of a no-expand block
-	
+	int hideline;						// set if we're going to hide this line on output	
 };
 
 enum
@@ -304,6 +304,8 @@
 	lw_expr_t savedaddr;				// old address counter before struct started	
 	int exportcheck;					// set if we need to collapse out the section base to 0
 	int passno;							// set to the current pass number
+	int preprocess;						// set if we are prepocessing
+	int fileerr;						// flags error opening file
 };
 
 #ifndef ___symbol_c_seen___