/* */
/* */
/* */
-/* (C) 2005-2010, Ullrich von Bassewitz */
+/* (C) 2005-2011, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/*****************************************************************************/
-/* Code */
+/* Code */
/*****************************************************************************/
switch (CfgTok) {
- case CFGTOK_IDENT:
+ case CFGTOK_IDENT:
/* Get the name as an id */
Name = GetStrBufId (&CfgSVal);
} else {
N = NewExprNode (0, EXPR_SYMBOL);
N->V.Imp = InsertImport (GenImport (Name, ADDR_SIZE_ABS));
- CollAppend (&N->V.Imp->LineInfos, GenLineInfo (&CfgErrorPos));
+ CollAppend (&N->V.Imp->RefLines, GenLineInfo (&CfgErrorPos));
}
/* Skip the symbol name */
CfgNextTok ();
break;
- case CFGTOK_INTCON:
+ case CFGTOK_INTCON:
/* An integer constant */
N = LiteralExpr (CfgIVal, 0);
- CfgNextTok ();
- break;
+ CfgNextTok ();
+ break;
case CFGTOK_PLUS:
/* Unary plus */
N->Left = Factor ();
break;
- case CFGTOK_LPAR:
+ case CFGTOK_LPAR:
/* Left parenthesis */
- CfgNextTok ();
- N = CfgExpr ();
- CfgConsume (CFGTOK_RPAR, "')' expected");
- break;
-
- default:
- CfgError (&CfgErrorPos, "Invalid expression: %d", CfgTok);
- break;
+ CfgNextTok ();
+ N = CfgExpr ();
+ CfgConsume (CFGTOK_RPAR, "')' expected");
+ break;
+
+ default:
+ CfgError (&CfgErrorPos, "Invalid expression: %d", CfgTok);
+ break;
}
/* Return the new expression node */
/* Check the range */
if (Val < Min || Val > Max) {
- CfgError (&CfgErrorPos, "Range error");
+ CfgError (&CfgErrorPos, "Range error");
}
/* Return the value */
return Val;
}
-
-
-