comparison src/if_cscope.c @ 13380:69517d67421f v8.0.1564

patch 8.0.1564: too many #ifdefs commit https://github.com/vim/vim/commit/f2bd8ef2b4507d02c6043affff8f7e85e3414d5f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 4 18:08:14 2018 +0100 patch 8.0.1564: too many #ifdefs Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
author Christian Brabandt <cb@256bit.org>
date Sun, 04 Mar 2018 18:15:08 +0100
parents ac42c4b11dbc
children c62601adad69
comparison
equal deleted inserted replaced
13379:0f9dd1b43244 13380:69517d67421f
1145 vim_free(buf); 1145 vim_free(buf);
1146 } 1146 }
1147 return FALSE; 1147 return FALSE;
1148 } 1148 }
1149 1149
1150 # ifdef FEAT_AUTOCMD
1151 if (*qfpos != '0' 1150 if (*qfpos != '0'
1152 && apply_autocmds(EVENT_QUICKFIXCMDPRE, (char_u *)"cscope", 1151 && apply_autocmds(EVENT_QUICKFIXCMDPRE, (char_u *)"cscope",
1153 curbuf->b_fname, TRUE, curbuf)) 1152 curbuf->b_fname, TRUE, curbuf))
1154 { 1153 {
1155 # ifdef FEAT_EVAL 1154 # ifdef FEAT_EVAL
1156 if (aborting()) 1155 if (aborting())
1157 return FALSE; 1156 return FALSE;
1158 # endif
1159 }
1160 # endif 1157 # endif
1158 }
1161 } 1159 }
1162 #endif 1160 #endif
1163 1161
1164 /* create the actual command to send to cscope */ 1162 /* create the actual command to send to cscope */
1165 cmd = cs_create_cmd(opt, pat); 1163 cmd = cs_create_cmd(opt, pat);
1249 postponed_split_flags); 1247 postponed_split_flags);
1250 RESET_BINDING(curwin); 1248 RESET_BINDING(curwin);
1251 postponed_split = 0; 1249 postponed_split = 0;
1252 } 1250 }
1253 1251
1254 # ifdef FEAT_AUTOCMD
1255 apply_autocmds(EVENT_QUICKFIXCMDPOST, (char_u *)"cscope", 1252 apply_autocmds(EVENT_QUICKFIXCMDPOST, (char_u *)"cscope",
1256 curbuf->b_fname, TRUE, curbuf); 1253 curbuf->b_fname, TRUE, curbuf);
1257 # endif
1258 if (use_ll) 1254 if (use_ll)
1259 /* 1255 /*
1260 * In the location list window, use the displayed location 1256 * In the location list window, use the displayed location
1261 * list. Otherwise, use the location list for the window. 1257 * list. Otherwise, use the location list for the window.
1262 */ 1258 */