Mercurial > vim
comparison src/ops.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 |
---|---|
199 op_on_lines(int op) | 199 op_on_lines(int op) |
200 { | 200 { |
201 return opchars[op][2] & OPF_LINES; | 201 return opchars[op][2] & OPF_LINES; |
202 } | 202 } |
203 | 203 |
204 #if defined(FEAT_JOB_CHANNEL) || defined(PROTO) | |
204 /* | 205 /* |
205 * Return TRUE if operator "op" changes text. | 206 * Return TRUE if operator "op" changes text. |
206 */ | 207 */ |
207 int | 208 int |
208 op_is_change(int op) | 209 op_is_change(int op) |
209 { | 210 { |
210 return opchars[op][2] & OPF_CHANGE; | 211 return opchars[op][2] & OPF_CHANGE; |
211 } | 212 } |
213 #endif | |
212 | 214 |
213 /* | 215 /* |
214 * Get first operator command character. | 216 * Get first operator command character. |
215 * Returns 'g' or 'z' if there is another command character. | 217 * Returns 'g' or 'z' if there is another command character. |
216 */ | 218 */ |
1048 /* Send text written to clipboard register to the clipboard. */ | 1050 /* Send text written to clipboard register to the clipboard. */ |
1049 may_set_selection(); | 1051 may_set_selection(); |
1050 #endif | 1052 #endif |
1051 } | 1053 } |
1052 | 1054 |
1055 #if (defined(FEAT_CLIPBOARD) && defined(FEAT_X11) && defined(USE_SYSTEM)) \ | |
1056 || defined(PROTO) | |
1053 void | 1057 void |
1054 free_register(void *reg) | 1058 free_register(void *reg) |
1055 { | 1059 { |
1056 yankreg_T tmp; | 1060 yankreg_T tmp; |
1057 | 1061 |
1059 *y_current = *(yankreg_T *)reg; | 1063 *y_current = *(yankreg_T *)reg; |
1060 free_yank_all(); | 1064 free_yank_all(); |
1061 vim_free(reg); | 1065 vim_free(reg); |
1062 *y_current = tmp; | 1066 *y_current = tmp; |
1063 } | 1067 } |
1068 #endif | |
1064 | 1069 |
1065 #if defined(FEAT_MOUSE) || defined(PROTO) | 1070 #if defined(FEAT_MOUSE) || defined(PROTO) |
1066 /* | 1071 /* |
1067 * return TRUE if the current yank register has type MLINE | 1072 * return TRUE if the current yank register has type MLINE |
1068 */ | 1073 */ |