#define exlex() extoken_fn(expr.program)
-#define ALLOCATE(p,x) (x*)exalloc(p,sizeof(x))
+#define ALLOCATE(p,x) exalloc(p,sizeof(x))
#define QUALIFY(r,s) ((r)&&(expr.program->disc->flags&EX_QUALIFY)?qualify(r,s):(s))
static int a2t[] = { 0, FLOATING, INTEGER, STRING };
sw->lastcase = $$;
n = sw->cur - sw->base;
sw->cur = sw->base;
- $$->data.select.constant = (Extype_t**)exalloc(expr.program, (n + 1) * sizeof(Extype_t*));
+ $$->data.select.constant = exalloc(expr.program, (n + 1) * sizeof(Extype_t*));
memcpy($$->data.select.constant, sw->base, n * sizeof(Extype_t*));
$$->data.select.constant[n] = 0;
}
#ifndef vmfree
#define vmfree(vm,d) (*(_VM_(vm)->meth.freef))((vm),(void*)(d))
#endif
-#define vmnewof(v,p,t,n,x) (t*)vmresize((v), (p), sizeof(t)*(n)+(x))
+#define vmnewof(v,p,t,n,x) vmresize((v), (p), sizeof(t)*(n)+(x))
#ifdef __cplusplus
}
#endif