Mercurial > vim
diff src/misc2.c @ 15555:d89c5b339c2a v8.1.0785
patch 8.1.0785: depending on the configuration some functions are unused
commit https://github.com/vim/vim/commit/113e10721f42fc2500b63fe95193f8665658a90c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 20 15:30:40 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 20 Jan 2019 15:45:07 +0100 |
parents | dd725a8ab112 |
children | 536dd2bc5ac9 |
line wrap: on
line diff
--- a/src/misc2.c +++ b/src/misc2.c @@ -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, allo #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 *s } return s; } +#endif #if defined(FEAT_VIMINFO) || defined(FEAT_EVAL) || defined(PROTO) /*