Mercurial > vim
diff src/fileio.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 | 1ec942f1b648 |
line wrap: on
line diff
--- 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 #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 /*