0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3190: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move error messages to errors.h and give them a clear name.
This commit is contained in:
Bram Moolenaar
2021-07-20 21:07:36 +02:00
parent 9fa5dabedc
commit e29a27f6f8
29 changed files with 127 additions and 98 deletions

View File

@@ -1424,7 +1424,7 @@ regatom(int *flagp)
}
}
else
EMSG_RET_NULL(_(e_nopresub));
EMSG_RET_NULL(_(e_no_previous_substitute_regular_expression));
break;
case Magic('1'):
@@ -2491,7 +2491,7 @@ bt_regcomp(char_u *expr, int re_flags)
int flags;
if (expr == NULL)
IEMSG_RET_NULL(_(e_null));
IEMSG_RET_NULL(_(e_null_argument));
init_class_tab();
@@ -3115,7 +3115,7 @@ do_class:
break;
default: // Oh dear. Called inappropriately.
iemsg(_(e_re_corr));
iemsg(_(e_corrupted_regexp_program));
#ifdef DEBUG
printf("Called regrepeat with op code %d\n", OP(p));
#endif
@@ -4309,7 +4309,7 @@ regmatch(
break;
default:
iemsg(_(e_re_corr));
iemsg(_(e_corrupted_regexp_program));
#ifdef DEBUG
printf("Illegal op code %d\n", op);
#endif
@@ -4709,7 +4709,7 @@ regmatch(
{
// We get here only if there's trouble -- normally "case END" is
// the terminating point.
iemsg(_(e_re_corr));
iemsg(_(e_corrupted_regexp_program));
#ifdef DEBUG
printf("Premature EOL\n");
#endif
@@ -4859,7 +4859,7 @@ bt_regexec_both(
// Be paranoid...
if (prog == NULL || line == NULL)
{
iemsg(_(e_null));
iemsg(_(e_null_argument));
goto theend;
}