mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -1034,7 +1034,7 @@ char *set_context_in_menu_cmd(expand_T *xp, const char *cmd, char *arg, bool for
|
||||
* Function given to ExpandGeneric() to obtain the list of (sub)menus (not
|
||||
* entries).
|
||||
*/
|
||||
char_u *get_menu_name(expand_T *xp, int idx)
|
||||
char *get_menu_name(expand_T *xp, int idx)
|
||||
{
|
||||
static vimmenu_T *menu = NULL;
|
||||
char *str;
|
||||
@@ -1076,14 +1076,14 @@ char_u *get_menu_name(expand_T *xp, int idx)
|
||||
|
||||
should_advance = !should_advance;
|
||||
|
||||
return (char_u *)str;
|
||||
return str;
|
||||
}
|
||||
|
||||
/*
|
||||
* Function given to ExpandGeneric() to obtain the list of menus and menu
|
||||
* entries.
|
||||
*/
|
||||
char_u *get_menu_names(expand_T *xp, int idx)
|
||||
char *get_menu_names(expand_T *xp, int idx)
|
||||
{
|
||||
static vimmenu_T *menu = NULL;
|
||||
#define TBUFFER_LEN 256
|
||||
@@ -1143,7 +1143,7 @@ char_u *get_menu_names(expand_T *xp, int idx)
|
||||
|
||||
should_advance = !should_advance;
|
||||
|
||||
return (char_u *)str;
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user