Mercurial > vim
comparison src/scriptfile.c @ 24876:c4ad84c7e15f v8.2.2976
patch 8.2.2976: build failure without the +eval feature
Commit: https://github.com/vim/vim/commit/8de901e1f1b051e02a61ae76ad7c925e4c0642e5
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 11 22:21:24 2021 +0200
patch 8.2.2976: build failure without the +eval feature
Problem: Build failure without the +eval feature.
Solution: Add #ifdefs.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 11 Jun 2021 22:30:03 +0200 |
parents | 14b0b35d8488 |
children | 8b8470b511f5 |
comparison
equal
deleted
inserted
replaced
24875:14fda88ab35a | 24876:c4ad84c7e15f |
---|---|
1117 static int last_current_SID_seq = 0; | 1117 static int last_current_SID_seq = 0; |
1118 funccal_entry_T funccalp_entry; | 1118 funccal_entry_T funccalp_entry; |
1119 int save_debug_break_level = debug_break_level; | 1119 int save_debug_break_level = debug_break_level; |
1120 int sid; | 1120 int sid; |
1121 scriptitem_T *si = NULL; | 1121 scriptitem_T *si = NULL; |
1122 int save_estack_compiling = estack_compiling; | |
1122 #endif | 1123 #endif |
1123 #ifdef STARTUPTIME | 1124 #ifdef STARTUPTIME |
1124 struct timeval tv_rel; | 1125 struct timeval tv_rel; |
1125 struct timeval tv_start; | 1126 struct timeval tv_start; |
1126 #endif | 1127 #endif |
1127 #ifdef FEAT_PROFILE | 1128 #ifdef FEAT_PROFILE |
1128 proftime_T wait_start; | 1129 proftime_T wait_start; |
1129 #endif | 1130 #endif |
1130 int trigger_source_post = FALSE; | 1131 int trigger_source_post = FALSE; |
1131 int save_estack_compiling = estack_compiling; | |
1132 ESTACK_CHECK_DECLARATION | 1132 ESTACK_CHECK_DECLARATION |
1133 | 1133 |
1134 p = expand_env_save(fname); | 1134 p = expand_env_save(fname); |
1135 if (p == NULL) | 1135 if (p == NULL) |
1136 return retval; | 1136 return retval; |
1141 if (mch_isdir(fname_exp)) | 1141 if (mch_isdir(fname_exp)) |
1142 { | 1142 { |
1143 smsg(_("Cannot source a directory: \"%s\""), fname); | 1143 smsg(_("Cannot source a directory: \"%s\""), fname); |
1144 goto theend; | 1144 goto theend; |
1145 } | 1145 } |
1146 #ifdef FEAT_EVAL | |
1146 estack_compiling = FALSE; | 1147 estack_compiling = FALSE; |
1147 | 1148 |
1148 #ifdef FEAT_EVAL | |
1149 // See if we loaded this script before. | 1149 // See if we loaded this script before. |
1150 for (sid = script_items.ga_len; sid > 0; --sid) | 1150 for (sid = script_items.ga_len; sid > 0; --sid) |
1151 { | 1151 { |
1152 // We used to check inode here, but that doesn't work: | 1152 // We used to check inode here, but that doesn't work: |
1153 // - If a script is edited and written, it may get a different | 1153 // - If a script is edited and written, it may get a different |
1508 if (trigger_source_post) | 1508 if (trigger_source_post) |
1509 apply_autocmds(EVENT_SOURCEPOST, fname_exp, fname_exp, FALSE, curbuf); | 1509 apply_autocmds(EVENT_SOURCEPOST, fname_exp, fname_exp, FALSE, curbuf); |
1510 | 1510 |
1511 theend: | 1511 theend: |
1512 vim_free(fname_exp); | 1512 vim_free(fname_exp); |
1513 #ifdef FEAT_EVAL | |
1513 estack_compiling = save_estack_compiling; | 1514 estack_compiling = save_estack_compiling; |
1515 #endif | |
1514 return retval; | 1516 return retval; |
1515 } | 1517 } |
1516 | 1518 |
1517 #if defined(FEAT_EVAL) || defined(PROTO) | 1519 #if defined(FEAT_EVAL) || defined(PROTO) |
1518 | 1520 |