comparison lwasm/lwasm.h @ 49:bd8b3fbd1e28

Added ability to flag macros as "noexpand" so they are not expanded in the listing
author lost@l-w.ca
date Tue, 05 Apr 2011 00:06:28 -0600
parents 7317fbe024af
children cb4efc47ce9d
comparison
equal deleted inserted replaced
48:1134255553bc 49:bd8b3fbd1e28
171 int soff; // struct offset (for listings) 171 int soff; // struct offset (for listings)
172 int dshow; // data value to show (for listings) 172 int dshow; // data value to show (for listings)
173 int dsize; // set to 1 for 8 bit dshow value 173 int dsize; // set to 1 for 8 bit dshow value
174 int isbrpt; // set to 1 if this line is a branch point 174 int isbrpt; // set to 1 if this line is a branch point
175 struct symtabe *dptr; // symbol value to display 175 struct symtabe *dptr; // symbol value to display
176
177 int noexpand_start; // start of a no-expand block
178 int noexpand_end; // end of a no-expand block
179
176 }; 180 };
177 181
178 enum 182 enum
179 { 183 {
180 symbol_flag_set = 1, // symbol was used with "set" 184 symbol_flag_set = 1, // symbol was used with "set"
202 struct macrotab_s 206 struct macrotab_s
203 { 207 {
204 char *name; // name of macro 208 char *name; // name of macro
205 char **lines; // macro lines 209 char **lines; // macro lines
206 int numlines; // number lines in macro 210 int numlines; // number lines in macro
211 int flags; // flags for the macro
207 macrotab_t *next; // next macro in list 212 macrotab_t *next; // next macro in list
213 };
214
215 enum
216 {
217 macro_noexpand = 1 // set to not expland the macro by default in listing
208 }; 218 };
209 219
210 typedef struct structtab_s structtab_t; 220 typedef struct structtab_s structtab_t;
211 typedef struct structtab_field_s structtab_field_t; 221 typedef struct structtab_field_s structtab_field_t;
212 222