comparison src/evalfunc.c @ 16646:ea0f9a2df961 v8.1.1325

patch 8.1.1325: cannot build with +eval but without +channel and +timers commit https://github.com/vim/vim/commit/97b0075b0d733cc58c29247b09e7887b9991d7bf Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 12 13:07:14 2019 +0200 patch 8.1.1325: cannot build with +eval but without +channel and +timers Problem: Cannot build with +eval but without +channel and +timers. (John Marriott) Solution: Adjust #ifdef for get_callback().
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 May 2019 13:15:06 +0200
parents 4790302965fc
children 04c2614af21c
comparison
equal deleted inserted replaced
16645:6453e4aec575 16646:ea0f9a2df961
14673 f_test_settime(typval_T *argvars, typval_T *rettv UNUSED) 14673 f_test_settime(typval_T *argvars, typval_T *rettv UNUSED)
14674 { 14674 {
14675 time_for_testing = (time_t)tv_get_number(&argvars[0]); 14675 time_for_testing = (time_t)tv_get_number(&argvars[0]);
14676 } 14676 }
14677 14677
14678 #if defined(FEAT_JOB_CHANNEL) || defined(FEAT_TIMERS) || defined(PROTO)
14679 /* 14678 /*
14680 * Get a callback from "arg". It can be a Funcref or a function name. 14679 * Get a callback from "arg". It can be a Funcref or a function name.
14681 * When "arg" is zero return an empty string. 14680 * When "arg" is zero return an empty string.
14682 * Return NULL for an invalid argument. 14681 * Return NULL for an invalid argument.
14683 */ 14682 */
14714 { 14713 {
14715 func_unref(callback); 14714 func_unref(callback);
14716 vim_free(callback); 14715 vim_free(callback);
14717 } 14716 }
14718 } 14717 }
14719 #endif
14720 14718
14721 #ifdef FEAT_TIMERS 14719 #ifdef FEAT_TIMERS
14722 /* 14720 /*
14723 * "timer_info([timer])" function 14721 * "timer_info([timer])" function
14724 */ 14722 */