Lines Matching refs:args
358 check_for_string_arg(typval_T *args, int idx) in check_for_string_arg() argument
360 if (args[idx].v_type != VAR_STRING) in check_for_string_arg()
375 check_for_nonempty_string_arg(typval_T *args, int idx) in check_for_nonempty_string_arg() argument
377 if (check_for_string_arg(args, idx) == FAIL) in check_for_nonempty_string_arg()
379 if (args[idx].vval.v_string == NULL || *args[idx].vval.v_string == NUL) in check_for_nonempty_string_arg()
391 check_for_opt_string_arg(typval_T *args, int idx) in check_for_opt_string_arg() argument
393 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_string_arg()
394 || check_for_string_arg(args, idx) != FAIL); in check_for_opt_string_arg()
401 check_for_number_arg(typval_T *args, int idx) in check_for_number_arg() argument
403 if (args[idx].v_type != VAR_NUMBER) in check_for_number_arg()
418 check_for_opt_number_arg(typval_T *args, int idx) in check_for_opt_number_arg() argument
420 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_number_arg()
421 || check_for_number_arg(args, idx) != FAIL); in check_for_opt_number_arg()
428 check_for_float_or_nr_arg(typval_T *args, int idx) in check_for_float_or_nr_arg() argument
430 if (args[idx].v_type != VAR_FLOAT && args[idx].v_type != VAR_NUMBER) in check_for_float_or_nr_arg()
445 check_for_bool_arg(typval_T *args, int idx) in check_for_bool_arg() argument
447 if (args[idx].v_type != VAR_BOOL in check_for_bool_arg()
448 && !(args[idx].v_type == VAR_NUMBER in check_for_bool_arg()
449 && (args[idx].vval.v_number == 0 in check_for_bool_arg()
450 || args[idx].vval.v_number == 1))) in check_for_bool_arg()
466 check_for_opt_bool_arg(typval_T *args, int idx) in check_for_opt_bool_arg() argument
468 if (args[idx].v_type == VAR_UNKNOWN) in check_for_opt_bool_arg()
470 return check_for_bool_arg(args, idx); in check_for_opt_bool_arg()
477 check_for_blob_arg(typval_T *args, int idx) in check_for_blob_arg() argument
479 if (args[idx].v_type != VAR_BLOB) in check_for_blob_arg()
494 check_for_list_arg(typval_T *args, int idx) in check_for_list_arg() argument
496 if (args[idx].v_type != VAR_LIST) in check_for_list_arg()
511 check_for_opt_list_arg(typval_T *args, int idx) in check_for_opt_list_arg() argument
513 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_list_arg()
514 || check_for_list_arg(args, idx) != FAIL); in check_for_opt_list_arg()
521 check_for_dict_arg(typval_T *args, int idx) in check_for_dict_arg() argument
523 if (args[idx].v_type != VAR_DICT) in check_for_dict_arg()
538 check_for_opt_dict_arg(typval_T *args, int idx) in check_for_opt_dict_arg() argument
540 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_dict_arg()
541 || check_for_dict_arg(args, idx) != FAIL); in check_for_opt_dict_arg()
548 check_for_chan_or_job_arg(typval_T *args, int idx) in check_for_chan_or_job_arg() argument
550 if (args[idx].v_type != VAR_CHANNEL && args[idx].v_type != VAR_JOB) in check_for_chan_or_job_arg()
566 check_for_opt_chan_or_job_arg(typval_T *args, int idx) in check_for_opt_chan_or_job_arg() argument
568 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_chan_or_job_arg()
569 || check_for_chan_or_job_arg(args, idx) != FAIL); in check_for_opt_chan_or_job_arg()
576 check_for_job_arg(typval_T *args, int idx) in check_for_job_arg() argument
578 if (args[idx].v_type != VAR_JOB) in check_for_job_arg()
593 check_for_opt_job_arg(typval_T *args, int idx) in check_for_opt_job_arg() argument
595 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_job_arg()
596 || check_for_job_arg(args, idx) != FAIL); in check_for_opt_job_arg()
604 check_for_string_or_number_arg(typval_T *args, int idx) in check_for_string_or_number_arg() argument
606 if (args[idx].v_type != VAR_STRING && args[idx].v_type != VAR_NUMBER) in check_for_string_or_number_arg()
621 check_for_opt_string_or_number_arg(typval_T *args, int idx) in check_for_opt_string_or_number_arg() argument
623 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_string_or_number_arg()
624 || check_for_string_or_number_arg(args, idx) != FAIL); in check_for_opt_string_or_number_arg()
632 check_for_buffer_arg(typval_T *args, int idx) in check_for_buffer_arg() argument
634 return check_for_string_or_number_arg(args, idx); in check_for_buffer_arg()
641 check_for_opt_buffer_arg(typval_T *args, int idx) in check_for_opt_buffer_arg() argument
643 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_buffer_arg()
644 || check_for_buffer_arg(args, idx)); in check_for_opt_buffer_arg()
652 check_for_lnum_arg(typval_T *args, int idx) in check_for_lnum_arg() argument
654 return check_for_string_or_number_arg(args, idx); in check_for_lnum_arg()
661 check_for_opt_lnum_arg(typval_T *args, int idx) in check_for_opt_lnum_arg() argument
663 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_lnum_arg()
664 || check_for_lnum_arg(args, idx)); in check_for_opt_lnum_arg()
671 check_for_string_or_blob_arg(typval_T *args, int idx) in check_for_string_or_blob_arg() argument
673 if (args[idx].v_type != VAR_STRING && args[idx].v_type != VAR_BLOB) in check_for_string_or_blob_arg()
688 check_for_string_or_list_arg(typval_T *args, int idx) in check_for_string_or_list_arg() argument
690 if (args[idx].v_type != VAR_STRING && args[idx].v_type != VAR_LIST) in check_for_string_or_list_arg()
705 check_for_opt_string_or_list_arg(typval_T *args, int idx) in check_for_opt_string_or_list_arg() argument
707 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_string_or_list_arg()
708 || check_for_string_or_list_arg(args, idx)); in check_for_opt_string_or_list_arg()
715 check_for_string_or_dict_arg(typval_T *args, int idx) in check_for_string_or_dict_arg() argument
717 if (args[idx].v_type != VAR_STRING && args[idx].v_type != VAR_DICT) in check_for_string_or_dict_arg()
733 check_for_string_or_number_or_list_arg(typval_T *args, int idx) in check_for_string_or_number_or_list_arg() argument
735 if (args[idx].v_type != VAR_STRING in check_for_string_or_number_or_list_arg()
736 && args[idx].v_type != VAR_NUMBER in check_for_string_or_number_or_list_arg()
737 && args[idx].v_type != VAR_LIST) in check_for_string_or_number_or_list_arg()
753 check_for_opt_string_or_number_or_list_arg(typval_T *args, int idx) in check_for_opt_string_or_number_or_list_arg() argument
755 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_string_or_number_or_list_arg()
756 || check_for_string_or_number_or_list_arg(args, idx) != FAIL); in check_for_opt_string_or_number_or_list_arg()
764 check_for_string_or_list_or_dict_arg(typval_T *args, int idx) in check_for_string_or_list_or_dict_arg() argument
766 if (args[idx].v_type != VAR_STRING in check_for_string_or_list_or_dict_arg()
767 && args[idx].v_type != VAR_LIST in check_for_string_or_list_or_dict_arg()
768 && args[idx].v_type != VAR_DICT) in check_for_string_or_list_or_dict_arg()
783 check_for_list_or_blob_arg(typval_T *args, int idx) in check_for_list_or_blob_arg() argument
785 if (args[idx].v_type != VAR_LIST && args[idx].v_type != VAR_BLOB) in check_for_list_or_blob_arg()
800 check_for_list_or_dict_arg(typval_T *args, int idx) in check_for_list_or_dict_arg() argument
802 if (args[idx].v_type != VAR_LIST in check_for_list_or_dict_arg()
803 && args[idx].v_type != VAR_DICT) in check_for_list_or_dict_arg()
819 check_for_list_or_dict_or_blob_arg(typval_T *args, int idx) in check_for_list_or_dict_or_blob_arg() argument
821 if (args[idx].v_type != VAR_LIST in check_for_list_or_dict_or_blob_arg()
822 && args[idx].v_type != VAR_DICT in check_for_list_or_dict_or_blob_arg()
823 && args[idx].v_type != VAR_BLOB) in check_for_list_or_dict_or_blob_arg()
839 check_for_opt_buffer_or_dict_arg(typval_T *args, int idx) in check_for_opt_buffer_or_dict_arg() argument
841 if (args[idx].v_type != VAR_UNKNOWN in check_for_opt_buffer_or_dict_arg()
842 && args[idx].v_type != VAR_STRING in check_for_opt_buffer_or_dict_arg()
843 && args[idx].v_type != VAR_NUMBER in check_for_opt_buffer_or_dict_arg()
844 && args[idx].v_type != VAR_DICT) in check_for_opt_buffer_or_dict_arg()