mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.1.0785: depending on the configuration some functions are unused
Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
This commit is contained in:
@@ -1033,6 +1033,7 @@ theend:
|
||||
/*
|
||||
* lalloc() with an ID for alloc_fail().
|
||||
*/
|
||||
#if defined(FEAT_SIGNS) || defined(PROTO)
|
||||
char_u *
|
||||
lalloc_id(long_u size, int message, alloc_id_T id UNUSED)
|
||||
{
|
||||
@@ -1042,6 +1043,7 @@ lalloc_id(long_u size, int message, alloc_id_T id UNUSED)
|
||||
#endif
|
||||
return (lalloc((long_u)size, message));
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(MEM_PROFILE) || defined(PROTO)
|
||||
/*
|
||||
@@ -2135,6 +2137,7 @@ ga_grow(garray_T *gap, int n)
|
||||
return OK;
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(FEAT_SEARCHPATH) || defined(PROTO)
|
||||
/*
|
||||
* For a growing array that contains a list of strings: concatenate all the
|
||||
* strings with a separating "sep".
|
||||
@@ -2170,6 +2173,7 @@ ga_concat_strings(garray_T *gap, char *sep)
|
||||
}
|
||||
return s;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_VIMINFO) || defined(FEAT_EVAL) || defined(PROTO)
|
||||
/*
|
||||
|
Reference in New Issue
Block a user