Mercurial > hg > index.cgi
comparison lwasm/list.c @ 474:74d0c394666e
Add "noexpandcond" pragma (cleans up listings)
This pragma will suppress listing of conditionals and any statements that
appear within a false conditional block.
author | William Astle <lost@l-w.ca> |
---|---|
date | Fri, 02 Nov 2018 21:07:50 -0600 |
parents | 7d6eacd87370 |
children | 40c32a0af8c8 |
comparison
equal
deleted
inserted
replaced
473:8181ddd707f1 | 474:74d0c394666e |
---|---|
134 { | 134 { |
135 obytes = lw_alloc(obytelen); | 135 obytes = lw_alloc(obytelen); |
136 memmove(obytes, cl -> output, cl -> outputl); | 136 memmove(obytes, cl -> output, cl -> outputl); |
137 } | 137 } |
138 } | 138 } |
139 if (cl -> hidecond && CURPRAGMA(cl, PRAGMA_NOEXPANDCOND)) | |
140 continue; | |
139 if ((cl -> len < 1 && cl -> dlen < 1) && obytelen < 1 && (cl -> symset == 1 || cl -> sym == NULL) ) | 141 if ((cl -> len < 1 && cl -> dlen < 1) && obytelen < 1 && (cl -> symset == 1 || cl -> sym == NULL) ) |
140 { | 142 { |
141 if (cl -> soff >= 0) | 143 if (cl -> soff >= 0) |
142 { | 144 { |
143 if (of) fprintf(of, "%04Xs ", cl -> soff & 0xffff); | 145 if (of) fprintf(of, "%04Xs ", cl -> soff & 0xffff); |