Mercurial > vim
comparison src/misc2.c @ 17266:a9556c0ba457 v8.1.1632
patch 8.1.1632: build with EXITFREE but without +arabic fails
commit https://github.com/vim/vim/commit/48ac671fe5cb5a7c2d5263d2f122e5e903022e30
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 4 20:26:21 2019 +0200
patch 8.1.1632: build with EXITFREE but without +arabic fails
Problem: Build with EXITFREE but without +arabic fails.
Solution: Rename the function and adjust #ifdefs. (closes https://github.com/vim/vim/issues/4613)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 04 Jul 2019 20:30:05 +0200 |
parents | 041156ce1d22 |
children | d3b15a3789e1 |
comparison
equal
deleted
inserted
replaced
17265:77765a325abd | 17266:a9556c0ba457 |
---|---|
1058 # if defined(FEAT_SPELL) | 1058 # if defined(FEAT_SPELL) |
1059 /* Free all spell info. */ | 1059 /* Free all spell info. */ |
1060 spell_free_all(); | 1060 spell_free_all(); |
1061 # endif | 1061 # endif |
1062 | 1062 |
1063 #if defined(FEAT_INS_EXPAND) && defined(FEAT_BEVAL_TERM) | 1063 # if defined(FEAT_INS_EXPAND) && defined(FEAT_BEVAL_TERM) |
1064 ui_remove_balloon(); | 1064 ui_remove_balloon(); |
1065 # endif | 1065 # endif |
1066 | 1066 |
1067 // Clear user commands (before deleting buffers). | 1067 // Clear user commands (before deleting buffers). |
1068 ex_comclear(NULL); | 1068 ex_comclear(NULL); |
1090 # if defined(FEAT_PROFILE) | 1090 # if defined(FEAT_PROFILE) |
1091 do_cmdline_cmd((char_u *)"profdel *"); | 1091 do_cmdline_cmd((char_u *)"profdel *"); |
1092 # endif | 1092 # endif |
1093 # if defined(FEAT_KEYMAP) | 1093 # if defined(FEAT_KEYMAP) |
1094 do_cmdline_cmd((char_u *)"set keymap="); | 1094 do_cmdline_cmd((char_u *)"set keymap="); |
1095 #endif | 1095 # endif |
1096 } | 1096 } |
1097 | 1097 |
1098 # ifdef FEAT_TITLE | 1098 # ifdef FEAT_TITLE |
1099 free_titles(); | 1099 free_titles(); |
1100 # endif | 1100 # endif |
1147 /* Clear cmdline history. */ | 1147 /* Clear cmdline history. */ |
1148 p_hi = 0; | 1148 p_hi = 0; |
1149 # ifdef FEAT_CMDHIST | 1149 # ifdef FEAT_CMDHIST |
1150 init_history(); | 1150 init_history(); |
1151 # endif | 1151 # endif |
1152 #ifdef FEAT_TEXT_PROP | 1152 # ifdef FEAT_TEXT_PROP |
1153 clear_global_prop_types(); | 1153 clear_global_prop_types(); |
1154 #endif | 1154 # endif |
1155 | 1155 |
1156 #ifdef FEAT_QUICKFIX | 1156 # ifdef FEAT_QUICKFIX |
1157 { | 1157 { |
1158 win_T *win; | 1158 win_T *win; |
1159 tabpage_T *tab; | 1159 tabpage_T *tab; |
1160 | 1160 |
1161 qf_free_all(NULL); | 1161 qf_free_all(NULL); |
1162 // Free all location lists | 1162 // Free all location lists |
1163 FOR_ALL_TAB_WINDOWS(tab, win) | 1163 FOR_ALL_TAB_WINDOWS(tab, win) |
1164 qf_free_all(win); | 1164 qf_free_all(win); |
1165 } | 1165 } |
1166 #endif | 1166 # endif |
1167 | 1167 |
1168 // Close all script inputs. | 1168 // Close all script inputs. |
1169 close_all_scripts(); | 1169 close_all_scripts(); |
1170 | 1170 |
1171 if (curwin != NULL) | 1171 if (curwin != NULL) |
1175 /* Free all option values. Must come after closing windows. */ | 1175 /* Free all option values. Must come after closing windows. */ |
1176 free_all_options(); | 1176 free_all_options(); |
1177 | 1177 |
1178 /* Free all buffers. Reset 'autochdir' to avoid accessing things that | 1178 /* Free all buffers. Reset 'autochdir' to avoid accessing things that |
1179 * were freed already. */ | 1179 * were freed already. */ |
1180 #ifdef FEAT_AUTOCHDIR | 1180 # ifdef FEAT_AUTOCHDIR |
1181 p_acd = FALSE; | 1181 p_acd = FALSE; |
1182 #endif | 1182 # endif |
1183 for (buf = firstbuf; buf != NULL; ) | 1183 for (buf = firstbuf; buf != NULL; ) |
1184 { | 1184 { |
1185 bufref_T bufref; | 1185 bufref_T bufref; |
1186 | 1186 |
1187 set_bufref(&bufref, buf); | 1187 set_bufref(&bufref, buf); |
1191 buf = nextbuf; /* didn't work, try next one */ | 1191 buf = nextbuf; /* didn't work, try next one */ |
1192 else | 1192 else |
1193 buf = firstbuf; | 1193 buf = firstbuf; |
1194 } | 1194 } |
1195 | 1195 |
1196 free_cmdline_buf(); | 1196 # ifdef FEAT_ARABIC |
1197 free_arshape_buf(); | |
1198 # endif | |
1197 | 1199 |
1198 /* Clear registers. */ | 1200 /* Clear registers. */ |
1199 clear_registers(); | 1201 clear_registers(); |
1200 ResetRedobuff(); | 1202 ResetRedobuff(); |
1201 ResetRedobuff(); | 1203 ResetRedobuff(); |