Mercurial > vim
comparison src/vim9compile.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 | ae2eb2c496ed |
children | 033b43570140 |
comparison
equal
deleted
inserted
replaced
24593:3786de85c165 | 24594:5c456a88f651 |
---|---|
8702 | 8702 |
8703 // other redirects are handled like at script level | 8703 // other redirects are handled like at script level |
8704 return compile_exec(line, eap, cctx); | 8704 return compile_exec(line, eap, cctx); |
8705 } | 8705 } |
8706 | 8706 |
8707 #ifdef FEAT_QUICKFIX | |
8707 static char_u * | 8708 static char_u * |
8708 compile_cexpr(char_u *line, exarg_T *eap, cctx_T *cctx) | 8709 compile_cexpr(char_u *line, exarg_T *eap, cctx_T *cctx) |
8709 { | 8710 { |
8710 isn_T *isn; | 8711 isn_T *isn; |
8711 char_u *p; | 8712 char_u *p; |
8729 isn->isn_arg.cexpr.cexpr_ref->cer_forceit = eap->forceit; | 8730 isn->isn_arg.cexpr.cexpr_ref->cer_forceit = eap->forceit; |
8730 isn->isn_arg.cexpr.cexpr_ref->cer_cmdline = vim_strsave(skipwhite(line)); | 8731 isn->isn_arg.cexpr.cexpr_ref->cer_cmdline = vim_strsave(skipwhite(line)); |
8731 | 8732 |
8732 return p; | 8733 return p; |
8733 } | 8734 } |
8735 #endif | |
8734 | 8736 |
8735 /* | 8737 /* |
8736 * Add a function to the list of :def functions. | 8738 * Add a function to the list of :def functions. |
8737 * This sets "ufunc->uf_dfunc_idx" but the function isn't compiled yet. | 8739 * This sets "ufunc->uf_dfunc_idx" but the function isn't compiled yet. |
8738 */ | 8740 */ |
9294 case CMD_lexpr: | 9296 case CMD_lexpr: |
9295 case CMD_caddexpr: | 9297 case CMD_caddexpr: |
9296 case CMD_laddexpr: | 9298 case CMD_laddexpr: |
9297 case CMD_cgetexpr: | 9299 case CMD_cgetexpr: |
9298 case CMD_lgetexpr: | 9300 case CMD_lgetexpr: |
9301 #ifdef FEAT_QUICKFIX | |
9299 ea.arg = p; | 9302 ea.arg = p; |
9300 line = compile_cexpr(line, &ea, &cctx); | 9303 line = compile_cexpr(line, &ea, &cctx); |
9304 #else | |
9305 ex_ni(&ea); | |
9306 line = NULL; | |
9307 #endif | |
9301 break; | 9308 break; |
9302 | 9309 |
9303 // TODO: any other commands with an expression argument? | 9310 // TODO: any other commands with an expression argument? |
9304 | 9311 |
9305 case CMD_append: | 9312 case CMD_append: |