The compiler does not need to be explicitly told how to call through a function
pointer.
if (!prog->disc->getf)
exerror("%s: identifier references not supported", sym->name);
else if (expr.program->disc->reff)
- (*expr.program->disc->reff) (prog, nn,
- nn->data.variable.symbol, refs);
+ expr.program->disc->reff(prog, nn, nn->data.variable.symbol, refs);
return nn;
}
if (!expr.program->disc->reff)
exerror("%s: identifier references not supported", $1->name);
else
- $$->data.constant.value = (*expr.program->disc->reff)(expr.program, $$, $1, NULL);
+ $$->data.constant.value = expr.program->disc->reff(expr.program, $$, $1, NULL);
}
| FLOATING
{
}
break;
}
- (*ex->disc->reff)(ex, NULL, ex_lval.id, NULL);
+ ex->disc->reff(ex, NULL, ex_lval.id, NULL);
/*..INDENT*/
}