summaryrefslogtreecommitdiff
path: root/src/regexp_bt.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-20 21:07:36 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-20 21:07:36 +0200
commite29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 (patch)
treeeb8bd787e936db02a1617fb033aed2e224b3bbd3 /src/regexp_bt.c
parent9fa5dabedc4ed5af85773413e91c2fdbe4cb9f0a (diff)
downloadvim-git-e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3.tar.gz
patch 8.2.3190: error messages are spread outv8.2.3190
Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
Diffstat (limited to 'src/regexp_bt.c')
-rw-r--r--src/regexp_bt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/regexp_bt.c b/src/regexp_bt.c
index dae6d519b..1a677d19c 100644
--- a/src/regexp_bt.c
+++ b/src/regexp_bt.c
@@ -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;
}