Mercurial > vim
comparison src/option.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 | ac75c145f0a9 |
children | 164d59ddd48a |
comparison
equal
deleted
inserted
replaced
27017:da790d50f73d | 27018:268f6a3511df |
---|---|
751 opt_idx = findoption((char_u *)name); | 751 opt_idx = findoption((char_u *)name); |
752 if (opt_idx >= 0) | 752 if (opt_idx >= 0) |
753 options[opt_idx].def_val[VI_DEFAULT] = (char_u *)(long_i)val; | 753 options[opt_idx].def_val[VI_DEFAULT] = (char_u *)(long_i)val; |
754 } | 754 } |
755 | 755 |
756 #if defined(FEAT_PROP_POPUP) || defined(PROTO) | |
756 /* | 757 /* |
757 * Set all window-local and buffer-local options to the Vim default. | 758 * Set all window-local and buffer-local options to the Vim default. |
758 * local-global options will use the global value. | 759 * local-global options will use the global value. |
759 * When "do_buffer" is FALSE don't set buffer-local options. | 760 * When "do_buffer" is FALSE don't set buffer-local options. |
760 */ | 761 */ |
782 | 783 |
783 unblock_autocmds(); | 784 unblock_autocmds(); |
784 curwin = save_curwin; | 785 curwin = save_curwin; |
785 curbuf = curwin->w_buffer; | 786 curbuf = curwin->w_buffer; |
786 } | 787 } |
788 #endif | |
787 | 789 |
788 #if defined(EXITFREE) || defined(PROTO) | 790 #if defined(EXITFREE) || defined(PROTO) |
789 /* | 791 /* |
790 * Free all options. | 792 * Free all options. |
791 */ | 793 */ |
5533 get_option_var(int opt_idx) | 5535 get_option_var(int opt_idx) |
5534 { | 5536 { |
5535 return options[opt_idx].var; | 5537 return options[opt_idx].var; |
5536 } | 5538 } |
5537 | 5539 |
5540 #if defined(FEAT_EVAL) || defined(PROTO) | |
5538 /* | 5541 /* |
5539 * Return the full name of the option at 'opt_idx' | 5542 * Return the full name of the option at 'opt_idx' |
5540 */ | 5543 */ |
5541 char_u * | 5544 char_u * |
5542 get_option_fullname(int opt_idx) | 5545 get_option_fullname(int opt_idx) |
5543 { | 5546 { |
5544 return (char_u *)options[opt_idx].fullname; | 5547 return (char_u *)options[opt_idx].fullname; |
5545 } | 5548 } |
5549 #endif | |
5546 | 5550 |
5547 /* | 5551 /* |
5548 * Get the value of 'equalprg', either the buffer-local one or the global one. | 5552 * Get the value of 'equalprg', either the buffer-local one or the global one. |
5549 */ | 5553 */ |
5550 char_u * | 5554 char_u * |