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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user