Mercurial > vim
diff src/typval.c @ 27018:268f6a3511df v8.2.4038
patch 8.2.4038: various code not used when features are disabled
Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sat Jan 8 12:41:16 2022 +0000
patch 8.2.4038: various code not used when features are disabled
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Jan 2022 13:45:04 +0100 |
parents | ac75c145f0a9 |
children | b31cc7630773 |
line wrap: on
line diff
--- a/src/typval.c +++ b/src/typval.c @@ -528,6 +528,7 @@ check_for_opt_dict_arg(typval_T *args, i || check_for_dict_arg(args, idx) != FAIL); } +#if defined(FEAT_JOB_CHANNEL) || defined(PROTO) /* * Give an error and return FAIL unless "args[idx]" is a channel or a job. */ @@ -576,6 +577,7 @@ check_for_opt_job_arg(typval_T *args, in return (args[idx].v_type == VAR_UNKNOWN || check_for_job_arg(args, idx) != FAIL); } +#endif /* * Give an error and return FAIL unless "args[idx]" is a string or @@ -642,6 +644,7 @@ check_for_opt_lnum_arg(typval_T *args, i || check_for_lnum_arg(args, idx)); } +#if defined(FEAT_JOB_CHANNEL) || defined(PROTO) /* * Give an error and return FAIL unless "args[idx]" is a string or a blob. */ @@ -655,6 +658,7 @@ check_for_string_or_blob_arg(typval_T *a } return OK; } +#endif /* * Give an error and return FAIL unless "args[idx]" is a string or a list.