Mercurial > vim
comparison src/globals.h @ 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 | 8dbdd68627bd |
children | 5b267700e6ab |
comparison
equal
deleted
inserted
replaced
27017:da790d50f73d | 27018:268f6a3511df |
---|---|
438 EXTERN type_T t_dict_number INIT6(VAR_DICT, 0, 0, TTFLAG_STATIC, &t_number, NULL); | 438 EXTERN type_T t_dict_number INIT6(VAR_DICT, 0, 0, TTFLAG_STATIC, &t_number, NULL); |
439 EXTERN type_T t_dict_string INIT6(VAR_DICT, 0, 0, TTFLAG_STATIC, &t_string, NULL); | 439 EXTERN type_T t_dict_string INIT6(VAR_DICT, 0, 0, TTFLAG_STATIC, &t_string, NULL); |
440 | 440 |
441 #endif | 441 #endif |
442 | 442 |
443 #ifdef FEAT_EVAL | |
443 EXTERN int did_source_packages INIT(= FALSE); | 444 EXTERN int did_source_packages INIT(= FALSE); |
445 #endif | |
444 | 446 |
445 // Magic number used for hashitem "hi_key" value indicating a deleted item. | 447 // Magic number used for hashitem "hi_key" value indicating a deleted item. |
446 // Only the address is used. | 448 // Only the address is used. |
447 EXTERN char_u hash_removed; | 449 EXTERN char_u hash_removed; |
448 | 450 |
1151 EXTERN int mapped_ctrl_c INIT(= FALSE); // modes where CTRL-C is mapped | 1153 EXTERN int mapped_ctrl_c INIT(= FALSE); // modes where CTRL-C is mapped |
1152 EXTERN int ctrl_c_interrupts INIT(= TRUE); // CTRL-C sets got_int | 1154 EXTERN int ctrl_c_interrupts INIT(= TRUE); // CTRL-C sets got_int |
1153 | 1155 |
1154 EXTERN cmdmod_T cmdmod; // Ex command modifiers | 1156 EXTERN cmdmod_T cmdmod; // Ex command modifiers |
1155 | 1157 |
1158 #ifdef FEAT_EVAL | |
1156 EXTERN int is_export INIT(= FALSE); // :export {cmd} | 1159 EXTERN int is_export INIT(= FALSE); // :export {cmd} |
1160 #endif | |
1157 | 1161 |
1158 EXTERN int msg_silent INIT(= 0); // don't print messages | 1162 EXTERN int msg_silent INIT(= 0); // don't print messages |
1159 EXTERN int emsg_silent INIT(= 0); // don't print error messages | 1163 EXTERN int emsg_silent INIT(= 0); // don't print error messages |
1160 #ifdef FEAT_EVAL | 1164 #ifdef FEAT_EVAL |
1161 EXTERN int emsg_silent_def INIT(= 0); // value of emsg_silent when a :def | 1165 EXTERN int emsg_silent_def INIT(= 0); // value of emsg_silent when a :def |
1188 #ifdef DO_INIT | 1192 #ifdef DO_INIT |
1189 = {NULL, NULL, 0, 0, 0, 0, 0, 0, 0} | 1193 = {NULL, NULL, 0, 0, 0, 0, 0, 0, 0} |
1190 #endif | 1194 #endif |
1191 ; | 1195 ; |
1192 EXTERN int ex_normal_busy INIT(= 0); // recursiveness of ex_normal() | 1196 EXTERN int ex_normal_busy INIT(= 0); // recursiveness of ex_normal() |
1197 #ifdef FEAT_EVAL | |
1193 EXTERN int in_feedkeys INIT(= 0); // ex_normal_busy set in feedkeys() | 1198 EXTERN int in_feedkeys INIT(= 0); // ex_normal_busy set in feedkeys() |
1199 #endif | |
1194 EXTERN int ex_normal_lock INIT(= 0); // forbid use of ex_normal() | 1200 EXTERN int ex_normal_lock INIT(= 0); // forbid use of ex_normal() |
1195 | 1201 |
1196 #ifdef FEAT_EVAL | 1202 #ifdef FEAT_EVAL |
1197 EXTERN int ignore_script INIT(= FALSE); // ignore script input | 1203 EXTERN int ignore_script INIT(= FALSE); // ignore script input |
1198 #endif | 1204 #endif |
1392 * Also used for ":spellrepall". | 1398 * Also used for ":spellrepall". |
1393 */ | 1399 */ |
1394 EXTERN long sub_nsubs; // total number of substitutions | 1400 EXTERN long sub_nsubs; // total number of substitutions |
1395 EXTERN linenr_T sub_nlines; // total number of lines changed | 1401 EXTERN linenr_T sub_nlines; // total number of lines changed |
1396 | 1402 |
1403 #ifdef FEAT_EVAL | |
1397 // Used when a compiled :substitute has an expression. | 1404 // Used when a compiled :substitute has an expression. |
1398 EXTERN struct subs_expr_S *substitute_instr INIT(= NULL); | 1405 EXTERN struct subs_expr_S *substitute_instr INIT(= NULL); |
1406 #endif | |
1399 | 1407 |
1400 // table to store parsed 'wildmode' | 1408 // table to store parsed 'wildmode' |
1401 EXTERN char_u wim_flags[4]; | 1409 EXTERN char_u wim_flags[4]; |
1402 | 1410 |
1403 #if defined(FEAT_STL_OPT) | 1411 #if defined(FEAT_STL_OPT) |
1586 * Some messages that can be shared are included here. | 1594 * Some messages that can be shared are included here. |
1587 */ | 1595 */ |
1588 EXTERN char top_bot_msg[] INIT(= N_("search hit TOP, continuing at BOTTOM")); | 1596 EXTERN char top_bot_msg[] INIT(= N_("search hit TOP, continuing at BOTTOM")); |
1589 EXTERN char bot_top_msg[] INIT(= N_("search hit BOTTOM, continuing at TOP")); | 1597 EXTERN char bot_top_msg[] INIT(= N_("search hit BOTTOM, continuing at TOP")); |
1590 | 1598 |
1599 #ifdef FEAT_EVAL | |
1591 EXTERN char line_msg[] INIT(= N_(" line ")); | 1600 EXTERN char line_msg[] INIT(= N_(" line ")); |
1601 #endif | |
1592 | 1602 |
1593 #ifdef FEAT_CRYPT | 1603 #ifdef FEAT_CRYPT |
1594 EXTERN char need_key_msg[] INIT(= N_("Need encryption key for \"%s\"")); | 1604 EXTERN char need_key_msg[] INIT(= N_("Need encryption key for \"%s\"")); |
1595 #endif | 1605 #endif |
1596 | 1606 |