comparison src/vim9script.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 8433e5c87651
children c8809b8d19de
comparison
equal deleted inserted replaced
27017:da790d50f73d 27018:268f6a3511df
113 // No check for this being the first command, it doesn't matter. 113 // No check for this being the first command, it doesn't matter.
114 current_sctx.sc_version = SCRIPT_VERSION_VIM9; 114 current_sctx.sc_version = SCRIPT_VERSION_VIM9;
115 #endif 115 #endif
116 } 116 }
117 117
118 #if defined(FEAT_EVAL) || defined(PROTO)
118 /* 119 /*
119 * When in Vim9 script give an error and return FAIL. 120 * When in Vim9 script give an error and return FAIL.
120 */ 121 */
121 int 122 int
122 not_in_vim9(exarg_T *eap) 123 not_in_vim9(exarg_T *eap)
157 emsg(_(e_cannot_use_hash_curly_to_start_comment)); 158 emsg(_(e_cannot_use_hash_curly_to_start_comment));
158 return TRUE; 159 return TRUE;
159 } 160 }
160 return FALSE; 161 return FALSE;
161 } 162 }
163 #endif
162 164
163 /* 165 /*
164 * Return TRUE if "p" points at a "#" not followed by one '{'. 166 * Return TRUE if "p" points at a "#" not followed by one '{'.
165 * Does not check for white space. 167 * Does not check for white space.
166 */ 168 */