]> git.sur5r.net Git - cc65/blobdiff - src/cc65/expr.h
Fixed two compiler warnings.
[cc65] / src / cc65 / expr.h
index 990bed683302d36e5e5927b4eec1bd9e250243fd..c98074356ef7ba55cc4c693417f6d090904e2eb4 100644 (file)
 
 
 
-void ExprWithCheck (void (*Func) (ExprDesc*), ExprDesc *Expr);
+void ExprWithCheck (void (*Func) (ExprDesc*), ExprDescExpr);
 /* Call an expression function with checks. */
 
+void MarkedExprWithCheck (void (*Func) (ExprDesc*), ExprDesc* Expr);
+/* Call an expression function with checks and record start and end of the
+ * generated code.
+ */
+
 void PushAddr (const ExprDesc* Expr);
 /* If the expression contains an address that was somehow evaluated,
  * push this address on the stack. This is a helper function for all
@@ -33,7 +38,7 @@ void PushAddr (const ExprDesc* Expr);
  * must be saved if it's not constant, before evaluating the rhs.
  */
 
-void Store (ExprDesc* Expr, const type* StoreType);
+void Store (ExprDesc* Expr, const Type* StoreType);
 /* Store the primary register into the location denoted by lval. If StoreType
  * is given, use this type when storing instead of lval->Type. If StoreType
  * is NULL, use lval->Type instead.
@@ -41,7 +46,7 @@ void Store (ExprDesc* Expr, const type* StoreType);
 
 int evalexpr (unsigned flags, void (*Func) (ExprDesc*), ExprDesc* Expr);
 /* 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
+ * constant, 0 is returned and the value is put in the Expr struct. If the
  * result is not constant, LoadExpr is called to bring the value into the
  * primary register and 1 is returned.
  */