diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-11-30 20:20:56 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-11-30 20:20:56 +0000 |
commit | 3b8c7083b265c35861a7f96b01c079471ff45152 (patch) | |
tree | 71d5b80407f912d39de8532da6f6d817bc2e8d11 /src/globals.h | |
parent | 4c5678ff0c376661d4a8183a5a074a1203413b9d (diff) |
patch 9.0.0978: build errors without the +channel featurev9.0.0978
Problem: Build errors without the +channel feature. (John Marriott)
Solution: Adjust #ifdefs.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/globals.h b/src/globals.h index 0cc7c9bc47..8fb4340b16 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1998,23 +1998,25 @@ EXTERN char *ch_part_names[] # endif ; -EXTERN int did_repeated_msg INIT(= 0); -# define REPEATED_MSG_LOOKING 1 -# define REPEATED_MSG_SAFESTATE 2 - -// This flag is set when outputting a terminal control code and reset in -// out_flush() when characters have been written. -EXTERN int ch_log_output INIT(= FALSE); - // Whether a redraw is needed for appending a line to a buffer. EXTERN int channel_need_redraw INIT(= FALSE); -#define FOR_ALL_CHANNELS(ch) \ +# define FOR_ALL_CHANNELS(ch) \ for ((ch) = first_channel; (ch) != NULL; (ch) = (ch)->ch_next) -#define FOR_ALL_JOBS(job) \ +# define FOR_ALL_JOBS(job) \ for ((job) = first_job; (job) != NULL; (job) = (job)->jv_next) #endif +#ifdef FEAT_EVAL +// This flag is set when outputting a terminal control code and reset in +// out_flush() when characters have been written. +EXTERN int ch_log_output INIT(= FALSE); + +EXTERN int did_repeated_msg INIT(= 0); +# define REPEATED_MSG_LOOKING 1 +# define REPEATED_MSG_SAFESTATE 2 +#endif + #if defined(FEAT_DIFF) #define FOR_ALL_DIFFBLOCKS_IN_TAB(tp, dp) \ for ((dp) = (tp)->tp_first_diff; (dp) != NULL; (dp) = (dp)->df_next) |