check_for_opt_string_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_string_arg(args, idx) != FAIL);
+ || check_for_string_arg(args, idx) != FAIL) ? OK : FAIL;
}
/*
check_for_opt_number_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_number_arg(args, idx) != FAIL);
+ || check_for_number_arg(args, idx) != FAIL) ? OK : FAIL;
}
/*
check_for_opt_list_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_list_arg(args, idx) != FAIL);
+ || check_for_list_arg(args, idx) != FAIL) ? OK : FAIL;
}
/*
check_for_opt_dict_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_dict_arg(args, idx) != FAIL);
+ || check_for_dict_arg(args, idx) != FAIL) ? OK : FAIL;
}
#if defined(FEAT_JOB_CHANNEL) || defined(PROTO)
check_for_opt_chan_or_job_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_chan_or_job_arg(args, idx) != FAIL);
+ || check_for_chan_or_job_arg(args, idx) != FAIL) ? OK : FAIL;
}
/*
check_for_opt_job_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_job_arg(args, idx) != FAIL);
+ || check_for_job_arg(args, idx) != FAIL) ? OK : FAIL;
}
#endif
check_for_opt_string_or_number_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_string_or_number_arg(args, idx) != FAIL);
+ || check_for_string_or_number_arg(args, idx) != FAIL) ? OK : FAIL;
}
/*
check_for_opt_buffer_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_buffer_arg(args, idx));
+ || check_for_buffer_arg(args, idx) != FAIL) ? OK : FAIL;
}
/*
check_for_opt_lnum_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_lnum_arg(args, idx));
+ || check_for_lnum_arg(args, idx) != FAIL) ? OK : FAIL;
}
#if defined(FEAT_JOB_CHANNEL) || defined(PROTO)
check_for_opt_string_or_list_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_string_or_list_arg(args, idx));
+ || check_for_string_or_list_arg(args, idx) != FAIL) ? OK : FAIL;
}
/*
check_for_opt_string_or_number_or_list_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
- || check_for_string_or_number_or_list_arg(args, idx) != FAIL);
+ || check_for_string_or_number_or_list_arg(args, idx)
+ != FAIL) ? OK : FAIL;
}
/*