Mercurial > vim
comparison src/typval.c @ 31289:4f1e70a709bb v9.0.0978
patch 9.0.0978: build errors without the +channel feature
Commit: https://github.com/vim/vim/commit/3b8c7083b265c35861a7f96b01c079471ff45152
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 30 20:20:56 2022 +0000
patch 9.0.0978: build errors without the +channel feature
Problem: Build errors without the +channel feature. (John Marriott)
Solution: Adjust #ifdefs.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Nov 2022 21:30:03 +0100 |
parents | 360f286b5869 |
children | 307f68a41b03 |
comparison
equal
deleted
inserted
replaced
31288:6195f37efb92 | 31289:4f1e70a709bb |
---|---|
616 int | 616 int |
617 check_for_opt_job_arg(typval_T *args, int idx) | 617 check_for_opt_job_arg(typval_T *args, int idx) |
618 { | 618 { |
619 return (args[idx].v_type == VAR_UNKNOWN | 619 return (args[idx].v_type == VAR_UNKNOWN |
620 || check_for_job_arg(args, idx) != FAIL) ? OK : FAIL; | 620 || check_for_job_arg(args, idx) != FAIL) ? OK : FAIL; |
621 } | |
622 #else | |
623 /* | |
624 * Give an error and return FAIL unless "args[idx]" is an optional channel or a | |
625 * job. Used without the +channel feature, thus only VAR_UNKNOWN is accepted. | |
626 */ | |
627 int | |
628 check_for_opt_chan_or_job_arg(typval_T *args, int idx) | |
629 { | |
630 return args[idx].v_type == VAR_UNKNOWN ? OK : FAIL; | |
621 } | 631 } |
622 #endif | 632 #endif |
623 | 633 |
624 /* | 634 /* |
625 * Give an error and return FAIL unless "args[idx]" is a string or | 635 * Give an error and return FAIL unless "args[idx]" is a string or |