Lines Matching refs:argvars

721 remote_common(typval_T *argvars, typval_T *rettv, int expr)  in remote_common()  argument
741 if (argvars[2].v_type != VAR_UNKNOWN in remote_common()
742 && argvars[3].v_type != VAR_UNKNOWN) in remote_common()
743 timeout = tv_get_number(&argvars[3]); in remote_common()
745 server_name = tv_get_string_chk(&argvars[0]); in remote_common()
748 keys = tv_get_string_buf(&argvars[1], buf); in remote_common()
768 if (argvars[2].v_type != VAR_UNKNOWN) in remote_common()
774 idvar = tv_get_string_chk(&argvars[2]); in remote_common()
792 f_remote_expr(typval_T *argvars UNUSED, typval_T *rettv) in f_remote_expr()
798 && (check_for_string_arg(argvars, 0) == FAIL in f_remote_expr()
799 || check_for_string_arg(argvars, 1) == FAIL in f_remote_expr()
800 || check_for_opt_string_arg(argvars, 2) == FAIL in f_remote_expr()
801 || (argvars[2].v_type != VAR_UNKNOWN in f_remote_expr()
802 && check_for_opt_number_arg(argvars, 3) == FAIL))) in f_remote_expr()
806 remote_common(argvars, rettv, TRUE); in f_remote_expr()
814 f_remote_foreground(typval_T *argvars UNUSED, typval_T *rettv UNUSED) in f_remote_foreground()
817 if (in_vim9script() && check_for_string_arg(argvars, 0) == FAIL) in f_remote_foreground()
823 char_u *server_name = tv_get_string_chk(&argvars[0]); in f_remote_foreground()
830 argvars[1].v_type = VAR_STRING; in f_remote_foreground()
831 argvars[1].vval.v_string = vim_strsave((char_u *)"foreground()"); in f_remote_foreground()
832 argvars[2].v_type = VAR_UNKNOWN; in f_remote_foreground()
835 remote_common(argvars, rettv, TRUE); in f_remote_foreground()
836 vim_free(argvars[1].vval.v_string); in f_remote_foreground()
842 f_remote_peek(typval_T *argvars UNUSED, typval_T *rettv) in f_remote_peek()
857 && (check_for_string_arg(argvars, 0) == FAIL in f_remote_peek()
858 || check_for_opt_string_arg(argvars, 1) == FAIL)) in f_remote_peek()
861 serverid = tv_get_string_chk(&argvars[0]); in f_remote_peek()
881 if (argvars[1].v_type != VAR_UNKNOWN && rettv->vval.v_number > 0) in f_remote_peek()
887 retvar = tv_get_string_chk(&argvars[1]); in f_remote_peek()
898 f_remote_read(typval_T *argvars UNUSED, typval_T *rettv) in f_remote_read()
906 && (check_for_string_arg(argvars, 0) == FAIL in f_remote_read()
907 || check_for_opt_number_arg(argvars, 1) == FAIL)) in f_remote_read()
910 serverid = tv_get_string_chk(&argvars[0]); in f_remote_read()
919 if (argvars[1].v_type != VAR_UNKNOWN) in f_remote_read()
920 timeout = tv_get_number(&argvars[1]); in f_remote_read()
943 f_remote_send(typval_T *argvars UNUSED, typval_T *rettv) in f_remote_send()
949 && (check_for_string_arg(argvars, 0) == FAIL in f_remote_send()
950 || check_for_string_arg(argvars, 1) == FAIL in f_remote_send()
951 || check_for_opt_string_arg(argvars, 2) == FAIL)) in f_remote_send()
955 remote_common(argvars, rettv, FALSE); in f_remote_send()
963 f_remote_startserver(typval_T *argvars UNUSED, typval_T *rettv UNUSED) in f_remote_startserver()
968 if (in_vim9script() && check_for_string_arg(argvars, 0) == FAIL) in f_remote_startserver()
971 server = tv_get_string_chk(&argvars[0]); in f_remote_startserver()
991 f_server2client(typval_T *argvars UNUSED, typval_T *rettv) in f_server2client()
1003 && (check_for_string_arg(argvars, 0) == FAIL in f_server2client()
1004 || check_for_string_arg(argvars, 1) == FAIL)) in f_server2client()
1007 server = tv_get_string_chk(&argvars[0]); in f_server2client()
1008 reply = tv_get_string_buf_chk(&argvars[1], buf); in f_server2client()
1029 f_serverlist(typval_T *argvars UNUSED, typval_T *rettv) in f_serverlist()