Mercurial > vim
comparison src/cmdhist.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 | 7f150a4936f2 |
children | db0939444c96 |
comparison
equal
deleted
inserted
replaced
27017:da790d50f73d | 27018:268f6a3511df |
---|---|
35 get_histentry(int hist_type) | 35 get_histentry(int hist_type) |
36 { | 36 { |
37 return history[hist_type]; | 37 return history[hist_type]; |
38 } | 38 } |
39 | 39 |
40 #if defined(FEAT_VIMINFO) || defined(PROTO) | |
40 void | 41 void |
41 set_histentry(int hist_type, histentry_T *entry) | 42 set_histentry(int hist_type, histentry_T *entry) |
42 { | 43 { |
43 history[hist_type] = entry; | 44 history[hist_type] = entry; |
44 } | 45 } |
46 #endif | |
45 | 47 |
46 int * | 48 int * |
47 get_hisidx(int hist_type) | 49 get_hisidx(int hist_type) |
48 { | 50 { |
49 return &hisidx[hist_type]; | 51 return &hisidx[hist_type]; |
50 } | 52 } |
51 | 53 |
54 #if defined(FEAT_VIMINFO) || defined(PROTO) | |
52 int * | 55 int * |
53 get_hisnum(int hist_type) | 56 get_hisnum(int hist_type) |
54 { | 57 { |
55 return &hisnum[hist_type]; | 58 return &hisnum[hist_type]; |
56 } | 59 } |
60 #endif | |
57 | 61 |
58 /* | 62 /* |
59 * Translate a history character to the associated type number. | 63 * Translate a history character to the associated type number. |
60 */ | 64 */ |
61 int | 65 int |