Mercurial > hg > index.cgi
comparison lwasm/macro.c @ 222:03f7192fcd20
Add --unicorns option for IDE integration
This version of unicorns adds RESOURCE: lines to the output which specify
files and macros discovered during the assembly process.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 15 Jul 2012 10:50:46 -0600 |
parents | afd50d6b4113 |
children | 8764142b3192 |
comparison
equal
deleted
inserted
replaced
221:2b784a28428e | 222:03f7192fcd20 |
---|---|
73 m -> name = lw_strdup(l -> sym); | 73 m -> name = lw_strdup(l -> sym); |
74 m -> next = as -> macros; | 74 m -> next = as -> macros; |
75 m -> lines = NULL; | 75 m -> lines = NULL; |
76 m -> numlines = 0; | 76 m -> numlines = 0; |
77 m -> flags = 0; | 77 m -> flags = 0; |
78 m -> definedat = l; | |
78 as -> macros = m; | 79 as -> macros = m; |
79 | 80 |
80 t = *p; | 81 t = *p; |
81 while (**p && !isspace(**p)) | 82 while (**p && !isspace(**p)) |
82 (*p)++; | 83 (*p)++; |