0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 9.0.0978: build errors without the +channel feature

Problem:    Build errors without the +channel feature. (John Marriott)
Solution:   Adjust #ifdefs.
This commit is contained in:
Bram Moolenaar
2022-11-30 20:20:56 +00:00
parent 4c5678ff0c
commit 3b8c7083b2
6 changed files with 28 additions and 13 deletions

View File

@@ -619,6 +619,16 @@ check_for_opt_job_arg(typval_T *args, int idx)
return (args[idx].v_type == VAR_UNKNOWN
|| check_for_job_arg(args, idx) != FAIL) ? OK : FAIL;
}
#else
/*
* Give an error and return FAIL unless "args[idx]" is an optional channel or a
* job. Used without the +channel feature, thus only VAR_UNKNOWN is accepted.
*/
int
check_for_opt_chan_or_job_arg(typval_T *args, int idx)
{
return args[idx].v_type == VAR_UNKNOWN ? OK : FAIL;
}
#endif
/*