From e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 20 Jul 2021 21:07:36 +0200 Subject: 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. --- src/regexp_bt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/regexp_bt.c') 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; } -- cgit v1.2.1