summaryrefslogtreecommitdiffstats
path: root/src/fileio.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/fileio.c
parent1f20daa1d784e2d8ae13db5b9c8abbb648dd2a03 (diff)
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/fileio.c')
-rw-r--r--src/fileio.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 168c26ed36..dfe1ef962a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -9303,6 +9303,7 @@ has_cursormoved(void)
return (first_autopat[(int)EVENT_CURSORMOVED] != NULL);
}
+#if defined(FEAT_CONCEAL) || defined(PROTO)
/*
* Return TRUE when there is a CursorMovedI autocommand defined.
*/
@@ -9311,6 +9312,7 @@ has_cursormovedI(void)
{
return (first_autopat[(int)EVENT_CURSORMOVEDI] != NULL);
}
+#endif
/*
* Return TRUE when there is a TextChanged autocommand defined.
@@ -9330,6 +9332,7 @@ has_textchangedI(void)
return (first_autopat[(int)EVENT_TEXTCHANGEDI] != NULL);
}
+#if defined(FEAT_INS_EXPAND) || defined(PROTO)
/*
* Return TRUE when there is a TextChangedP autocommand defined.
*/
@@ -9338,6 +9341,7 @@ has_textchangedP(void)
{
return (first_autopat[(int)EVENT_TEXTCHANGEDP] != NULL);
}
+#endif
/*
* Return TRUE when there is an InsertCharPre autocommand defined.
@@ -9366,6 +9370,7 @@ has_funcundefined(void)
return (first_autopat[(int)EVENT_FUNCUNDEFINED] != NULL);
}
+#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Return TRUE when there is a TextYankPost autocommand defined.
*/
@@ -9374,6 +9379,7 @@ has_textyankpost(void)
{
return (first_autopat[(int)EVENT_TEXTYANKPOST] != NULL);
}
+#endif
/*
* Execute autocommands for "event" and file name "fname".
@@ -9823,11 +9829,14 @@ unblock_autocmds(void)
# endif
}
+#if defined(FEAT_EVAL) && (defined(FEAT_XIM) || defined(IME_WITHOUT_XIM)) \
+ || defined(PROTO)
int
is_autocmd_blocked(void)
{
return autocmd_blocked != 0;
}
+#endif
/*
* Find next autocommand pattern that matches.
@@ -10088,6 +10097,7 @@ get_event_name(expand_T *xp UNUSED, int idx)
#endif /* FEAT_CMDL_COMPL */
+#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Return TRUE if autocmd is supported.
*/
@@ -10196,6 +10206,7 @@ theend:
vim_free(arg_save);
return retval;
}
+#endif
/*