comparison src/os_mswin.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 05aec5ac9630
comparison
equal deleted inserted replaced
13379:0f9dd1b43244 13380:69517d67421f
2161 if (save_reply(sender, str, 2161 if (save_reply(sender, str,
2162 (data->dwData == COPYDATA_REPLY ? 0 : 2162 (data->dwData == COPYDATA_REPLY ? 0 :
2163 (data->dwData == COPYDATA_RESULT ? 1 : 2163 (data->dwData == COPYDATA_RESULT ? 1 :
2164 2))) == FAIL) 2164 2))) == FAIL)
2165 vim_free(str); 2165 vim_free(str);
2166 #ifdef FEAT_AUTOCMD
2167 else if (data->dwData == COPYDATA_REPLY) 2166 else if (data->dwData == COPYDATA_REPLY)
2168 { 2167 {
2169 char_u winstr[30]; 2168 char_u winstr[30];
2170 2169
2171 sprintf((char *)winstr, PRINTF_HEX_LONG_U, (long_u)sender); 2170 sprintf((char *)winstr, PRINTF_HEX_LONG_U, (long_u)sender);
2172 apply_autocmds(EVENT_REMOTEREPLY, winstr, str, 2171 apply_autocmds(EVENT_REMOTEREPLY, winstr, str,
2173 TRUE, curbuf); 2172 TRUE, curbuf);
2174 } 2173 }
2175 #endif
2176 } 2174 }
2177 return 1; 2175 return 1;
2178 } 2176 }
2179 2177
2180 return 0; 2178 return 0;