vim-patch:8.2.1633: some error messages are internal but do not use iemsg()

Problem:    Some error messages are internal but do not use iemsg().
Solution:   Use iemsg(). (Dominique Pellé, closes vim/vim#6894)
e83cca2911

N/A patches for version.c:

vim-patch:8.2.1625: compiler warning for use of fptr_T

Problem:    Compiler warning for use of fptr_T.
Solution:   Make the type less strict.
30d6413782

vim-patch:8.2.1630: terminal test fails

Problem:    Terminal test fails.
Solution:   Correct argument to term_start().  Correct error number.
c98cdb3bc9
This commit is contained in:
Jan Edmund Lazo
2020-09-07 18:06:53 -04:00
parent d8e6a0396a
commit 951ef21de5
2 changed files with 10 additions and 9 deletions

View File

@@ -1270,8 +1270,9 @@ static regprog_T *bt_regcomp(char_u *expr, int re_flags)
int len; int len;
int flags; int flags;
if (expr == NULL) if (expr == NULL) {
EMSG_RET_NULL(_(e_null)); IEMSG_RET_NULL(_(e_null));
}
init_class_tab(); init_class_tab();
@@ -3483,7 +3484,7 @@ static long bt_regexec_both(char_u *line,
/* Be paranoid... */ /* Be paranoid... */
if (prog == NULL || line == NULL) { if (prog == NULL || line == NULL) {
EMSG(_(e_null)); IEMSG(_(e_null));
goto theend; goto theend;
} }
@@ -4789,7 +4790,7 @@ static bool regmatch(
break; break;
default: default:
EMSG(_(e_re_corr)); IEMSG(_(e_re_corr));
#ifdef REGEXP_DEBUG #ifdef REGEXP_DEBUG
printf("Illegal op code %d\n", op); printf("Illegal op code %d\n", op);
#endif #endif
@@ -5147,7 +5148,7 @@ static bool regmatch(
* We get here only if there's trouble -- normally "case END" is * We get here only if there's trouble -- normally "case END" is
* the terminating point. * the terminating point.
*/ */
EMSG(_(e_re_corr)); IEMSG(_(e_re_corr));
#ifdef REGEXP_DEBUG #ifdef REGEXP_DEBUG
printf("Premature EOL\n"); printf("Premature EOL\n");
#endif #endif
@@ -5552,8 +5553,8 @@ do_class:
} }
break; break;
default: /* Oh dear. Called inappropriately. */ default: // Oh dear. Called inappropriately.
EMSG(_(e_re_corr)); IEMSG(_(e_re_corr));
#ifdef REGEXP_DEBUG #ifdef REGEXP_DEBUG
printf("Called regrepeat with op code %d\n", OP(p)); printf("Called regrepeat with op code %d\n", OP(p));
#endif #endif
@@ -6911,7 +6912,7 @@ static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest,
} }
} else if (*s == NUL) { // we hit NUL. } else if (*s == NUL) { // we hit NUL.
if (copy) { if (copy) {
EMSG(_(e_re_damg)); IEMSG(_(e_re_damg));
} }
goto exit; goto exit;
} else { } else {

View File

@@ -6519,7 +6519,7 @@ static long nfa_regexec_both(char_u *line, colnr_T startcol,
/* Be paranoid... */ /* Be paranoid... */
if (prog == NULL || line == NULL) { if (prog == NULL || line == NULL) {
EMSG(_(e_null)); IEMSG(_(e_null));
goto theend; goto theend;
} }