Use line infos to output more verbose error and warning messages whenever
possible. git-svn-id: svn://svn.cc65.org/cc65/trunk@4950 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1103,12 +1103,14 @@ CharAgain:
|
||||
CurTok.Tok = TOK_DIV;
|
||||
} else if (CComments) {
|
||||
/* Remember the position, then skip the '*' */
|
||||
FilePos Pos = CurTok.Pos;
|
||||
Collection LineInfos = STATIC_COLLECTION_INITIALIZER;
|
||||
GetFullLineInfo (&LineInfos, 0);
|
||||
NextChar ();
|
||||
do {
|
||||
while (C != '*') {
|
||||
if (C == EOF) {
|
||||
PError (&Pos, "Unterminated comment");
|
||||
LIError (&LineInfos, "Unterminated comment");
|
||||
DoneCollection (&LineInfos);
|
||||
goto CharAgain;
|
||||
}
|
||||
NextChar ();
|
||||
@@ -1116,6 +1118,7 @@ CharAgain:
|
||||
NextChar ();
|
||||
} while (C != '/');
|
||||
NextChar ();
|
||||
DoneCollection (&LineInfos);
|
||||
goto Again;
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user