comparison src/ex_cmds2.c @ 8378:52777ec8a394 v7.4.1481

commit https://github.com/vim/vim/commit/9f7820f83bc994bbbecdca9483b355953f07179b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 3 17:22:49 2016 +0100 patch 7.4.1481 Problem: Can't build with small features. Solution: Add #ifdef.
author Christian Brabandt <cb@256bit.org>
date Thu, 03 Mar 2016 17:30:13 +0100
parents e448f2a5d45b
children f5972de59001
comparison
equal deleted inserted replaced
8377:c938f8e269c5 8378:52777ec8a394
3055 void *cookie) 3055 void *cookie)
3056 { 3056 {
3057 return do_in_path(p_rtp, name, all ? DIP_ALL : 0, callback, cookie); 3057 return do_in_path(p_rtp, name, all ? DIP_ALL : 0, callback, cookie);
3058 } 3058 }
3059 3059
3060 #ifdef FEAT_AUTOCMD
3060 /* 3061 /*
3061 * Source filetype detection scripts, if filetype.vim was already done. 3062 * Source filetype detection scripts, if filetype.vim was already done.
3062 */ 3063 */
3063 static void 3064 static void
3064 may_do_filetypes(char_u *pat) 3065 may_do_filetypes(char_u *pat)
3073 do_in_path(p_pp, pat, DIP_ALL, source_callback, NULL); 3074 do_in_path(p_pp, pat, DIP_ALL, source_callback, NULL);
3074 do_cmdline_cmd((char_u *)"augroup END"); 3075 do_cmdline_cmd((char_u *)"augroup END");
3075 } 3076 }
3076 vim_free(cmd); 3077 vim_free(cmd);
3077 } 3078 }
3079 #endif
3078 3080
3079 static void 3081 static void
3080 add_pack_plugin(char_u *fname, void *cookie) 3082 add_pack_plugin(char_u *fname, void *cookie)
3081 { 3083 {
3082 char_u *p6, *p5, *p4, *p3, *p2, *p1, *p; 3084 char_u *p6, *p5, *p4, *p3, *p2, *p1, *p;
3158 void 3160 void
3159 source_packages() 3161 source_packages()
3160 { 3162 {
3161 do_in_path(p_pp, (char_u *)"pack/*/ever/*/plugin/*.vim", 3163 do_in_path(p_pp, (char_u *)"pack/*/ever/*/plugin/*.vim",
3162 DIP_ALL, add_pack_plugin, p_pp); 3164 DIP_ALL, add_pack_plugin, p_pp);
3165 #ifdef FEAT_AUTOCMD
3163 may_do_filetypes((char_u *)"pack/*/ever/*/ftdetect/*.vim"); 3166 may_do_filetypes((char_u *)"pack/*/ever/*/ftdetect/*.vim");
3167 #endif
3164 } 3168 }
3165 3169
3166 /* 3170 /*
3167 * ":loadplugin {name}" 3171 * ":loadplugin {name}"
3168 */ 3172 */
3179 if (pat == NULL) 3183 if (pat == NULL)
3180 return; 3184 return;
3181 vim_snprintf(pat, len, plugpat, eap->arg); 3185 vim_snprintf(pat, len, plugpat, eap->arg);
3182 do_in_path(p_pp, (char_u *)pat, DIP_ALL, add_pack_plugin, p_pp); 3186 do_in_path(p_pp, (char_u *)pat, DIP_ALL, add_pack_plugin, p_pp);
3183 3187
3188 #ifdef FEAT_AUTOCMD
3184 vim_snprintf(pat, len, ftpat, eap->arg); 3189 vim_snprintf(pat, len, ftpat, eap->arg);
3185 may_do_filetypes((char_u *)pat); 3190 may_do_filetypes((char_u *)pat);
3191 #endif
3186 3192
3187 vim_free(pat); 3193 vim_free(pat);
3188 } 3194 }
3189 3195
3190 /* 3196 /*