0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4038: various code not used when features are disabled

Problem:    Various code not used when features are disabled.
Solution:   Add #ifdefs. (Dominique Pellé, closes #9491)
This commit is contained in:
Dominique Pelle
2022-01-08 12:41:16 +00:00
committed by Bram Moolenaar
parent 370791465e
commit 748b308eeb
35 changed files with 126 additions and 74 deletions

View File

@@ -319,6 +319,7 @@ get_user_commands(expand_T *xp UNUSED, int idx)
return NULL;
}
#ifdef FEAT_EVAL
/*
* Get the name of user command "idx". "cmdidx" can be CMD_USER or
* CMD_USER_BUF.
@@ -343,6 +344,7 @@ get_user_command_name(int idx, int cmdidx)
}
return NULL;
}
#endif
/*
* Function given to ExpandGeneric() to obtain the list of user address type
@@ -394,6 +396,7 @@ get_user_cmd_complete(expand_T *xp UNUSED, int idx)
return (char_u *)command_complete[idx].name;
}
#ifdef FEAT_EVAL
int
cmdcomplete_str_to_type(char_u *complete_str)
{
@@ -405,6 +408,7 @@ cmdcomplete_str_to_type(char_u *complete_str)
return EXPAND_NOTHING;
}
#endif
/*
* List user commands starting with "name[name_len]".