Enable use of new C like comments only if the new feature "c_comments" is

enabled.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3889 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2008-08-21 19:35:39 +00:00
parent 9f7fc6f4c8
commit 5d4790a137
5 changed files with 11 additions and 6 deletions

View File

@@ -1063,7 +1063,7 @@ CharAgain:
NextChar ();
if (C != '*') {
Tok = TOK_DIV;
} else {
} else if (CComments) {
/* Remember the position, then skip the '*' */
FilePos Pos = CurPos;
NextChar ();
@@ -1071,14 +1071,14 @@ CharAgain:
while (C != '*') {
if (C == EOF) {
PError (&Pos, "Unterminated comment");
goto Again;
goto CharAgain;
}
NextChar ();
}
NextChar ();
} while (C != '/');
NextChar ();
goto Again;
goto Again;
}
return;