mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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 #9491)
This commit is contained in:
committed by
Bram Moolenaar
parent
370791465e
commit
748b308eeb
@@ -528,6 +528,7 @@ check_for_opt_dict_arg(typval_T *args, int idx)
|
||||
|| 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, int idx)
|
||||
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, int idx)
|
||||
|| 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 *args, int idx)
|
||||
}
|
||||
return OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Give an error and return FAIL unless "args[idx]" is a string or a list.
|
||||
|
Reference in New Issue
Block a user