mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
vim-patch:9.1.1781: some functions could be defined static
Problem: some functions could be defined static
Solution: Change function definitions and make them static
(Yegappan Lakshmanan)
closes: vim/vim#18354
3a6cf6d53b
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -2632,7 +2632,7 @@ static int may_call_simple_func(const char *arg, typval_T *rettv)
|
|||||||
|
|
||||||
/// Handle zero level expression with optimization for a simple function call.
|
/// Handle zero level expression with optimization for a simple function call.
|
||||||
/// Same arguments and return value as eval0().
|
/// Same arguments and return value as eval0().
|
||||||
int eval0_simple_funccal(char *arg, typval_T *rettv, exarg_T *eap, evalarg_T *const evalarg)
|
static int eval0_simple_funccal(char *arg, typval_T *rettv, exarg_T *eap, evalarg_T *const evalarg)
|
||||||
{
|
{
|
||||||
int r = may_call_simple_func(arg, rettv);
|
int r = may_call_simple_func(arg, rettv);
|
||||||
|
|
||||||
|
@@ -1090,6 +1090,12 @@ static void ins_compl_insert_bytes(char *p, int len)
|
|||||||
compl_ins_end_col = curwin->w_cursor.col;
|
compl_ins_end_col = curwin->w_cursor.col;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get current completion leader length
|
||||||
|
static size_t ins_compl_leader_len(void)
|
||||||
|
{
|
||||||
|
return compl_leader.data != NULL ? compl_leader.size : compl_orig_text.size;
|
||||||
|
}
|
||||||
|
|
||||||
/// Checks if the column is within the currently inserted completion text
|
/// Checks if the column is within the currently inserted completion text
|
||||||
/// column range. If it is, it returns a special highlight attribute.
|
/// column range. If it is, it returns a special highlight attribute.
|
||||||
/// -1 means normal item.
|
/// -1 means normal item.
|
||||||
@@ -1740,12 +1746,6 @@ char *ins_compl_leader(void)
|
|||||||
return compl_leader.data != NULL ? compl_leader.data : compl_orig_text.data;
|
return compl_leader.data != NULL ? compl_leader.data : compl_orig_text.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get current completion leader length
|
|
||||||
size_t ins_compl_leader_len(void)
|
|
||||||
{
|
|
||||||
return compl_leader.data != NULL ? compl_leader.size : compl_orig_text.size;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Add any identifiers that match the given pattern "pat" in the list of
|
/// Add any identifiers that match the given pattern "pat" in the list of
|
||||||
/// dictionary files "dict_start" to the list of completions.
|
/// dictionary files "dict_start" to the list of completions.
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user