summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-20 15:30:40 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-20 15:30:40 +0100
commit113e10721f42fc2500b63fe95193f8665658a90c (patch)
tree4395acb733cc8d7a798df8f4a91c5c1afa084841 /src/misc2.c
parent1f20daa1d784e2d8ae13db5b9c8abbb648dd2a03 (diff)
downloadvim-git-113e10721f42fc2500b63fe95193f8665658a90c.tar.gz
patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785
Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 214a3a2bd..b1cf8b5e9 100644
--- 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, 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)
/*