Mercurial > vim
diff src/main.c @ 27018:268f6a3511df v8.2.4038
patch 8.2.4038: various code not used when features are disabled
Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sat Jan 8 12:41:16 2022 +0000
patch 8.2.4038: various code not used when features are disabled
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Jan 2022 13:45:04 +0100 |
parents | d02d40f0261c |
children | 48dbb16eea52 |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -1091,12 +1091,15 @@ state_no_longer_safe(char *reason UNUSED was_safe = FALSE; } +#if defined(FEAT_EVAL) || defined(MESSAGE_QUEUE) || defined(PROTO) int get_was_safe_state(void) { return was_safe; } - +#endif + +#if defined(MESSAGE_QUEUE) || defined(PROTO) /* * Invoked when leaving code that invokes callbacks. Then trigger * SafeStateAgain, if it was safe when starting to wait for a character. @@ -1137,6 +1140,7 @@ may_trigger_safestateagain(void) "SafeState: back to waiting, not triggering SafeStateAgain"); #endif } +#endif /*