diff src/vim9execute.c @ 24594:5c456a88f651 v8.2.2836

patch 8.2.2836: build failure without the +quickfix feature Commit: https://github.com/vim/vim/commit/b7c978154e0816f4dcfae8a06b4ba1bfb7f796f6 Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 5 22:51:39 2021 +0200 patch 8.2.2836: build failure without the +quickfix feature Problem: Build failure without the +quickfix feature. (John Marriott) Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 May 2021 23:00:03 +0200
parents 2818f846f099
children a4fda40e0bb9
line wrap: on
line diff
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -1443,11 +1443,14 @@ exec_instructions(ectx_T *ectx)
 		break;
 
 	    case ISN_CEXPR_AUCMD:
+#ifdef FEAT_QUICKFIX
 		if (trigger_cexpr_autocmd(iptr->isn_arg.number) == FAIL)
 		    goto on_error;
+#endif
 		break;
 
 	    case ISN_CEXPR_CORE:
+#ifdef FEAT_QUICKFIX
 		{
 		    exarg_T ea;
 		    int	    res;
@@ -1463,6 +1466,7 @@ exec_instructions(ectx_T *ectx)
 		    if (res == FAIL)
 			goto on_error;
 		}
+#endif
 		break;
 
 	    // execute Ex command from pieces on the stack
@@ -4415,10 +4419,13 @@ list_instructions(char *pfx, isn_T *inst
 					iptr->isn_arg.number ? " append" : "");
 		break;
 	    case ISN_CEXPR_AUCMD:
+#ifdef FEAT_QUICKFIX
 		smsg("%s%4d CEXPR pre %s", pfx, current,
 				       cexpr_get_auname(iptr->isn_arg.number));
+#endif
 		break;
 	    case ISN_CEXPR_CORE:
+#ifdef FEAT_QUICKFIX
 		{
 		    cexprref_T	    *cer = iptr->isn_arg.cexpr.cexpr_ref;
 
@@ -4427,6 +4434,7 @@ list_instructions(char *pfx, isn_T *inst
 				       cer->cer_forceit ? "!" : "",
 				       cer->cer_cmdline);
 		}
+#endif
 		break;
 	    case ISN_SUBSTITUTE:
 		{