X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fexpr.h;h=99a0af32dd45fc02aa609c00e1299506dba6e093;hb=b3496bb343a2c93284a8669da4b52cf45b3db3dd;hp=efd1777e66bf2a2be7161ebd67dd20ed72956aa8;hpb=4e2110a7a9ab0d054acb784b8585e9c7c6f4f399;p=cc65 diff --git a/src/cc65/expr.h b/src/cc65/expr.h index efd1777e6..99a0af32d 100644 --- a/src/cc65/expr.h +++ b/src/cc65/expr.h @@ -42,14 +42,7 @@ void CheckBoolExpr (ExprDesc* lval); * if not. */ -unsigned assignadjust (type* lhst, ExprDesc* rhs); -/* Adjust the type of the right hand expression so that it can be assigned to - * the type on the left hand side. This function is used for assignment and - * for converting parameters in a function call. It returns the code generator - * flags for the operation. - */ - -void exprhs (unsigned flags, int k, ExprDesc *lval); +void ExprLoad (unsigned flags, int k, ExprDesc *lval); /* Put the result of an expression into the primary register */ void Store (ExprDesc* lval, const type* StoreType); @@ -58,6 +51,16 @@ void Store (ExprDesc* lval, const type* StoreType); * is NULL, use lval->Type instead. */ +int hie0 (ExprDesc *lval); +/* Parse comma operator. */ + +int evalexpr (unsigned flags, int (*f) (ExprDesc*), ExprDesc* lval); +/* Will evaluate an expression via the given function. If the result is a + * constant, 0 is returned and the value is put in the lval struct. If the + * result is not constant, ExprLoad is called to bring the value into the + * primary register and 1 is returned. + */ + void expression1 (ExprDesc* lval); /* Evaluate an expression on level 1 (no comma operator) and put it into * the primary register @@ -66,13 +69,6 @@ void expression1 (ExprDesc* lval); void expression (ExprDesc* lval); /* Evaluate an expression and put it into the primary register */ -int evalexpr (unsigned flags, int (*f) (ExprDesc*), ExprDesc* lval); -/* Will evaluate an expression via the given function. If the result is a - * constant, 0 is returned and the value is put in the lval struct. If the - * result is not constant, exprhs is called to bring the value into the - * primary register and 1 is returned. - */ - void ConstExpr (ExprDesc* lval); /* Get a constant value */