From: Jérémie Astor Date: Thu, 11 Mar 2021 02:38:36 +0000 (+0100) Subject: :wrench: Windows things X-Git-Tag: nightly~885 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=318c9db495d653b1c93a49e7cd55d92689fa5291;p=gwion.git :wrench: Windows things --- diff --git a/src/parse/check.c b/src/parse/check.c index 6dd23878..c914f29f 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -545,10 +545,15 @@ ANN static void print_arg(Arg_List e) { ANN2(1) static void function_alternative(const Env env, const Type f, const Exp args, const loc_t pos){ if(env->context->error) // needed for ufcs return; - env_err(env, pos, _("argument type(s) do not match for function.")); + loc_header(pos, env->name); + loc_header(pos, env->name); + gw_err(_("argument type(s) do not match for function {+/}%s{0}.\n"), + s_name(f->info->func->def->base->xid)); + loc_err(pos, env->name); + gw_err("\nalternative:\n"); Func up = f->info->func; do { - gw_err("{-}(%s){0} ", up->name); + gw_err(" {-}(%s){0} ", up->name); const Arg_List e = up->def->base->args; if(e) print_arg(e); diff --git a/util b/util index 4015b0ce..26c87099 160000 --- a/util +++ b/util @@ -1 +1 @@ -Subproject commit 4015b0ce51e899befdf8dd049f13cdbee2f85f57 +Subproject commit 26c870998fb67d5e0eaa8a46b7cde4d5745de40f