comparison src/globals.h @ 15636:6f1c7e9a6393 v8.1.0826

patch 8.1.0826: too many #ifdefs commit https://github.com/vim/vim/commit/29ddebef4038d2d2b3bc9d8d3b0109f4046d6fbf Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 26 17:28:26 2019 +0100 patch 8.1.0826: too many #ifdefs Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Jan 2019 17:30:15 +0100
parents 746b95fd25ad
children a3e2e7948ee4
comparison
equal deleted inserted replaced
15635:c51d2a06f5f9 15636:6f1c7e9a6393
769 EXTERN int can_si_back INIT(= FALSE); 769 EXTERN int can_si_back INIT(= FALSE);
770 #endif 770 #endif
771 771
772 EXTERN pos_T saved_cursor /* w_cursor before formatting text. */ 772 EXTERN pos_T saved_cursor /* w_cursor before formatting text. */
773 #ifdef DO_INIT 773 #ifdef DO_INIT
774 = INIT_POS_T(0, 0, 0) 774 = {0, 0, 0}
775 #endif 775 #endif
776 ; 776 ;
777 777
778 /* 778 /*
779 * Stuff for insert mode. 779 * Stuff for insert mode.
1064 EXTERN int autocmd_bufnr INIT(= 0); /* fnum for <abuf> on cmdline */ 1064 EXTERN int autocmd_bufnr INIT(= 0); /* fnum for <abuf> on cmdline */
1065 EXTERN char_u *autocmd_match INIT(= NULL); /* name for <amatch> on cmdline */ 1065 EXTERN char_u *autocmd_match INIT(= NULL); /* name for <amatch> on cmdline */
1066 EXTERN int did_cursorhold INIT(= FALSE); /* set when CursorHold t'gerd */ 1066 EXTERN int did_cursorhold INIT(= FALSE); /* set when CursorHold t'gerd */
1067 EXTERN pos_T last_cursormoved /* for CursorMoved event */ 1067 EXTERN pos_T last_cursormoved /* for CursorMoved event */
1068 # ifdef DO_INIT 1068 # ifdef DO_INIT
1069 = INIT_POS_T(0, 0, 0) 1069 = {0, 0, 0}
1070 # endif 1070 # endif
1071 ; 1071 ;
1072 1072
1073 EXTERN int postponed_split INIT(= 0); /* for CTRL-W CTRL-] command */ 1073 EXTERN int postponed_split INIT(= 0); /* for CTRL-W CTRL-] command */
1074 EXTERN int postponed_split_flags INIT(= 0); /* args for win_split() */ 1074 EXTERN int postponed_split_flags INIT(= 0); /* args for win_split() */
1333 EXTERN char psepcN INIT(= '/'); /* abnormal path separator character */ 1333 EXTERN char psepcN INIT(= '/'); /* abnormal path separator character */
1334 /* normal path separator string */ 1334 /* normal path separator string */
1335 EXTERN char pseps[2] INIT(= {'\\' COMMA 0}); 1335 EXTERN char pseps[2] INIT(= {'\\' COMMA 0});
1336 #endif 1336 #endif
1337 1337
1338 #ifdef FEAT_VIRTUALEDIT
1339 /* Set to TRUE when an operator is being executed with virtual editing, MAYBE 1338 /* Set to TRUE when an operator is being executed with virtual editing, MAYBE
1340 * when no operator is being executed, FALSE otherwise. */ 1339 * when no operator is being executed, FALSE otherwise. */
1341 EXTERN int virtual_op INIT(= MAYBE); 1340 EXTERN int virtual_op INIT(= MAYBE);
1342 #endif
1343 1341
1344 #ifdef FEAT_SYN_HL 1342 #ifdef FEAT_SYN_HL
1345 /* Display tick, incremented for each call to update_screen() */ 1343 /* Display tick, incremented for each call to update_screen() */
1346 EXTERN disptick_T display_tick INIT(= 0); 1344 EXTERN disptick_T display_tick INIT(= 0);
1347 #endif 1345 #endif