aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/debugger.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-08 14:43:16 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-11 23:19:57 +0200
commit85aae12a6dea48621ea2d24a946b3e7b86f9014d (patch)
treed9d45a2bdde3b462f58d98b88694bad0183c2b16 /src/nvim/debugger.c
parent5359be78935dc639c481d74f010fe133dd40290c (diff)
downloadrneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.tar.gz
rneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.tar.bz2
rneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c
index 6fab70d4c2..0f76c3e884 100644
--- a/src/nvim/debugger.c
+++ b/src/nvim/debugger.c
@@ -60,7 +60,7 @@ void do_debug(char_u *cmd)
int save_ignore_script = 0;
int n;
char_u *cmdline = NULL;
- char_u *p;
+ char *p;
char *tail = NULL;
static int last_cmd = 0;
#define CMD_CONT 1
@@ -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 = (char_u *)skipwhite((char *)cmdline);
+ p = skipwhite((char *)cmdline);
if (*p != NUL) {
switch (*p) {
case 'c':
@@ -200,7 +200,7 @@ void do_debug(char_u *cmd)
if (last_cmd != 0) {
// Check that the tail matches.
p++;
- while (*p != NUL && *p == (char_u)(*tail)) {
+ while (*p != NUL && *p == *tail) {
p++;
tail++;
}
@@ -242,8 +242,8 @@ void do_debug(char_u *cmd)
if (*p == NUL) {
do_showbacktrace(cmd);
} else {
- p = (char_u *)skipwhite((char *)p);
- do_setdebugtracelevel(p);
+ p = skipwhite(p);
+ do_setdebugtracelevel((char_u *)p);
}
continue;
case CMD_UP: