comparison src/ops.c @ 27018:268f6a3511df v8.2.4038

patch 8.2.4038: various code not used when features are disabled Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sat Jan 8 12:41:16 2022 +0000 patch 8.2.4038: various code not used when features are disabled Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Jan 2022 13:45:04 +0100
parents d92e0d85923f
children a9eeb18e749c
comparison
equal deleted inserted replaced
27017:da790d50f73d 27018:268f6a3511df
3348 free_callback(&opfunc_cb); 3348 free_callback(&opfunc_cb);
3349 # endif 3349 # endif
3350 } 3350 }
3351 #endif 3351 #endif
3352 3352
3353 #if defined(FEAT_EVAL) || defined(PROTO)
3353 /* 3354 /*
3354 * Mark the global 'operatorfunc' callback with 'copyID' so that it is not 3355 * Mark the global 'operatorfunc' callback with 'copyID' so that it is not
3355 * garbage collected. 3356 * garbage collected.
3356 */ 3357 */
3357 int 3358 int
3358 set_ref_in_opfunc(int copyID UNUSED) 3359 set_ref_in_opfunc(int copyID UNUSED)
3359 { 3360 {
3360 int abort = FALSE; 3361 int abort = FALSE;
3361 3362
3362 #ifdef FEAT_EVAL
3363 abort = set_ref_in_callback(&opfunc_cb, copyID); 3363 abort = set_ref_in_callback(&opfunc_cb, copyID);
3364 #endif
3365 3364
3366 return abort; 3365 return abort;
3367 } 3366 }
3367 #endif
3368 3368
3369 /* 3369 /*
3370 * Handle the "g@" operator: call 'operatorfunc'. 3370 * Handle the "g@" operator: call 'operatorfunc'.
3371 */ 3371 */
3372 static void 3372 static void