1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +00:00

SegNum has been renamed to SecNum.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4845 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2010-11-10 10:22:55 +00:00
parent 7bd19b737a
commit 3f24c88355
2 changed files with 7 additions and 7 deletions

View File

@ -1515,11 +1515,11 @@ ExprNode* GenSymExpr (SymEntry* Sym)
static ExprNode* GenSectionExpr (unsigned SegNum)
static ExprNode* GenSectionExpr (unsigned SecNum)
/* Return an expression node for the given section */
{
ExprNode* Expr = NewExprNode (EXPR_SECTION);
Expr->V.SegNum = SegNum;
Expr->V.SecNum = SecNum;
return Expr;
}
@ -1729,7 +1729,7 @@ ExprNode* CloneExpr (ExprNode* Expr)
break;
case EXPR_SECTION:
Clone = GenSectionExpr (Expr->V.SegNum);
Clone = GenSectionExpr (Expr->V.SecNum);
break;
default:
@ -1777,7 +1777,7 @@ void WriteExpr (ExprNode* Expr)
case EXPR_SECTION:
ObjWrite8 (EXPR_SECTION);
ObjWrite8 (Expr->V.SegNum);
ObjWrite8 (Expr->V.SecNum);
break;
case EXPR_ULABEL:

View File

@ -481,7 +481,7 @@ static void StudyBinaryExpr (ExprNode* Expr, ExprDesc* D)
ED_Done (&Right);
}
static void StudyLiteral (ExprNode* Expr, ExprDesc* D)
/* Study a literal expression node */
@ -581,7 +581,7 @@ static void StudySection (ExprNode* Expr, ExprDesc* D)
/* Study a section expression node */
{
/* Get the section reference */
ED_SecRef* SecRef = ED_GetSecRef (D, Expr->V.SegNum);
ED_SecRef* SecRef = ED_GetSecRef (D, Expr->V.SecNum);
/* Update the data and the address size */
++SecRef->Count;
@ -1404,7 +1404,7 @@ void StudyExpr (ExprNode* Expr, ExprDesc* D)
*/
if (D->AddrSize == ADDR_SIZE_DEFAULT && ED_IsConst (D)) {
D->AddrSize = GetConstAddrSize (D->Val);
}
}
/* If the expression is valid, throw away the address size and recalculate
* it using the data we have. This is more exact than the on-the-fly