Mercurial > hg-old > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
168:2dd050293be6 | 169:99300be2d3bd |
---|---|
59 if (as -> passnum == 1) | 59 if (as -> passnum == 1) |
60 l -> codeaddr = as -> addr; | 60 l -> codeaddr = as -> addr; |
61 | 61 |
62 // if it's a comment, return (this doesn't cause a context change) | 62 // if it's a comment, return (this doesn't cause a context change) |
63 if (*p == '*' || *p == ';') | 63 if (*p == '*' || *p == ';') |
64 return; | |
65 | |
66 // if we have C pre-processor directives/output, ignore it | |
67 if (*p == '#') | |
64 return; | 68 return; |
65 | 69 |
66 // if we start with a non-space character, it's a symbol | 70 // if we start with a non-space character, it's a symbol |
67 if (!isspace(*p)) | 71 if (!isspace(*p)) |
68 { | 72 { |