aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/indent_c.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-09 11:49:32 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-16 13:27:06 +0200
commitf0148de7907ec297647816d51c79745be729439e (patch)
tree1aaaa4bbb1cff930178e05dd8b0f72482db166e6 /src/nvim/indent_c.c
parent7adecbcd29e17b71bf43e50a444724da184c04a7 (diff)
downloadrneovim-f0148de7907ec297647816d51c79745be729439e.tar.gz
rneovim-f0148de7907ec297647816d51c79745be729439e.tar.bz2
rneovim-f0148de7907ec297647816d51c79745be729439e.zip
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/indent_c.c')
-rw-r--r--src/nvim/indent_c.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c
index 854487ccdb..6f75183a5a 100644
--- a/src/nvim/indent_c.c
+++ b/src/nvim/indent_c.c
@@ -167,8 +167,8 @@ static const char_u *skip_string(const char_u *p)
}
} else if (p[0] == 'R' && p[1] == '"') {
// Raw string: R"[delim](...)[delim]"
- const char_u *delim = p + 2;
- const char_u *paren = vim_strchr(delim, '(');
+ const char *delim = (char *)p + 2;
+ const char *paren = vim_strchr((char *)delim, '(');
if (paren != NULL) {
const ptrdiff_t delim_len = paren - delim;
@@ -737,7 +737,7 @@ static int cin_get_equal_amount(linenr_T lnum)
}
line = s = ml_get(lnum);
- while (*s != NUL && vim_strchr((char_u *)"=;{}\"'", *s) == NULL) {
+ while (*s != NUL && vim_strchr("=;{}\"'", *s) == NULL) {
if (cin_iscomment(s)) { // ignore comments
s = cin_skipcomment(s);
} else {
@@ -3543,8 +3543,8 @@ term_again:
*/
if (cur_curpos.lnum < curbuf->b_ml.ml_line_count
&& !cin_nocode(theline)
- && vim_strchr(theline, '{') == NULL
- && vim_strchr(theline, '}') == NULL
+ && vim_strchr((char *)theline, '{') == NULL
+ && vim_strchr((char *)theline, '}') == NULL
&& !cin_ends_in(theline, (char_u *)":", NULL)
&& !cin_ends_in(theline, (char_u *)",", NULL)
&& cin_isfuncdecl(NULL, cur_curpos.lnum + 1, cur_curpos.lnum + 1)