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:
10
src/typval.c
10
src/typval.c
@@ -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
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user