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