Lines Matching refs:v_type
41 rettv->v_type = VAR_STRING; in alloc_string_tv()
57 switch (varp->v_type) in free_tv()
109 switch (varp->v_type) in clear_tv()
182 switch (varp->v_type) in tv_get_bool_or_number_chk()
221 if (varp->v_type == VAR_BOOL) in tv_get_bool_or_number_chk()
303 switch (varp->v_type) in tv_get_float()
360 if (args[idx].v_type != VAR_STRING) in check_for_string_arg()
393 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_string_arg()
403 if (args[idx].v_type != VAR_NUMBER) in check_for_number_arg()
420 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_number_arg()
430 if (args[idx].v_type != VAR_FLOAT && args[idx].v_type != VAR_NUMBER) in check_for_float_or_nr_arg()
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()
468 if (args[idx].v_type == VAR_UNKNOWN) in check_for_opt_bool_arg()
479 if (args[idx].v_type != VAR_BLOB) in check_for_blob_arg()
496 if (args[idx].v_type != VAR_LIST) in check_for_list_arg()
513 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_list_arg()
523 if (args[idx].v_type != VAR_DICT) in check_for_dict_arg()
540 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_dict_arg()
550 if (args[idx].v_type != VAR_CHANNEL && args[idx].v_type != VAR_JOB) in check_for_chan_or_job_arg()
568 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_chan_or_job_arg()
578 if (args[idx].v_type != VAR_JOB) in check_for_job_arg()
595 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_job_arg()
606 if (args[idx].v_type != VAR_STRING && args[idx].v_type != VAR_NUMBER) in check_for_string_or_number_arg()
623 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_string_or_number_arg()
643 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_buffer_arg()
663 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_lnum_arg()
673 if (args[idx].v_type != VAR_STRING && args[idx].v_type != VAR_BLOB) in check_for_string_or_blob_arg()
690 if (args[idx].v_type != VAR_STRING && args[idx].v_type != VAR_LIST) in check_for_string_or_list_arg()
707 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_string_or_list_arg()
717 if (args[idx].v_type != VAR_STRING && args[idx].v_type != VAR_DICT) in check_for_string_or_dict_arg()
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()
755 return (args[idx].v_type == VAR_UNKNOWN in check_for_opt_string_or_number_or_list_arg()
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()
785 if (args[idx].v_type != VAR_LIST && args[idx].v_type != VAR_BLOB) in check_for_list_or_blob_arg()
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()
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()
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()
914 switch (varp->v_type) in tv_get_string_buf_chk_strict()
983 vartype_name(varp->v_type)); in tv_get_string_buf_chk_strict()
996 if (varp->v_type == VAR_LIST in tv_stringify()
997 || varp->v_type == VAR_DICT in tv_stringify()
998 || varp->v_type == VAR_BLOB in tv_stringify()
999 || varp->v_type == VAR_FUNC in tv_stringify()
1000 || varp->v_type == VAR_PARTIAL in tv_stringify()
1001 || varp->v_type == VAR_FLOAT) in tv_stringify()
1024 switch (tv->v_type) in tv_check_lock()
1055 to->v_type = from->v_type; in copy_tv()
1057 switch (from->v_type) in copy_tv()
1094 if (from->v_type == VAR_FUNC) in copy_tv()
1160 if (type_is && typ1->v_type != typ2->v_type) in typval_compare()
1166 else if (typ1->v_type == VAR_BLOB || typ2->v_type == VAR_BLOB) in typval_compare()
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()
1193 else if (typ1->v_type == VAR_LIST || typ2->v_type == VAR_LIST) 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()
1222 else if (typ1->v_type == VAR_DICT || typ2->v_type == VAR_DICT) in typval_compare()
1226 n1 = (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()
1251 else if (typ1->v_type == VAR_FUNC || typ2->v_type == VAR_FUNC in typval_compare()
1252 || typ1->v_type == VAR_PARTIAL || typ2->v_type == VAR_PARTIAL) in typval_compare()
1261 if ((typ1->v_type == VAR_PARTIAL in typval_compare()
1263 || (typ2->v_type == VAR_PARTIAL in typval_compare()
1270 if (typ1->v_type == VAR_FUNC && typ2->v_type == VAR_FUNC) in typval_compare()
1274 else if (typ1->v_type == VAR_PARTIAL in typval_compare()
1275 && typ2->v_type == VAR_PARTIAL) in typval_compare()
1289 else if ((typ1->v_type == VAR_FLOAT || typ2->v_type == VAR_FLOAT) in typval_compare()
1316 else if ((typ1->v_type == VAR_NUMBER || typ2->v_type == VAR_NUMBER) in typval_compare()
1336 else if (in_vim9script() && (typ1->v_type == VAR_BOOL in typval_compare()
1337 || typ2->v_type == VAR_BOOL in typval_compare()
1338 || (typ1->v_type == VAR_SPECIAL in typval_compare()
1339 && typ2->v_type == VAR_SPECIAL))) in typval_compare()
1341 if (typ1->v_type != typ2->v_type) in typval_compare()
1344 vartype_name(typ1->v_type), vartype_name(typ2->v_type)); in typval_compare()
1358 vartype_name(typ1->v_type)); in typval_compare()
1366 && ((typ1->v_type != VAR_STRING && typ1->v_type != VAR_SPECIAL) in typval_compare()
1367 || (typ2->v_type != VAR_STRING && typ2->v_type != VAR_SPECIAL))) in typval_compare()
1370 vartype_name(typ1->v_type), vartype_name(typ2->v_type)); in typval_compare()
1405 typ1->v_type = VAR_BOOL; in typval_compare()
1410 typ1->v_type = VAR_NUMBER; in typval_compare()
1431 if (!quotes && arg->v_type == VAR_STRING) in typval_tostring()
1454 || (tv->v_type == VAR_LIST in tv_islocked()
1457 || (tv->v_type == VAR_DICT in tv_islocked()
1474 s1 = tv1->v_type == VAR_FUNC ? tv1->vval.v_string in func_equal()
1478 s2 = tv2->v_type == VAR_FUNC ? tv2->vval.v_string in func_equal()
1491 d1 = tv1->v_type == VAR_FUNC ? NULL : tv1->vval.v_partial->pt_dict; in func_equal()
1492 d2 = tv2->v_type == VAR_FUNC ? NULL : tv2->vval.v_partial->pt_dict; in func_equal()
1502 a1 = tv1->v_type == VAR_FUNC ? 0 : tv1->vval.v_partial->pt_argc; in func_equal()
1503 a2 = tv2->v_type == VAR_FUNC ? 0 : tv2->vval.v_partial->pt_argc; in func_equal()
1548 if ((tv1->v_type == VAR_FUNC in tv_equal()
1549 || (tv1->v_type == VAR_PARTIAL && tv1->vval.v_partial != NULL)) in tv_equal()
1550 && (tv2->v_type == VAR_FUNC in tv_equal()
1551 || (tv2->v_type == VAR_PARTIAL && tv2->vval.v_partial != NULL))) in tv_equal()
1559 if (tv1->v_type != tv2->v_type in tv_equal()
1560 && ((tv1->v_type != VAR_BOOL && tv1->v_type != VAR_SPECIAL) in tv_equal()
1561 || (tv2->v_type != VAR_BOOL && tv2->v_type != VAR_SPECIAL))) in tv_equal()
1564 switch (tv1->v_type) in tv_equal()
1675 rettv->v_type = VAR_STRING; in eval_option()
1680 rettv->v_type = in_vim9script() && opt_type == gov_hidden_bool in eval_option()
1688 rettv->v_type = VAR_BOOL; in eval_option()
1693 rettv->v_type = VAR_NUMBER; in eval_option()
1699 rettv->v_type = VAR_STRING; in eval_option()
1779 rettv->v_type = VAR_FLOAT; in eval_number()
1831 rettv->v_type = VAR_NUMBER; in eval_number()
1880 rettv->v_type = VAR_STRING; in eval_string()
2022 rettv->v_type = VAR_STRING; in eval_lit_string()
2102 rettv->v_type = VAR_STRING; in eval_env_var()
2120 if (argvars[0].v_type != VAR_STRING || !in_vim9script()) in tv_get_lnum()
2122 if (lnum <= 0 && argvars[0].v_type != VAR_NUMBER) in tv_get_lnum()
2142 if (argvars[0].v_type == VAR_STRING in tv_get_lnum_buf()
2159 if (tv->v_type == VAR_NUMBER) in tv_get_buf()
2161 if (tv->v_type != VAR_STRING) in tv_get_buf()
2189 && tv->v_type != VAR_NUMBER in tv_get_buf_from_arg()
2190 && tv->v_type != VAR_STRING) in tv_get_buf_from_arg()