Mercurial > hg > index.cgi
comparison lwasm/pass1.c @ 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 | b0d53e2f3f53 |
children | 3604d0ef06c6 |
comparison
equal
deleted
inserted
replaced
218:b0c9df865b25 | 219:afd50d6b4113 |
---|---|
411 } | 411 } |
412 } | 412 } |
413 } | 413 } |
414 debug_message(as, 40, "Line address: %s", lw_expr_print(cl -> addr)); | 414 debug_message(as, 40, "Line address: %s", lw_expr_print(cl -> addr)); |
415 } | 415 } |
416 | 416 if (as -> skipcond || as -> inmacro || cl -> ltext[0] == 1) |
417 cl -> hideline = 1; | |
418 | |
417 nextline: | 419 nextline: |
418 if (sym) | 420 if (sym) |
419 lw_free(sym); | 421 lw_free(sym); |
420 sym = NULL; | 422 sym = NULL; |
421 | 423 |
422 lw_free(line); | 424 lw_free(line); |
425 | |
426 if (cl -> hideline == 0) | |
427 { | |
428 printf("%s\n", cl -> ltext); | |
429 } | |
423 | 430 |
424 // if we've hit the "end" bit, finish out | 431 // if we've hit the "end" bit, finish out |
425 if (as -> endseen) | 432 if (as -> endseen) |
426 return; | 433 return; |
427 } | 434 } |