+type* ReplaceType (ExprDesc* Expr, const type* NewType)
+/* Replace the type of Expr by a copy of Newtype and return the old type string */
+{
+ type* OldType = Expr->Type;
+ Expr->Type = TypeDup (NewType);
+ return OldType;
+}
+
+
+
#define EXPRDESC_H
-
+
/* cc65 */
#include "datatype.h"
void PrintExprDesc (FILE* F, ExprDesc* Expr);
/* Print an ExprDesc */
+type* ReplaceType (ExprDesc* Expr, const type* NewType);
+/* Replace the type of Expr by a copy of Newtype and return the old type string */
+
/* End of exprdesc.h */