aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/debugger.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-05 13:36:14 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-09 10:03:29 +0200
commite31b32a293f6ba8708499a176234f8be1df6a145 (patch)
tree87e129c92affece6421d4585b5d5c20996891ec5 /src/nvim/debugger.c
parentdbdd58e548fcf55848359b696275fd848756db7b (diff)
downloadrneovim-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/debugger.c')
-rw-r--r--src/nvim/debugger.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c
index 96bc4db71e..662b9bfb0a 100644
--- a/src/nvim/debugger.c
+++ b/src/nvim/debugger.c
@@ -141,7 +141,7 @@ void do_debug(char_u *cmd)
// If this is a debug command, set "last_cmd".
// If not, reset "last_cmd".
// For a blank line use previous command.
- p = skipwhite(cmdline);
+ p = (char_u *)skipwhite((char *)cmdline);
if (*p != NUL) {
switch (*p) {
case 'c':
@@ -242,7 +242,7 @@ void do_debug(char_u *cmd)
if (*p == NUL) {
do_showbacktrace(cmd);
} else {
- p = skipwhite(p);
+ p = (char_u *)skipwhite((char *)p);
do_setdebugtracelevel(p);
}
continue;
@@ -501,14 +501,14 @@ static int dbg_parsearg(char_u *arg, garray_T *gap)
semsg(_(e_invarg2), p);
return FAIL;
}
- p = skipwhite(p + 4);
+ p = (char_u *)skipwhite((char *)p + 4);
// Find optional line number.
if (here) {
bp->dbg_lnum = curwin->w_cursor.lnum;
} else if (gap != &prof_ga && ascii_isdigit(*p)) {
bp->dbg_lnum = getdigits_long(&p, true, 0);
- p = skipwhite(p);
+ p = (char_u *)skipwhite((char *)p);
} else {
bp->dbg_lnum = 0;
}