X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Fimpl_func.c;h=5893b4fd3fb22794eb3f8383e9ec05971360bdb4;hp=b728b0ccc92400d3675d3c0cca4aa331729b8207;hb=c9384515a81cb64d345b299908b2852f51bb8e6e;hpb=f74ce3f29e2dadd9f839c33ad5292e56e9203efd diff --git a/src/types/impl_func.c b/src/types/impl_func.c index b728b0c..5893b4f 100644 --- a/src/types/impl_func.c +++ b/src/types/impl_func.c @@ -61,7 +61,8 @@ void psi_impl_func_free(struct psi_impl_func **f_ptr) } } -bool psi_impl_func_validate(struct psi_data *data, struct psi_impl_func *func) +bool psi_impl_func_validate(struct psi_data *data, struct psi_impl_func *func, + struct psi_validate_scope *scope) { int def = 0; size_t i = 0; @@ -70,7 +71,7 @@ bool psi_impl_func_validate(struct psi_data *data, struct psi_impl_func *func) while (psi_plist_get(func->args, i++, &iarg)) { if (iarg->def) { def = 1; - if (!psi_impl_def_val_validate(data, iarg->def, iarg->type->type, iarg->type->name)) { + if (!psi_impl_def_val_validate(data, iarg->def, iarg->type, scope)) { return 0; } } else if (def) {