mirror of
https://github.com/cc65/cc65.git
synced 2024-06-15 17:30:06 +00:00
ED_AddrExpr() and ED_IndExpr() need no return values.
This commit is contained in:
parent
4343eebe67
commit
4e820677ee
|
@ -418,7 +418,7 @@ ExprDesc* ED_FinalizeRValLoad (ExprDesc* Expr)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ExprDesc* ED_AddrExpr (ExprDesc* Expr)
|
void ED_AddrExpr (ExprDesc* Expr)
|
||||||
/* Take address of Expr. The result is always an rvalue */
|
/* Take address of Expr. The result is always an rvalue */
|
||||||
{
|
{
|
||||||
switch (Expr->Flags & E_MASK_LOC) {
|
switch (Expr->Flags & E_MASK_LOC) {
|
||||||
|
@ -447,12 +447,11 @@ ExprDesc* ED_AddrExpr (ExprDesc* Expr)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return Expr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ExprDesc* ED_IndExpr (ExprDesc* Expr)
|
void ED_IndExpr (ExprDesc* Expr)
|
||||||
/* Dereference Expr */
|
/* Dereference Expr */
|
||||||
{
|
{
|
||||||
switch (Expr->Flags & E_MASK_LOC) {
|
switch (Expr->Flags & E_MASK_LOC) {
|
||||||
|
@ -486,7 +485,6 @@ ExprDesc* ED_IndExpr (ExprDesc* Expr)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return Expr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -637,10 +637,10 @@ INLINE void ED_MarkExprAsRVal (ExprDesc* Expr)
|
||||||
# define ED_MarkExprAsRVal(Expr) do { (Expr)->Flags &= ~E_RTYPE_LVAL; } while (0)
|
# define ED_MarkExprAsRVal(Expr) do { (Expr)->Flags &= ~E_RTYPE_LVAL; } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ExprDesc* ED_AddrExpr (ExprDesc* Expr);
|
void ED_AddrExpr (ExprDesc* Expr);
|
||||||
/* Take address of Expr */
|
/* Take address of Expr */
|
||||||
|
|
||||||
ExprDesc* ED_IndExpr (ExprDesc* Expr);
|
void ED_IndExpr (ExprDesc* Expr);
|
||||||
/* Dereference Expr */
|
/* Dereference Expr */
|
||||||
|
|
||||||
#if defined(HAVE_INLINE)
|
#if defined(HAVE_INLINE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user