static int iofread(void *chan, char *buf, int bufsize)
{
- return read(sffileno((Sfio_t *) chan), buf, bufsize);
+ return read(sffileno(chan), buf, bufsize);
}
static int ioputstr(void *chan, const char *str)
{
- return sfputr((Sfio_t *) chan, str, -1);
+ return sfputr(chan, str, -1);
}
static int ioflush(void *chan)
{
- return sfsync((Sfio_t *) chan);
+ return sfsync(chan);
}
static Agiodisc_t gprIoDisc = { iofread, ioputstr, ioflush };
assert(sym->lex != CONSTANT);
if (elt == EX_CALL) {
- args = (Extype_t *) env;
+ args = env;
state = (Gpr_t *) (disc->user);
switch (sym->index) {
case F_graph:
}
return v;
} else if (elt == EX_ARRAY) {
- args = (Extype_t *) env;
+ args = env;
state = (Gpr_t *) (disc->user);
switch (sym->index) {
case A_ARGV:
return v;
}
- state = (Gpr_t *) env;
+ state = env;
if (ref) {
objp = deref(pgm, node, ref, 0, state);
if (!objp)
int iv;
int rv = 0;
- state = (Gpr_t *) env;
+ state = env;
if (ref) {
objp = deref(pgm, x, ref, 0, state);
if (!objp) {