Mercurial > vim
comparison src/vim9compile.c @ 28063:b47698ee4a14 v8.2.4556
patch 8.2.4556: test fails without the +job or +channel feature
Commit: https://github.com/vim/vim/commit/4f3321f704ec0c2a522f12a580530283ae28856f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 13 13:12:27 2022 +0000
patch 8.2.4556: test fails without the +job or +channel feature
Problem: Test fails without the +job or +channel feature. (Dominique Pell?)
Solution: Adjust #ifdefs. Pass on skip flag. (closes https://github.com/vim/vim/issues/9942)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Mar 2022 14:15:03 +0100 |
parents | 0ed38a4e028d |
children | 632a84e2ce92 |
comparison
equal
deleted
inserted
replaced
28062:9cd35edfb4af | 28063:b47698ee4a14 |
---|---|
760 void | 760 void |
761 fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx) | 761 fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx) |
762 { | 762 { |
763 eap->getline = exarg_getline; | 763 eap->getline = exarg_getline; |
764 eap->cookie = cctx; | 764 eap->cookie = cctx; |
765 eap->skip = cctx->ctx_skip == SKIP_YES; | |
765 } | 766 } |
766 | 767 |
767 /* | 768 /* |
768 * Return TRUE if "ufunc" should be compiled, taking into account whether | 769 * Return TRUE if "ufunc" should be compiled, taking into account whether |
769 * "profile" indicates profiling is to be done. | 770 * "profile" indicates profiling is to be done. |
853 if (name_start[1] == ':' && !is_global) | 854 if (name_start[1] == ':' && !is_global) |
854 { | 855 { |
855 semsg(_(e_namespace_not_supported_str), name_start); | 856 semsg(_(e_namespace_not_supported_str), name_start); |
856 return NULL; | 857 return NULL; |
857 } | 858 } |
858 if (check_defined(name_start, name_end - name_start, cctx, | 859 if (cctx->ctx_skip != SKIP_YES |
860 && check_defined(name_start, name_end - name_start, cctx, | |
859 NULL, FALSE) == FAIL) | 861 NULL, FALSE) == FAIL) |
860 return NULL; | 862 return NULL; |
861 if (!ASCII_ISUPPER(is_global ? name_start[2] : name_start[0])) | 863 if (!ASCII_ISUPPER(is_global ? name_start[2] : name_start[0])) |
862 { | 864 { |
863 semsg(_(e_function_name_must_start_with_capital_str), name_start); | 865 semsg(_(e_function_name_must_start_with_capital_str), name_start); |