From: Michael Wallner Date: Wed, 31 Oct 2018 09:50:56 +0000 (+0100) Subject: fix error messages X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7e27dcea4ad3aa1f49ef56202fdd2c3577049160;p=m6w6%2Fext-psi fix error messages --- diff --git a/src/types/decl_arg.c b/src/types/decl_arg.c index 4049038..774d302 100644 --- a/src/types/decl_arg.c +++ b/src/types/decl_arg.c @@ -139,7 +139,8 @@ bool psi_decl_arg_validate_typedef(struct psi_data *data, def->type->type = PSI_T_POINTER; } else { data->error(data, def->token, PSI_WARNING, - "Type '%s' cannot be aliased to 'void'", def->type->name->val); + "Type '%s' cannot be aliased to 'void'", + def->type->name->val); return false; } } else if (!psi_decl_type_validate(data, def->type, def, scope)) { @@ -160,8 +161,10 @@ bool psi_decl_arg_validate_typedef(struct psi_data *data, break; } data->error(data, def->token, PSI_WARNING, - "Type '%s' cannot be aliased to '%s%s'%s%s", def->var->name, pre, - def->type->name->val, *data->last_error ? ": " : "", data->last_error); + "Type '%s' cannot be aliased to '%s%s'%s%s", + def->var->name->val, pre, + def->type->name->val, + *data->last_error ? ": " : "", data->last_error); return false; }