Mercurial > hg > index.cgi
diff lwasm/input.c @ 379:d791d47afc48
Add m80ext pragma for Macro-80C compatibility and ignore END in includes
For compatibility with Macro-80C source, add pragma for it. Also implement
ignoring END in include files rather than treating it as the total end of
assembly.
Thanks to Erik G <erik@6809.org> for the patch.
author | William Astle <lost@l-w.ca> |
---|---|
date | Mon, 13 Jul 2015 20:59:02 -0600 |
parents | 4051bc09da78 |
children | 7627d2b3b81f |
line wrap: on
line diff
--- a/lwasm/input.c Mon Jul 13 20:56:48 2015 -0600 +++ b/lwasm/input.c Mon Jul 13 20:59:02 2015 -0600 @@ -82,6 +82,11 @@ struct ifl *ifl_head = NULL; +int input_isinclude(asmstate_t *as) +{ + return IS->type == input_type_include; +} + static int input_isabsolute(const char *s) { #if defined(WIN32) || defined(WIN64)