diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-05 13:36:14 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-09 10:03:29 +0200 |
commit | e31b32a293f6ba8708499a176234f8be1df6a145 (patch) | |
tree | 87e129c92affece6421d4585b5d5c20996891ec5 /src/nvim/regexp.c | |
parent | dbdd58e548fcf55848359b696275fd848756db7b (diff) | |
download | rneovim-e31b32a293f6ba8708499a176234f8be1df6a145.tar.gz rneovim-e31b32a293f6ba8708499a176234f8be1df6a145.tar.bz2 rneovim-e31b32a293f6ba8708499a176234f8be1df6a145.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r-- | src/nvim/regexp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 6a4a15d7f8..2052493e3f 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -1786,13 +1786,13 @@ static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, funcexe.evaluate = true; if (expr->v_type == VAR_FUNC) { s = (char_u *)expr->vval.v_string; - call_func(s, -1, &rettv, 1, argv, &funcexe); + call_func((char *)s, -1, &rettv, 1, argv, &funcexe); } else if (expr->v_type == VAR_PARTIAL) { partial_T *partial = expr->vval.v_partial; s = (char_u *)partial_name(partial); funcexe.partial = partial; - call_func(s, -1, &rettv, 1, argv, &funcexe); + call_func((char *)s, -1, &rettv, 1, argv, &funcexe); } if (tv_list_len(&matchList.sl_list) > 0) { // fill_submatch_list() was called. @@ -1929,7 +1929,7 @@ static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, int totlen = utfc_ptr2len((char *)src - 1); if (copy) { - utf_char2bytes(cc, dst); + utf_char2bytes(cc, (char *)dst); } dst += utf_char2len(cc) - 1; int clen = utf_ptr2len((char *)src - 1); @@ -2027,7 +2027,7 @@ static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, s += l; len -= l; if (copy) { - utf_char2bytes(cc, dst); + utf_char2bytes(cc, (char *)dst); } dst += utf_char2len(cc) - 1; } |