X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcc65%2Fexpr.h;h=efd1777e66bf2a2be7161ebd67dd20ed72956aa8;hb=dbbce2e939af8fd78f659e5c66eea8b002369ba2;hp=77f1b7a6019c75b95b03c1326e5eb5800eb50fa1;hpb=8810e38bb7b6a4fe0a3a024de3456a1bd78dfc9c;p=cc65 diff --git a/src/cc65/expr.h b/src/cc65/expr.h index 77f1b7a60..efd1777e6 100644 --- a/src/cc65/expr.h +++ b/src/cc65/expr.h @@ -37,6 +37,11 @@ void ConstSubExpr (int (*F) (ExprDesc*), ExprDesc* Expr); * from this input error. */ +void CheckBoolExpr (ExprDesc* lval); +/* Check if the given expression is a boolean expression, output a diagnostic + * 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 @@ -77,24 +82,25 @@ void ConstIntExpr (ExprDesc* Val); void intexpr (ExprDesc* lval); /* Get an integer expression */ -void boolexpr (ExprDesc* lval); -/* Get a boolean expression */ - -void test (unsigned label, int cond); -/* Generate code to perform test and jump if false. */ - int hie10 (ExprDesc* lval); /* Handle ++, --, !, unary - etc. */ int hie1 (ExprDesc* lval); /* Parse first level of expression hierarchy. */ -int hie0 (ExprDesc* lval); -/* Parse comma operator (highest level of expression hierarchy) */ - void DefineData (ExprDesc* lval); /* Output a data definition for the given expression */ +void Test (unsigned Label, int Invert); +/* Evaluate a boolean test expression and jump depending on the result of + * the test and on Invert. + */ + +void TestInParens (unsigned Label, int Invert); +/* Evaluate a boolean test expression in parenthesis and jump depending on + * the result of the test * and on Invert. + */ + /* End of expr.h */