comparison src/ex_cmds2.c @ 16225:9cbc5ff516ee v8.1.1117

patch 8.1.1117: build failure without the +eval feature commit https://github.com/vim/vim/commit/1cd4dc444ad260e4ff201152ecff2005dbd15410 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 4 19:06:14 2019 +0200 patch 8.1.1117: build failure without the +eval feature Problem: Build failure without the +eval feature. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Apr 2019 19:15:03 +0200
parents abb67309c1ca
children 6ee80f3b5ea9
comparison
equal deleted inserted replaced
16224:40bda6354bed 16225:9cbc5ff516ee
5113 * ":scriptversion": Set Vim script version for a sourced script. 5113 * ":scriptversion": Set Vim script version for a sourced script.
5114 */ 5114 */
5115 void 5115 void
5116 ex_scriptversion(exarg_T *eap UNUSED) 5116 ex_scriptversion(exarg_T *eap UNUSED)
5117 { 5117 {
5118 #ifdef FEAT_EVAL
5118 int nr; 5119 int nr;
5119 5120
5120 if (!getline_equal(eap->getline, eap->cookie, getsourceline)) 5121 if (!getline_equal(eap->getline, eap->cookie, getsourceline))
5121 { 5122 {
5122 emsg(_("E984: :scriptversion used outside of a sourced file")); 5123 emsg(_("E984: :scriptversion used outside of a sourced file"));
5128 emsg(_(e_invarg)); 5129 emsg(_(e_invarg));
5129 else if (nr > 2) 5130 else if (nr > 2)
5130 semsg(_("E999: scriptversion not supported: %d"), nr); 5131 semsg(_("E999: scriptversion not supported: %d"), nr);
5131 else 5132 else
5132 current_sctx.sc_version = nr; 5133 current_sctx.sc_version = nr;
5134 #endif
5133 } 5135 }
5134 5136
5135 #if defined(FEAT_EVAL) || defined(PROTO) 5137 #if defined(FEAT_EVAL) || defined(PROTO)
5136 /* 5138 /*
5137 * ":finish": Mark a sourced file as finished. 5139 * ":finish": Mark a sourced file as finished.