mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-patch:8.0.0160: EMSG() is sometimes used where it should be IEMSG()
Problem: EMSG() is sometimes used for internal errors.
Solution: Change them to IEMSG(). (Dominique Pelle) And a few more.
de33011ec6
This commit is contained in:
@@ -1370,7 +1370,7 @@ static char *cs_manage_matches(char **matches, char **contexts,
|
|||||||
cs_print_tags_priv(mp, cp, cnt);
|
cs_print_tags_priv(mp, cp, cnt);
|
||||||
break;
|
break;
|
||||||
default: /* should not reach here */
|
default: /* should not reach here */
|
||||||
(void)EMSG(_("E570: fatal error in cs_manage_matches"));
|
IEMSG(_("E570: fatal error in cs_manage_matches"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1263,7 +1263,7 @@ static int nfa_regatom(void)
|
|||||||
rc_did_emsg = TRUE;
|
rc_did_emsg = TRUE;
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
EMSGN("INTERNAL: Unknown character class char: %" PRId64, c);
|
IEMSGN("INTERNAL: Unknown character class char: %" PRId64, c);
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
/* When '.' is followed by a composing char ignore the dot, so that
|
/* When '.' is followed by a composing char ignore the dot, so that
|
||||||
@@ -4414,7 +4414,7 @@ static int check_char_class(int class, int c)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
/* should not be here :P */
|
/* should not be here :P */
|
||||||
EMSGN(_(e_ill_char_class), class);
|
IEMSGN(_(e_ill_char_class), class);
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
return FAIL;
|
return FAIL;
|
||||||
@@ -5993,7 +5993,7 @@ static int nfa_regmatch(nfa_regprog_T *prog, nfa_state_T *start,
|
|||||||
|
|
||||||
#ifdef REGEXP_DEBUG
|
#ifdef REGEXP_DEBUG
|
||||||
if (c < 0)
|
if (c < 0)
|
||||||
EMSGN("INTERNAL: Negative state char: %" PRId64, c);
|
IEMSGN("INTERNAL: Negative state char: %" PRId64, c);
|
||||||
#endif
|
#endif
|
||||||
result = (c == curc);
|
result = (c == curc);
|
||||||
|
|
||||||
@@ -6464,9 +6464,9 @@ static regprog_T *nfa_regcomp(char_u *expr, int re_flags)
|
|||||||
if (postfix == NULL) {
|
if (postfix == NULL) {
|
||||||
/* TODO: only give this error for debugging? */
|
/* TODO: only give this error for debugging? */
|
||||||
if (post_ptr >= post_end)
|
if (post_ptr >= post_end)
|
||||||
EMSGN("Internal error: estimated max number "
|
IEMSGN("Internal error: estimated max number "
|
||||||
"of states insufficient: %" PRId64,
|
"of states insufficient: %" PRId64,
|
||||||
post_end - post_start);
|
post_end - post_start);
|
||||||
goto fail; /* Cascaded (syntax?) error */
|
goto fail; /* Cascaded (syntax?) error */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user