comparison 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
comparison
equal deleted inserted replaced
27017:da790d50f73d 27018:268f6a3511df
1089 ch_log(NULL, "SafeState: reset: %s", reason); 1089 ch_log(NULL, "SafeState: reset: %s", reason);
1090 #endif 1090 #endif
1091 was_safe = FALSE; 1091 was_safe = FALSE;
1092 } 1092 }
1093 1093
1094 #if defined(FEAT_EVAL) || defined(MESSAGE_QUEUE) || defined(PROTO)
1094 int 1095 int
1095 get_was_safe_state(void) 1096 get_was_safe_state(void)
1096 { 1097 {
1097 return was_safe; 1098 return was_safe;
1098 } 1099 }
1099 1100 #endif
1101
1102 #if defined(MESSAGE_QUEUE) || defined(PROTO)
1100 /* 1103 /*
1101 * Invoked when leaving code that invokes callbacks. Then trigger 1104 * Invoked when leaving code that invokes callbacks. Then trigger
1102 * SafeStateAgain, if it was safe when starting to wait for a character. 1105 * SafeStateAgain, if it was safe when starting to wait for a character.
1103 */ 1106 */
1104 void 1107 void
1135 else 1138 else
1136 ch_log(NULL, 1139 ch_log(NULL,
1137 "SafeState: back to waiting, not triggering SafeStateAgain"); 1140 "SafeState: back to waiting, not triggering SafeStateAgain");
1138 #endif 1141 #endif
1139 } 1142 }
1143 #endif
1140 1144
1141 1145
1142 /* 1146 /*
1143 * Main loop: Execute Normal mode commands until exiting Vim. 1147 * Main loop: Execute Normal mode commands until exiting Vim.
1144 * Also used to handle commands in the command-line window, until the window 1148 * Also used to handle commands in the command-line window, until the window