char *extypename(Expr_t * p, int type) {
if (BUILTIN(type))
return TYPENAME(type);
- return (p->disc->typename) (p, type);
+ return (p->disc->typename) (type);
}
/* exnoncast:
/* type conversion function */
int (*binaryf) (Exnode_t *, Exnode_t *, Exnode_t *, int);
/* binary operator function */
- char* (*typename) (Expr_t *, int);
+ char* (*typename) (int);
/* application type names */
int (*stringof) (Expr_t *, Exnode_t *, int, Exdisc_t *);
/* value to string conversion */
#define MINTYPE (LAST_M+1) /* First type occurs after last M_ */
-static char *typeName(Expr_t * pg, int op)
-{
+static char *typeName(int op) {
return typenames[op - MINTYPE];
}
state->tvt = (trav_type) iv;
else
error(1, "unexpected value %lld assigned to %s : ignored",
- iv, typeName(pgm, T_tvtyp));
+ iv, typeName(T_tvtyp));
break;
}
case V_travroot:
} else {
objp = int2ptr(x->data.constant.value.integer);
if (!objp) {
- exerror("cannot generate name for NULL %s",
- typeName(prog, x->type));
+ exerror("cannot generate name for NULL %s", typeName(x->type));
rv = -1;
}
else {