Mercurial > hg-old > index.cgi
diff lwasm/parse.c @ 169:99300be2d3bd
Allow lines starting with # to be ignored
author | lost |
---|---|
date | Sun, 08 Feb 2009 03:00:44 +0000 |
parents | 745721e13970 |
children | 563adfccb645 |
line wrap: on
line diff
--- a/lwasm/parse.c Sat Jan 31 18:59:53 2009 +0000 +++ b/lwasm/parse.c Sun Feb 08 03:00:44 2009 +0000 @@ -63,6 +63,10 @@ if (*p == '*' || *p == ';') return; + // if we have C pre-processor directives/output, ignore it + if (*p == '#') + return; + // if we start with a non-space character, it's a symbol if (!isspace(*p)) {