diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-04-30 16:48:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-30 16:48:00 +0200 |
commit | 3c23100130725bb79c04e933c505bbeda96fb3bb (patch) | |
tree | 6184115b0f11cec968966455ce1d3b2e81873f1b /src/nvim/ex_cmds2.c | |
parent | fcdf24d8be4abada88355538a23d771e41c77dd4 (diff) | |
download | rneovim-3c23100130725bb79c04e933c505bbeda96fb3bb.tar.gz rneovim-3c23100130725bb79c04e933c505bbeda96fb3bb.tar.bz2 rneovim-3c23100130725bb79c04e933c505bbeda96fb3bb.zip |
refactor: replace char_u variables and functions with char (#18288)
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 5af202c191..38007e5ad4 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -554,7 +554,7 @@ void dialog_changed(buf_T *buf, bool checkall) .forceit = false, }; - dialog_msg(buff, _("Save changes to \"%s\"?"), buf->b_fname); + dialog_msg((char *)buff, _("Save changes to \"%s\"?"), (char *)buf->b_fname); if (checkall) { ret = vim_dialog_yesnoallcancel(VIM_QUESTION, NULL, buff, 1); } else { @@ -610,8 +610,8 @@ bool dialog_close_terminal(buf_T *buf) { char_u buff[DIALOG_MSG_SIZE]; - dialog_msg(buff, _("Close \"%s\"?"), - (buf->b_fname != NULL) ? buf->b_fname : (char_u *)"?"); + dialog_msg((char *)buff, _("Close \"%s\"?"), + (buf->b_fname != NULL) ? (char *)buf->b_fname : "?"); int ret = vim_dialog_yesnocancel(VIM_QUESTION, NULL, buff, 1); @@ -972,7 +972,7 @@ static int do_arglist(char_u *str, int what, int after, bool will_edit) xfree(exp_files); } else { assert(what == AL_SET); - alist_set(ALIST(curwin), exp_count, exp_files, will_edit, NULL, 0); + alist_set(ALIST(curwin), exp_count, (char **)exp_files, will_edit, NULL, 0); } } @@ -1427,8 +1427,7 @@ void ex_listdo(exarg_T *eap) i++; // execute the command if (execute) { - do_cmdline(eap->arg, eap->getline, eap->cookie, - DOCMD_VERBOSE + DOCMD_NOWAIT); + do_cmdline((char *)eap->arg, eap->getline, eap->cookie, DOCMD_VERBOSE + DOCMD_NOWAIT); } if (eap->cmdidx == CMD_bufdo) { @@ -2086,7 +2085,7 @@ int do_source(char *fname, int check_other, int is_vimrc) sourcing_lnum = sourcing_lnum_backup; } else { // Call do_cmdline, which will call getsourceline() to get the lines. - do_cmdline(firstline, getsourceline, (void *)&cookie, + do_cmdline((char *)firstline, getsourceline, (void *)&cookie, DOCMD_VERBOSE|DOCMD_NOWAIT|DOCMD_REPEAT); } retval = OK; |