| /vim-8.2.3635/src/ |
| H A D | typval.c | 1055 to->v_type = from->v_type; in copy_tv() 1170 n1 = (typ1->v_type == typ2->v_type in typval_compare() 1175 else if (typ1->v_type != typ2->v_type in typval_compare() 1178 if (typ1->v_type != typ2->v_type) in typval_compare() 1197 n1 = (typ1->v_type == typ2->v_type in typval_compare() 1202 else if (typ1->v_type != typ2->v_type in typval_compare() 1205 if (typ1->v_type != typ2->v_type) in typval_compare() 1231 else if (typ1->v_type != typ2->v_type in typval_compare() 1234 if (typ1->v_type != typ2->v_type) in typval_compare() 1341 if (typ1->v_type != typ2->v_type) in typval_compare() [all …]
|
| H A D | float.c | 117 rettv->v_type = VAR_FLOAT; in f_abs() 146 rettv->v_type = VAR_FLOAT; in f_acos() 164 rettv->v_type = VAR_FLOAT; in f_asin() 182 rettv->v_type = VAR_FLOAT; in f_atan() 202 rettv->v_type = VAR_FLOAT; in f_atan2() 221 rettv->v_type = VAR_FLOAT; in f_ceil() 239 rettv->v_type = VAR_FLOAT; in f_cos() 257 rettv->v_type = VAR_FLOAT; in f_cosh() 275 rettv->v_type = VAR_FLOAT; in f_exp() 315 rettv->v_type = VAR_FLOAT; in f_floor() [all …]
|
| H A D | testing.c | 166 && exp_tv->v_type == VAR_DICT && got_tv->v_type == VAR_DICT in fill_assert_error() 339 if (argvars[1].v_type != VAR_UNKNOWN && argvars[2].v_type != VAR_UNKNOWN) in assert_append_cmd_or_arg() 717 actual_tv.v_type = VAR_NUMBER; in f_assert_fails() 1087 switch (argvars[0].v_type) in f_test_refcount() 1139 rettv->v_type = VAR_NUMBER; in f_test_refcount() 1182 rettv->v_type = VAR_BLOB; in f_test_null_blob() 1205 rettv->v_type = VAR_JOB; in f_test_null_job() 1219 rettv->v_type = VAR_FUNC; in f_test_null_function() 1233 rettv->v_type = VAR_STRING; in f_test_null_string() 1246 rettv->v_type = VAR_VOID; in f_test_void() [all …]
|
| H A D | list.c | 202 rettv->v_type = VAR_LIST; in rettv_list_set() 1018 rettv->v_type = VAR_LIST; in flatten_common() 1115 tv->v_type = VAR_LIST; in list_concat() 2453 tv.v_type = VAR_NUMBER; in filter_map() 2460 if (newtv.v_type != VAR_NUMBER && newtv.v_type != VAR_BOOL) in filter_map() 2520 tv.v_type = VAR_NUMBER; in filter_map() 2832 if (argvars[0].v_type == VAR_LIST && argvars[1].v_type == VAR_LIST) in extend() 2883 rettv->v_type = VAR_LIST; in extend() 2891 else if (argvars[0].v_type == VAR_DICT && argvars[1].v_type == VAR_DICT) in extend() 2941 rettv->v_type = VAR_DICT; in extend() [all …]
|
| H A D | eval.c | 1459 if (tv2->v_type != VAR_FUNC && tv2->v_type != VAR_DICT in tv_op() 1460 && ((tv2->v_type != VAR_BOOL && tv2->v_type != VAR_SPECIAL) in tv_op() 1463 switch (tv1->v_type) in tv_op() 1743 tv.v_type = VAR_NUMBER; in next_for_item() 1761 tv.v_type = VAR_STRING; in next_for_item() 2027 rettv->v_type = VAR_FUNC; in eval_func() 3045 if (rettv->v_type == VAR_FLOAT || var2.v_type == VAR_FLOAT) in eval5() 3751 rettv->v_type = type; in eval7_leader() 4828 dtv.v_type = VAR_DICT; in set_ref_in_item() 4960 switch (tv->v_type) in echo_string_core() [all …]
|
| H A D | evalfunc.c | 3350 rettv->v_type = VAR_NUMBER; in f_eval() 4229 else if (argvars[0].v_type == VAR_PARTIAL || argvars[0].v_type == VAR_FUNC) in f_get() 4269 rettv->v_type = VAR_LIST; in f_get() 4669 rettv->v_type = VAR_LIST; in f_getreg() 4679 rettv->v_type = VAR_STRING; in f_getreg() 4778 rettv->v_type = VAR_STRING; in f_gettext() 6692 rettv->v_type = type; in libcall_common() 6707 if (argvars[0].v_type == VAR_STRING && argvars[1].v_type == VAR_STRING) in libcall_common() 8056 if (argvars[1].v_type != VAR_UNKNOWN && argvars[2].v_type != VAR_UNKNOWN) in search_cmn() 9537 rettv->v_type = VAR_LIST; in f_submatch() [all …]
|
| H A D | vim9execute.c | 145 tv->v_type = VAR_LIST; in exe_newlist() 405 tv->v_type = VAR_NUMBER; in call_dfunc() 1124 switch (tv->v_type) in do_2string() 1173 tv->v_type = VAR_STRING; in do_2string() 1185 switch (tv->v_type) in allocate_if_null() 1414 if (v->di_tv.v_type != VAR_PARTIAL && v->di_tv.v_type != VAR_FUNC) in call_eval_func() 2956 tv->v_type = VAR_JOB; in exec_instructions() 3138 tv->v_type = VAR_VOID; in exec_instructions() 3827 if (tv1->v_type == VAR_LIST && tv2->v_type == VAR_LIST) in exec_instructions() 3880 if (tv1->v_type == VAR_FLOAT || tv2->v_type == VAR_FLOAT) in exec_instructions() [all …]
|
| H A D | filepath.c | 787 rettv->v_type = VAR_STRING; in f_chdir() 891 rettv->v_type = VAR_STRING; in f_exepath() 954 rettv->v_type = VAR_STRING; in findfilendir() 987 if (rettv->v_type == VAR_STRING || rettv->v_type == VAR_LIST) in findfilendir() 1056 rettv->v_type = VAR_STRING; in f_fnamemodify() 1551 argv[0].v_type = VAR_STRING; in checkitem_common() 1557 argv[0].v_type = VAR_DICT; in checkitem_common() 1565 if (rettv.v_type == VAR_SPECIAL || rettv.v_type == VAR_BOOL) in checkitem_common() 1567 rettv.v_type = VAR_NUMBER; in checkitem_common() 1651 if (argvars[1].v_type != VAR_UNKNOWN && argvars[2].v_type != VAR_UNKNOWN && in f_readdir() [all …]
|
| H A D | strings.c | 883 if (argvars[0].v_type != VAR_STRING || argvars[1].v_type != VAR_NUMBER in f_charidx() 1105 rettv->v_type = VAR_STRING; in f_string() 1303 rettv->v_type = VAR_STRING; in f_strcharpart() 1352 if (argvars[2].v_type != VAR_UNKNOWN && argvars[3].v_type != VAR_UNKNOWN) in f_strpart() 1362 rettv->v_type = VAR_STRING; in f_strpart() 1434 rettv->v_type = VAR_STRING; in f_strtrans() 1447 rettv->v_type = VAR_STRING; in f_tolower() 1460 rettv->v_type = VAR_STRING; in f_toupper() 1496 rettv->v_type = VAR_STRING; in f_tr() 1599 rettv->v_type = VAR_STRING; in f_trim() [all …]
|
| H A D | json.c | 73 nrtv.v_type = VAR_NUMBER; in json_encode_nr_expr() 196 switch (val->v_type) in json_encode_item() 541 res->v_type = VAR_STRING; in json_decode_string() 566 res->v_type = VAR_SPECIAL; in json_decode_string() 662 cur_item->v_type = VAR_STRING; in json_decode_item() 685 cur_item->v_type = VAR_SPECIAL; in json_decode_item() 716 cur_item->v_type = VAR_SPECIAL; in json_decode_item() 798 cur_item->v_type = VAR_FLOAT; in json_decode_item() 1063 res->v_type = VAR_SPECIAL; in json_decode_item() 1176 rettv->v_type = VAR_STRING; in f_js_encode() [all …]
|
| H A D | dict.c | 96 rettv->v_type = VAR_DICT; in rettv_dict_set() 232 di->di_tv.v_type = VAR_UNKNOWN; in dictitem_alloc() 359 && (tv->v_type == VAR_FUNC || tv->v_type == VAR_PARTIAL) in dict_wrong_func_name() 387 item->di_tv.v_type = vartype; in dict_add_number_special() 830 tv->v_type = VAR_STRING; in get_literal_key_tv() 920 tvkey.v_type = VAR_UNKNOWN; in eval_dict() 921 tv.v_type = VAR_UNKNOWN; in eval_dict() 938 tvkey.v_type = VAR_STRING; in eval_dict() 978 tvkey.v_type = VAR_STRING; in eval_dict() 1236 li->li_tv.v_type = VAR_STRING; in dict_list() [all …]
|
| H A D | evalbuffer.c | 35 tv.v_type = VAR_PARTIAL; in set_ref_in_buffers() 43 tv.v_type = VAR_PARTIAL; in set_ref_in_buffers() 49 tv.v_type = VAR_PARTIAL; in set_ref_in_buffers() 89 if (avar->v_type == VAR_NUMBER) in find_buffer() 179 if (lines->v_type == VAR_LIST) in set_buffer_lines() 408 if (tv->v_type == VAR_UNKNOWN) in f_bufname() 412 rettv->v_type = VAR_STRING; in f_bufname() 431 || (argvars[0].v_type != VAR_UNKNOWN in f_bufnr() 685 if (argvars[0].v_type == VAR_DICT) in f_getbufinfo() 747 rettv->v_type = VAR_STRING; in get_buffer_lines() [all …]
|
| H A D | time.c | 179 || (argvars[0].v_type != VAR_UNKNOWN in f_reltime() 183 if (argvars[0].v_type == VAR_UNKNOWN) in f_reltime() 234 rettv->v_type = VAR_FLOAT; in f_reltimefloat() 258 rettv->v_type = VAR_STRING; in f_reltimestr() 288 rettv->v_type = VAR_STRING; in f_strftime() 479 argv[0].v_type = VAR_NUMBER; in timer_callback() 481 argv[1].v_type = VAR_UNKNOWN; in timer_callback() 736 tv.v_type = VAR_PARTIAL; in set_ref_in_timer() 741 tv.v_type = VAR_FUNC; in set_ref_in_timer() 780 if (argvars[0].v_type != VAR_NUMBER) in f_timer_info() [all …]
|
| H A D | evalwindow.c | 24 if (argvars[0].v_type == VAR_UNKNOWN) in win_getid() 29 if (argvars[1].v_type == VAR_UNKNOWN) in win_getid() 229 if (wvp->v_type != VAR_UNKNOWN) in find_tabwin() 231 if (tvp->v_type != VAR_UNKNOWN) in find_tabwin() 323 if (argvar->v_type != VAR_UNKNOWN) in get_winnr() 579 if (argvars[0].v_type != VAR_UNKNOWN) in f_getwinpos() 696 rettv->v_type = VAR_STRING; in f_win_execute() 928 rettv->v_type = VAR_STRING; in f_win_gettype() 971 rettv->v_type = VAR_STRING; in f_getcmdwintype() 1110 rettv->v_type = VAR_STRING; in f_winrestcmd() [all …]
|
| H A D | clientserver.c | 778 v.di_tv.v_type = VAR_STRING; in remote_common() 794 rettv->v_type = VAR_STRING; in f_remote_expr() 801 || (argvars[2].v_type != VAR_UNKNOWN in f_remote_expr() 830 argvars[1].v_type = VAR_STRING; in f_remote_foreground() 832 argvars[2].v_type = VAR_UNKNOWN; in f_remote_foreground() 833 rettv->v_type = VAR_STRING; in f_remote_foreground() 885 v.di_tv.v_type = VAR_STRING; in f_remote_peek() 919 if (argvars[1].v_type != VAR_UNKNOWN) in f_remote_read() 935 rettv->v_type = VAR_STRING; in f_remote_read() 945 rettv->v_type = VAR_STRING; in f_remote_send() [all …]
|
| H A D | vim9type.c | 265 if (tv->v_type == VAR_NUMBER) in typval2type_int() 267 if (tv->v_type == VAR_BOOL) in typval2type_int() 269 if (tv->v_type == VAR_STRING) in typval2type_int() 271 if (tv->v_type == VAR_BLOB) in typval2type_int() 274 if (tv->v_type == VAR_LIST) in typval2type_int() 300 if (tv->v_type == VAR_DICT) in typval2type_int() 327 if (tv->v_type == VAR_FUNC || tv->v_type == VAR_PARTIAL) in typval2type_int() 365 if (tv->v_type == VAR_PARTIAL in typval2type_int() 384 type->tt_type = tv->v_type; in typval2type_int() 405 && (tv->v_type == VAR_NUMBER in need_convert_to_bool() [all …]
|
| H A D | evalvars.c | 999 ltv.v_type = VAR_LIST; in ex_let_vars() 1271 tv.v_type, in list_arg_vars() 1419 if (tv->v_type != VAR_BOOL && tv->v_type != VAR_SPECIAL in ex_let_one() 1909 switch (tv->v_type) in item_lock() 2627 rettv->v_type = VAR_ANY; in eval_variable() 3296 if ((tv->v_type == VAR_FUNC || tv->v_type == VAR_PARTIAL) in set_var_const() 3399 else if (di->di_tv.v_type != tv->v_type) in set_var_const() 3461 if (copy || tv->v_type == VAR_NUMBER || tv->v_type == VAR_FLOAT) in set_var_const() 4354 else if (arg->v_type == VAR_FUNC || arg->v_type == VAR_STRING) in get_callback() 4382 tv->v_type = VAR_PARTIAL; in put_callback() [all …]
|
| H A D | job.c | 130 if (tv->v_type == VAR_UNKNOWN) in get_job_options() 132 if (tv->v_type != VAR_DICT) in get_job_options() 621 if (item->v_type != VAR_DICT) in get_job_options() 1039 argv[0].v_type = VAR_JOB; in job_cleanup() 1041 argv[1].v_type = VAR_NUMBER; in job_cleanup() 1074 tv.v_type = VAR_JOB; in set_ref_in_job() 1773 if (tv->v_type != VAR_JOB) in get_job_arg() 1799 rettv->v_type = VAR_CHANNEL; in f_job_getchannel() 1869 tv.v_type = VAR_JOB; in job_info_all() 1927 rettv->v_type = VAR_JOB; in f_job_start() [all …]
|
| H A D | match.c | 121 if (li->li_tv.v_type == VAR_LIST) in match_add() 931 if (tv->v_type != VAR_DICT) in matchadd_dict_arg() 1065 if (argvars[0].v_type != VAR_LIST) in f_setmatches() 1081 if (li->li_tv.v_type != VAR_DICT in f_setmatches() 1127 if (di->di_tv.v_type != VAR_LIST) in f_setmatches() 1188 || (argvars[2].v_type != VAR_UNKNOWN in f_matchadd() 1190 || (argvars[3].v_type != VAR_UNKNOWN in f_matchadd() 1201 if (argvars[3].v_type != VAR_UNKNOWN) in f_matchadd() 1244 || (argvars[2].v_type != VAR_UNKNOWN in f_matchaddpos() 1254 if (argvars[1].v_type != VAR_LIST) in f_matchaddpos() [all …]
|
| H A D | sound.c | 49 if (arg->v_type == VAR_UNKNOWN) in get_sound_callback() 164 argv[0].v_type = VAR_NUMBER; in invoke_sound_callback() 166 argv[1].v_type = VAR_NUMBER; in invoke_sound_callback() 168 argv[2].v_type = VAR_UNKNOWN; in invoke_sound_callback() 318 argv[0].v_type = VAR_NUMBER; in sound_wndproc() 320 argv[1].v_type = VAR_NUMBER; in sound_wndproc() 324 argv[2].v_type = VAR_UNKNOWN; in sound_wndproc()
|
| H A D | sign.c | 2222 if (li->li_tv.v_type == VAR_DICT) in sign_define_multiple() 2243 if (argvars[0].v_type == VAR_LIST && argvars[1].v_type == VAR_UNKNOWN) in f_sign_define() 2260 if (argvars[1].v_type != VAR_UNKNOWN && argvars[1].v_type != VAR_DICT) in f_sign_define() 2309 || (argvars[0].v_type != VAR_UNKNOWN in f_sign_getplaced() 2320 if (argvars[1].v_type != VAR_UNKNOWN) in f_sign_getplaced() 2552 && (argvars[4].v_type != VAR_DICT in f_sign_place() 2578 if (argvars[0].v_type != VAR_LIST) in f_sign_placelist() 2588 if (li->li_tv.v_type == VAR_DICT) in f_sign_placelist() 2629 if (argvars[0].v_type == VAR_LIST && argvars[1].v_type == VAR_UNKNOWN) in f_sign_undefine() 2783 if (argvars[1].v_type != VAR_DICT) in f_sign_unplace() [all …]
|
| H A D | if_ruby.c | 1179 if (tv->v_type == VAR_STRING) in vim_to_ruby() 1231 else if (tv->v_type == VAR_BOOL || tv->v_type == VAR_SPECIAL) in vim_to_ruby() 1883 rettv->v_type = VAR_SPECIAL; in ruby_convert_to_vim_value() 1887 rettv->v_type = VAR_BOOL; in ruby_convert_to_vim_value() 1891 rettv->v_type = VAR_BOOL; in ruby_convert_to_vim_value() 1896 rettv->v_type = VAR_NUMBER; in ruby_convert_to_vim_value() 1901 rettv->v_type = VAR_FLOAT; in ruby_convert_to_vim_value() 1912 rettv->v_type = VAR_STRING; in ruby_convert_to_vim_value() 1939 rettv->v_type = VAR_LIST; in ruby_convert_to_vim_value() 1959 rettv->v_type = VAR_DICT; in ruby_convert_to_vim_value() [all …]
|
| H A D | textprop.c | 135 if (arg->v_type != VAR_DICT) in get_bufnr_from_arg() 175 if (argvars[2].v_type != VAR_DICT) in f_prop_add() 658 || (argvars[1].v_type != VAR_UNKNOWN in f_prop_clear() 664 if (argvars[1].v_type != VAR_UNKNOWN) in f_prop_clear() 667 if (argvars[2].v_type != VAR_UNKNOWN) in f_prop_clear() 747 if (argvars[1].v_type != VAR_UNKNOWN) in f_prop_find() 914 if (argvars[1].v_type != VAR_UNKNOWN) in f_prop_list() 971 || (argvars[1].v_type != VAR_UNKNOWN in f_prop_remove() 985 if (argvars[2].v_type != VAR_UNKNOWN) in f_prop_remove() 1298 if (argvars[1].v_type != VAR_UNKNOWN) in f_prop_type_get() [all …]
|
| H A D | popupwin.c | 88 if (di->di_tv.v_type != VAR_LIST) in set_padding_border() 2083 tv.v_type = VAR_STRING; in popup_create() 2206 argv[1].v_type = VAR_NUMBER; in invoke_popup_callback() 2292 res.v_type = VAR_NUMBER; in popup_close_with_retval() 2399 rettv->v_type = VAR_BOOL; in f_popup_filter_menu() 2401 res.v_type = VAR_NUMBER; in f_popup_filter_menu() 2463 rettv->v_type = VAR_BOOL; in f_popup_filter_yesno() 2477 res.v_type = VAR_NUMBER; in f_popup_filter_yesno() 2639 if (argvars[1].v_type != VAR_STRING && argvars[1].v_type != VAR_LIST) in f_popup_settext() 4145 tv.v_type = VAR_PARTIAL; in set_ref_in_one_popup() [all …]
|
| H A D | blob.c | 54 rettv->v_type = VAR_BLOB; in rettv_blob_set() 65 to->v_type = VAR_BLOB; in blob_copy() 312 rettv->v_type = VAR_BLOB; in blob_slice_or_index() 347 rettv->v_type = VAR_NUMBER; in blob_slice_or_index() 439 if (argvars[2].v_type == VAR_UNKNOWN) in blob_remove() 476 rettv->v_type = VAR_BLOB; in blob_remove()
|