Home
last modified time | relevance | path

Searched refs:li_tv (Results 1 – 25 of 44) sorted by relevance

12

/vim-8.2.3635/src/
H A Dlist.c162 li->li_tv = *tv; in list_set_item()
388 if (!tv_equal(&item1->li_tv, &item2->li_tv, ic, recursive)) in list_equal()
630 li->li_tv = *tv; in list_append_tv_move()
885 tv_op(&dest_li->li_tv, &src_li->li_tv, op); in list_assign_range()
893 copy_tv(&src_li->li_tv, &dest_li->li_tv); in list_assign_range()
1243 if (item_copy(&item->li_tv, &ni->li_tv, deep, copyID) == FAIL) in list_copy()
1250 copy_tv(&item->li_tv, &ni->li_tv); in list_copy()
1512 item->li_tv = tv; in eval_list()
1769 li->li_tv = item->li_tv; in list_remove()
2589 li->li_tv = newtv; in filter_map()
[all …]
H A Ddigraph.c2158 li->li_tv.v_type = VAR_LIST; in digraph_getlist_appendpair()
2159 li->li_tv.v_lock = 0; in digraph_getlist_appendpair()
2162 li->li_tv.vval.v_list = l2; in digraph_getlist_appendpair()
2171 li2->li_tv.v_type = VAR_STRING; in digraph_getlist_appendpair()
2172 li2->li_tv.v_lock = 0; in digraph_getlist_appendpair()
2183 li2->li_tv.v_type = VAR_STRING; in digraph_getlist_appendpair()
2184 li2->li_tv.v_lock = 0; in digraph_getlist_appendpair()
2519 if (pli->li_tv.v_type != VAR_LIST) in f_digraph_setlist()
2525 l = pli->li_tv.vval.v_list; in f_digraph_setlist()
2532 if (!digraph_set_common(&l->lv_first->li_tv, in f_digraph_setlist()
[all …]
H A Ddict.c1236 li->li_tv.v_type = VAR_STRING; in dict_list()
1237 li->li_tv.v_lock = 0; in dict_list()
1238 li->li_tv.vval.v_string = vim_strsave(di->di_key); in dict_list()
1243 copy_tv(&di->di_tv, &li->li_tv); in dict_list()
1249 li->li_tv.v_type = VAR_LIST; in dict_list()
1250 li->li_tv.v_lock = 0; in dict_list()
1251 li->li_tv.vval.v_list = l2; in dict_list()
1260 li2->li_tv.v_type = VAR_STRING; in dict_list()
1261 li2->li_tv.v_lock = 0; in dict_list()
1262 li2->li_tv.vval.v_string = vim_strsave(di->di_key); in dict_list()
[all …]
H A Dmatch.c121 if (li->li_tv.v_type == VAR_LIST) in match_add()
123 subl = li->li_tv.vval.v_list; in match_add()
129 lnum = tv_get_number_chk(&subli->li_tv, &error); in match_add()
141 col = tv_get_number_chk(&subli->li_tv, &error); in match_add()
147 len = tv_get_number_chk(&subli->li_tv, &error); in match_add()
155 else if (li->li_tv.v_type == VAR_NUMBER) in match_add()
157 if (li->li_tv.vval.v_number == 0) in match_add()
162 m->pos.pos[i].lnum = li->li_tv.vval.v_number; in match_add()
1081 if (li->li_tv.v_type != VAR_DICT in f_setmatches()
1082 || (d = li->li_tv.vval.v_dict) == NULL) in f_setmatches()
[all …]
H A Dpopupwin.c535 mincol = tv_get_number(&li->li_tv); in handle_moved_argument()
761 str = tv_get_string(&li->li_tv); in apply_general_options()
838 if (li->li_tv.v_type != VAR_LIST in apply_general_options()
839 || li->li_tv.vval.v_list == NULL in apply_general_options()
980 if (li->li_tv.v_type == VAR_STRING) in add_popup_strings()
982 p = li->li_tv.vval.v_string; in add_popup_strings()
1003 if (li->li_tv.v_type != VAR_DICT) in add_popup_dicts()
1008 dict = li->li_tv.vval.v_dict; in add_popup_dicts()
1022 dict = li->li_tv.vval.v_dict; in add_popup_dicts()
3431 cols = tv_get_number(&li->li_tv); in popup_update_mask()
[all …]
H A Dmbyte.c5501 return li1->li_tv.vval.v_number - li2->li_tv.vval.v_number; in tv_nr_compare()
5546 if (li->li_tv.v_type != VAR_LIST || li->li_tv.vval.v_list == NULL) in f_setcellwidths()
5553 lili = li->li_tv.vval.v_list->lv_first; in f_setcellwidths()
5557 if (lili->li_tv.v_type != VAR_NUMBER) in f_setcellwidths()
5561 n1 = lili->li_tv.vval.v_number; in f_setcellwidths()
5569 else if (i == 1 && lili->li_tv.vval.v_number < n1) in f_setcellwidths()
5575 else if (i == 2 && (lili->li_tv.vval.v_number < 1 in f_setcellwidths()
5576 || lili->li_tv.vval.v_number > 2)) in f_setcellwidths()
5609 n1 = lili->li_tv.vval.v_number; in f_setcellwidths()
5619 table[item].last = lili->li_tv.vval.v_number; in f_setcellwidths()
[all …]
H A Dsearch.c4165 pos.lnum = tv_get_number_chk(&li->li_tv, &error); in f_searchcount()
4653 itemstr = li->li_tv.vval.v_string; in fuzzy_match_in_list()
4654 else if (li->li_tv.v_type == VAR_DICT && in fuzzy_match_in_list()
4666 li->li_tv.vval.v_dict->dv_refcount++; in fuzzy_match_in_list()
4668 argv[0].vval.v_dict = li->li_tv.vval.v_dict; in fuzzy_match_in_list()
4675 dict_unref(li->li_tv.vval.v_dict); in fuzzy_match_in_list()
4735 if (li == NULL || li->li_tv.vval.v_list == NULL) in fuzzy_match_in_list()
4737 l = li->li_tv.vval.v_list; in fuzzy_match_in_list()
4747 list_append_tv(l, &ptrs[i].item->li_tv); in fuzzy_match_in_list()
4756 l = li->li_tv.vval.v_list; in fuzzy_match_in_list()
[all …]
H A Devalfunc.c4217 tv = &li->li_tv; in f_get()
7020 vim_free(li1->li_tv.vval.v_string); in find_some_match()
7023 li3->li_tv.vval.v_number = in find_some_match()
7025 li4->li_tv.vval.v_number = in find_some_match()
7054 copy_tv(&li->li_tv, rettv); in find_some_match()
7639 x = (UINT32_T)lx->li_tv.vval.v_number; in f_rand()
7640 y = (UINT32_T)ly->li_tv.vval.v_number; in f_rand()
7641 z = (UINT32_T)lz->li_tv.vval.v_number; in f_rand()
9409 li->li_tv.v_type = VAR_STRING; in f_spellsuggest()
9410 li->li_tv.v_lock = 0; in f_spellsuggest()
[all …]
H A Djson.c273 if (json_encode_item(gap, &li->li_tv, copyID, in json_encode_item()
278 && li->li_tv.v_type == VAR_SPECIAL in json_encode_item()
279 && li->li_tv.vval.v_number == VVAL_NONE) in json_encode_item()
958 li->li_tv = *cur_item; in json_decode_item()
H A Dsign.c2222 if (li->li_tv.v_type == VAR_DICT) in sign_define_multiple()
2223 retval = sign_define_from_dict(NULL, li->li_tv.vval.v_dict); in sign_define_multiple()
2588 if (li->li_tv.v_type == VAR_DICT) in f_sign_placelist()
2590 li->li_tv.vval.v_dict); in f_sign_placelist()
2610 name = tv_get_string_chk(&li->li_tv); in sign_undefine_multiple()
2818 if (li->li_tv.v_type == VAR_DICT) in f_sign_unplacelist()
2819 retval = sign_unplace_from_dict(NULL, li->li_tv.vval.v_dict); in f_sign_unplacelist()
H A Dtesting.c654 tv = &list->lv_first->li_tv; in f_assert_fails()
663 tv = &list->lv_u.mat.lv_last->li_tv; in f_assert_fails()
1380 if (li->li_tv.v_type != VAR_STRING) in f_test_gui_drop_files()
1383 fnames[count] = vim_strsave(li->li_tv.vval.v_string); in f_test_gui_drop_files()
H A Dchange.c178 li->li_tv.vval.v_dict, (char_u *)"lnum"); in check_recorded_changes()
180 li->li_tv.vval.v_dict, (char_u *)"end"); in check_recorded_changes()
392 lnum = dict_get_number(li->li_tv.vval.v_dict, (char_u *)"lnum"); in invoke_listeners()
395 lnum = dict_get_number(li->li_tv.vval.v_dict, (char_u *)"end"); in invoke_listeners()
398 added += dict_get_number(li->li_tv.vval.v_dict, (char_u *)"added"); in invoke_listeners()
H A Devalvars.c494 *pp = tv_get_string(&li->li_tv); in get_spellword()
499 return (int)tv_get_number(&li->li_tv); in get_spellword()
979 arg = ex_let_one(arg, &item->li_tv, TRUE, in ex_let_vars()
995 list_append_tv(l, &item->li_tv); in ex_let_vars()
1711 if (value_check_lock(li->li_tv.v_lock, name, FALSE)) in list_unlet_range()
1863 item_lock(&li->li_tv, deep, lock, FALSE); in do_lock_var()
1870 item_lock(&lp->ll_li->li_tv, deep, lock, FALSE); in do_lock_var()
1947 item_lock(&li->li_tv, deep - 1, lock, check_refcount); in item_lock()
2415 l->lv_u.mat.lv_last->li_tv.v_lock = VAR_FIXED; in set_argv_var()
H A Dif_perl.xs1250 item->li_tv.v_type = VAR_NUMBER; in perl_to_vim()
1251 item->li_tv.v_lock = 0; in perl_to_vim()
1252 item->li_tv.vval.v_number = 0; in perl_to_vim()
1258 perl_to_vim(*item2, &item->li_tv) == FAIL) in perl_to_vim()
H A Dtag.c1374 if (item->li_tv.v_type != VAR_DICT) in find_tagfunc_tags()
1390 dict_iterate_start(&item->li_tv, &iter); in find_tagfunc_tags()
1473 dict_iterate_start(&item->li_tv, &iter); in find_tagfunc_tags()
4227 if (li->li_tv.v_type != VAR_DICT || li->li_tv.vval.v_dict == NULL) in tagstack_push_items()
4229 itemdict = li->li_tv.vval.v_dict; in tagstack_push_items()
H A Dif_py_both.h795 if (!(newObj = VimToPython(&curr->li_tv, depth + 1, lookup_dict))) in VimToPython()
2310 li->li_tv.v_lock = 0; in list_py_concat()
2311 li->li_tv.v_type = VAR_UNKNOWN; in list_py_concat()
2313 if (_ConvertFromPyObject(item, &li->li_tv, lookup_dict) == -1) in list_py_concat()
2410 return ConvertToPyObject(&li->li_tv); in ListIndex()
2716 clear_tv(&li->li_tv); in ListAssIndex()
2742 clear_tv(&li->li_tv); in ListAssIndex()
2743 copy_tv(&tv, &li->li_tv); in ListAssIndex()
2830 if (!(ret = ConvertToPyObject(&((*lii)->lw.lw_item->li_tv)))) in ListIterNext()
3063 copy_tv(&li->li_tv, curtv++); in FunctionConstructor()
H A Dterminal.c592 &argvar->vval.v_list->lv_first->li_tv)) == NULL) in term_start()
665 char_u *s = tv_get_string_chk(&item->li_tv); in term_start()
2277 char_u *s = tv_get_string(&item->li_tv); in term_paste_register()
4140 color_name = tv_get_string_chk(&li->li_tv); in set_ansi_colors_list()
4183 char_u *fname = tv_get_string(&item->li_tv); in handle_drop_command()
4204 if (opt_item != NULL && opt_item->li_tv.v_type == VAR_DICT in handle_drop_command()
4205 && opt_item->li_tv.vval.v_dict != NULL) in handle_drop_command()
4207 dict_T *dict = opt_item->li_tv.vval.v_dict; in handle_drop_command()
4284 func = tv_get_string(&item->li_tv); in handle_call_command()
4294 argvars[1] = item->li_next->li_tv; in handle_call_command()
[all …]
H A Dtextprop.c353 if (li->li_tv.v_type != VAR_LIST || li->li_tv.vval.v_list == NULL) in f_prop_add_list()
359 pos_list = li->li_tv.vval.v_list; in f_prop_add_list()
H A Dmisc1.c2497 li->li_tv.v_type = VAR_STRING; in get_cmd_output_as_rettv()
2498 li->li_tv.v_lock = 0; in get_cmd_output_as_rettv()
2499 li->li_tv.vval.v_string = s; in get_cmd_output_as_rettv()
H A Dif_lua.c886 luaV_pushtypval(L, &li->li_tv); in luaV_list_iter()
918 luaV_pushtypval(L, &li->li_tv); in luaV_list_index()
972 clear_tv(&li->li_tv); in luaV_list_newindex()
973 li->li_tv = v; in luaV_list_newindex()
H A Dvim9execute.c2488 if (error_if_locked(li->li_tv.v_lock, in exec_instructions()
2492 clear_tv(&li->li_tv); in exec_instructions()
2493 li->li_tv = *tv; in exec_instructions()
3301 copy_tv(&li->li_tv, STACK_TV_BOT(0)); in exec_instructions()
4087 copy_tv(&li->li_tv, STACK_TV_BOT(-1)); in exec_instructions()
4468 list_set_item(rem_list, i, &li->li_tv); in exec_instructions()
4479 copy_tv(&li->li_tv, tv); in exec_instructions()
4799 if (check_typval_arg_type(expected, &li->li_tv, in call_def_function()
H A Dvim9type.c293 member_type = typval2type(&l->lv_first->li_tv, copyID, type_gap, TRUE); in typval2type_int()
295 common_type(typval2type(&li->li_tv, copyID, type_gap, TRUE), in typval2type_int()
H A Dblob.c535 n = tv_get_number_chk(&li->li_tv, &error); in f_list2blob()
H A Dregexp.c1854 li->li_tv.v_type = VAR_STRING; in fill_submatch_list()
1855 li->li_tv.vval.v_string = s; in fill_submatch_list()
1867 vim_free(sl->sl_items[i].li_tv.vval.v_string); in clear_submatch_list()
H A Dfilepath.c1843 li->li_tv.v_type = VAR_STRING; in read_file_or_blob()
1844 li->li_tv.v_lock = 0; in read_file_or_blob()
1845 li->li_tv.vval.v_string = s; in read_file_or_blob()
2259 if (tv_get_string_chk(&li->li_tv) == NULL) in f_writefile()

12