refactor: replace char_u variables and functions with char

Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
Dundar Goc
2022-05-09 11:49:32 +02:00
parent 7adecbcd29
commit f0148de790
65 changed files with 617 additions and 661 deletions

View File

@@ -1361,18 +1361,18 @@ void ex_catch(exarg_T *eap)
save_char = *end;
*end = NUL;
}
save_cpo = (char *)p_cpo;
p_cpo = (char_u *)"";
save_cpo = p_cpo;
p_cpo = "";
// Disable error messages, it will make current exception
// invalid
emsg_off++;
regmatch.regprog = vim_regcomp((char_u *)pat, RE_MAGIC + RE_STRING);
regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
emsg_off--;
regmatch.rm_ic = false;
if (end != NULL) {
*end = save_char;
}
p_cpo = (char_u *)save_cpo;
p_cpo = save_cpo;
if (regmatch.regprog == NULL) {
semsg(_(e_invarg2), pat);
} else {