Keep the config file position in a FilePos structure.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4847 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2010-11-10 19:52:40 +00:00
parent c695829813
commit 7c1094c086
6 changed files with 122 additions and 99 deletions

View File

@@ -107,7 +107,7 @@ static ExprNode* Factor (void)
break;
default:
CfgError ("Invalid expression: %d", CfgTok);
CfgError (&CfgErrorPos, "Invalid expression: %d", CfgTok);
break;
}
@@ -211,7 +211,7 @@ long CfgConstExpr (void)
/* Check that it's const */
if (!IsConstExpr (Expr)) {
CfgError ("Constant expression expected");
CfgError (&CfgErrorPos, "Constant expression expected");
}
/* Get the value */
@@ -236,7 +236,7 @@ long CfgCheckedConstExpr (long Min, long Max)
/* Check the range */
if (Val < Min || Val > Max) {
CfgError ("Range error");
CfgError (&CfgErrorPos, "Range error");
}
/* Return the value */