comparison 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
comparison
equal deleted inserted replaced
218:b0c9df865b25 219:afd50d6b4113
187 int isbrpt; // set to 1 if this line is a branch point 187 int isbrpt; // set to 1 if this line is a branch point
188 struct symtabe *dptr; // symbol value to display 188 struct symtabe *dptr; // symbol value to display
189 189
190 int noexpand_start; // start of a no-expand block 190 int noexpand_start; // start of a no-expand block
191 int noexpand_end; // end of a no-expand block 191 int noexpand_end; // end of a no-expand block
192 192 int hideline; // set if we're going to hide this line on output
193 }; 193 };
194 194
195 enum 195 enum
196 { 196 {
197 symbol_flag_set = 1, // symbol was used with "set" 197 symbol_flag_set = 1, // symbol was used with "set"
302 structtab_t *structs; // defined structures 302 structtab_t *structs; // defined structures
303 structtab_t *cstruct; // current structure 303 structtab_t *cstruct; // current structure
304 lw_expr_t savedaddr; // old address counter before struct started 304 lw_expr_t savedaddr; // old address counter before struct started
305 int exportcheck; // set if we need to collapse out the section base to 0 305 int exportcheck; // set if we need to collapse out the section base to 0
306 int passno; // set to the current pass number 306 int passno; // set to the current pass number
307 int preprocess; // set if we are prepocessing
308 int fileerr; // flags error opening file
307 }; 309 };
308 310
309 #ifndef ___symbol_c_seen___ 311 #ifndef ___symbol_c_seen___
310 312
311 extern struct symtabe *register_symbol(asmstate_t *as, line_t *cl, char *sym, lw_expr_t value, int flags); 313 extern struct symtabe *register_symbol(asmstate_t *as, line_t *cl, char *sym, lw_expr_t value, int flags);