mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -2462,7 +2462,7 @@ void ex_function(exarg_T *eap)
|
||||
p = vim_strchr((char *)scriptname, '/');
|
||||
plen = (int)STRLEN(p);
|
||||
slen = (int)STRLEN(SOURCING_NAME);
|
||||
if (slen > plen && FNAMECMP(p, SOURCING_NAME + slen - plen) == 0) {
|
||||
if (slen > plen && path_fnamecmp(p, SOURCING_NAME + slen - plen) == 0) {
|
||||
j = OK;
|
||||
}
|
||||
xfree(scriptname);
|
||||
@@ -2632,7 +2632,7 @@ char *get_user_func_name(expand_T *xp, int idx)
|
||||
return (char *)fp->uf_name; // Prevent overflow.
|
||||
}
|
||||
|
||||
cat_func_name(IObuff, fp);
|
||||
cat_func_name((char_u *)IObuff, fp);
|
||||
if (xp->xp_context != EXPAND_USER_FUNC) {
|
||||
STRCAT(IObuff, "(");
|
||||
if (!fp->uf_varargs && GA_EMPTY(&fp->uf_args)) {
|
||||
|
Reference in New Issue
Block a user