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-03 11:06:27 +02:00
parent 3ec93ca92c
commit 5576d30e89
42 changed files with 555 additions and 562 deletions

View File

@@ -1176,14 +1176,14 @@ void ex_match(exarg_T *eap)
}
if (ends_excmd(*eap->arg)) {
end = eap->arg;
end = (char_u *)eap->arg;
} else if ((STRNICMP(eap->arg, "none", 4) == 0
&& (ascii_iswhite(eap->arg[4]) || ends_excmd(eap->arg[4])))) {
end = eap->arg + 4;
end = (char_u *)eap->arg + 4;
} else {
p = skiptowhite(eap->arg);
p = skiptowhite((char_u *)eap->arg);
if (!eap->skip) {
g = vim_strnsave(eap->arg, (size_t)(p - eap->arg));
g = vim_strnsave((char_u *)eap->arg, (size_t)(p - (char_u *)eap->arg));
}
p = skipwhite(p);
if (*p == NUL) {
@@ -1213,5 +1213,5 @@ void ex_match(exarg_T *eap)
*end = (char_u)c;
}
}
eap->nextcmd = find_nextcmd(end);
eap->nextcmd = (char *)find_nextcmd(end);
}