Mercurial > vim
comparison src/option.c @ 15555:d89c5b339c2a v8.1.0785
patch 8.1.0785: depending on the configuration some functions are unused
commit https://github.com/vim/vim/commit/113e10721f42fc2500b63fe95193f8665658a90c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 20 15:30:40 2019 +0100
patch 8.1.0785: depending on the configuration some functions are unused
Problem: Depending on the configuration some functions are unused.
Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle,
closes #3822)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 20 Jan 2019 15:45:07 +0100 |
parents | dd725a8ab112 |
children | 536dd2bc5ac9 |
comparison
equal
deleted
inserted
replaced
15554:496f146a0836 | 15555:d89c5b339c2a |
---|---|
10697 sc_col = Columns; | 10697 sc_col = Columns; |
10698 ru_col = Columns; | 10698 ru_col = Columns; |
10699 #endif | 10699 #endif |
10700 } | 10700 } |
10701 | 10701 |
10702 #if defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) || defined(PROTO) | |
10702 /* | 10703 /* |
10703 * Unset local option value, similar to ":set opt<". | 10704 * Unset local option value, similar to ":set opt<". |
10704 */ | 10705 */ |
10705 void | 10706 void |
10706 unset_global_local_option(char_u *name, void *from) | 10707 unset_global_local_option(char_u *name, void *from) |
10798 clear_string_option(&buf->b_p_menc); | 10799 clear_string_option(&buf->b_p_menc); |
10799 break; | 10800 break; |
10800 #endif | 10801 #endif |
10801 } | 10802 } |
10802 } | 10803 } |
10804 #endif | |
10803 | 10805 |
10804 /* | 10806 /* |
10805 * Get pointer to option variable, depending on local or global scope. | 10807 * Get pointer to option variable, depending on local or global scope. |
10806 */ | 10808 */ |
10807 static char_u * | 10809 static char_u * |
13120 return FALSE; | 13122 return FALSE; |
13121 | 13123 |
13122 return TRUE; | 13124 return TRUE; |
13123 } | 13125 } |
13124 | 13126 |
13127 #if defined(FEAT_BEVAL) || defined(PROTO) | |
13125 /* | 13128 /* |
13126 * Copy a tabstop array, allocating space for the new array. | 13129 * Copy a tabstop array, allocating space for the new array. |
13127 */ | 13130 */ |
13128 int * | 13131 int * |
13129 tabstop_copy(int *oldts) | 13132 tabstop_copy(int *oldts) |
13138 for (t = 0; t <= oldts[0]; ++t) | 13141 for (t = 0; t <= oldts[0]; ++t) |
13139 newts[t] = oldts[t]; | 13142 newts[t] = oldts[t]; |
13140 | 13143 |
13141 return newts; | 13144 return newts; |
13142 } | 13145 } |
13146 #endif | |
13143 | 13147 |
13144 /* | 13148 /* |
13145 * Return a count of the number of tabstops. | 13149 * Return a count of the number of tabstops. |
13146 */ | 13150 */ |
13147 int | 13151 int |