bool psi_set_func_validate(struct psi_data *data, struct psi_set_func *func,
struct psi_set_exp *set, struct psi_impl *impl, struct psi_decl *cb_decl)
{
- if (!psi_decl_var_validate(data, func->var, NULL, impl->decl, NULL, set)
+ if (!psi_decl_var_validate(data, func->var, impl, impl->decl, NULL, set)
&& !psi_decl_var_validate(data, func->var, NULL, cb_decl, NULL, NULL)
&& !psi_impl_get_temp_let_arg(impl, func->var)) {
data->error(data, func->var->token, PSI_WARNING,
case PSI_SET_NUMEXP:
break;
case PSI_SET_FUNC:
- if (!psi_decl_get_arg(impl->decl, set->exp->data.func->var)) {
+ if (!psi_impl_get_decl_arg(impl, set->exp->data.func->var)) {
if (!psi_impl_get_temp_let_arg(impl, set->exp->data.func->var)) {
data->error(data, set->token, PSI_WARNING,
"Unknown variable '%s' of `set` statement of implementation '%s'",
- set->exp->data.func->var, impl->func->name);
+ set->exp->data.func->var->name, impl->func->name);
return false;
}
}