Home
last modified time | relevance | path

Searched refs:di_tv (Results 1 – 25 of 36) sorted by relevance

12

/vim-8.2.3635/src/
H A Ddict.c231 di->di_tv.v_lock = 0; in dictitem_alloc()
251 copy_tv(&org->di_tv, &di->di_tv); in dictitem_copy()
278 clear_tv(&item->di_tv); in dictitem_free()
320 if (item_copy(&HI2DI(hi)->di_tv, &di->di_tv, deep, in dict_copy()
328 copy_tv(&HI2DI(hi)->di_tv, &di->di_tv); in dict_copy()
1016 item->di_tv = tv; in eval_dict()
1132 clear_tv(&di1->di_tv); in dict_extend()
1133 copy_tv(&HI2DI(hi2)->di_tv, &di1->di_tv); in dict_extend()
1180 if (!tv_equal(&HI2DI(hi)->di_tv, &item2->di_tv, ic, recursive)) in dict_equal()
1367 *rettv = di->di_tv; in dict_remove()
[all …]
H A Devalvars.c159 #define vv_type vv_di.di_tv.v_type
166 #define vv_tv vv_di.di_tv
2249 vimvars[idx].vv_di.di_tv = *tv; in set_vim_var_tv()
2588 tv = &v->di_tv; in eval_variable()
3098 clear_tv(&v->di_tv); in vars_clear_ext()
3117 clear_tv(&di->di_tv); in delete_var()
3406 clear_tv(&di->di_tv); in set_var_const()
3458 dest_tv = &di->di_tv; in set_var_const()
3714 copy_tv(&v->di_tv, rettv); in getwinvar()
4090 copy_tv(&v->di_tv, rettv); in f_gettabvar()
[all …]
H A Dpopupwin.c51 val = tv_get_string(&di->di_tv); in popup_options_one()
88 if (di->di_tv.v_type != VAR_LIST) in set_padding_border()
488 if (di->di_tv.v_type == VAR_STRING && di->di_tv.vval.v_string != NULL) in handle_moved_argument()
510 && di->di_tv.vval.v_list != NULL in handle_moved_argument()
561 if (di->di_tv.v_type != VAR_STRING) in check_highlight()
565 str = tv_get_string(&di->di_tv); in check_highlight()
714 if (di->di_tv.v_type == VAR_STRING && di->di_tv.vval.v_string != NULL) in apply_general_options()
749 if (di->di_tv.v_type != VAR_LIST || di->di_tv.vval.v_list == NULL) in apply_general_options()
781 if (di->di_tv.v_type != VAR_LIST) in apply_general_options()
831 if (di->di_tv.v_type == VAR_LIST && di->di_tv.vval.v_list != NULL) in apply_general_options()
[all …]
H A Dclientserver.c778 v.di_tv.v_type = VAR_STRING; in remote_common()
779 v.di_tv.vval.v_string = vim_strsave(str); in remote_common()
780 set_var(idvar, &v.di_tv, FALSE); in remote_common()
781 vim_free(v.di_tv.vval.v_string); in remote_common()
885 v.di_tv.v_type = VAR_STRING; in f_remote_peek()
886 v.di_tv.vval.v_string = vim_strsave(s); in f_remote_peek()
889 set_var(retvar, &v.di_tv, FALSE); in f_remote_peek()
890 vim_free(v.di_tv.vval.v_string); in f_remote_peek()
H A Dquickfix.c6743 if (di->di_tv.v_type == VAR_LIST && di->di_tv.vval.v_list != NULL) in qf_get_list_from_lines()
6881 if (di->di_tv.v_type == VAR_NUMBER) in qf_getprop_qfidx()
6892 && di->di_tv.vval.v_string != NULL in qf_getprop_qfidx()
6903 if (di->di_tv.v_type == VAR_NUMBER) in qf_getprop_qfidx()
7110 if (di->di_tv.v_type != VAR_NUMBER) in qf_get_properties()
7112 eidx = di->di_tv.vval.v_number; in qf_get_properties()
7315 if (di->di_tv.v_type == VAR_NUMBER) in qf_setprop_get_qfidx()
7335 && di->di_tv.vval.v_string != NULL in qf_setprop_get_qfidx()
7425 if (di->di_tv.v_type != VAR_LIST || di->di_tv.vval.v_list == NULL) in qf_setprop_items_from_lines()
7448 copy_tv(&di->di_tv, ctx); in qf_setprop_context()
[all …]
H A Dsession.c541 if ((this_var->di_tv.v_type == VAR_NUMBER in store_session_globals()
542 || this_var->di_tv.v_type == VAR_STRING) in store_session_globals()
547 p = vim_strsave_escaped(tv_get_string(&this_var->di_tv), in store_session_globals()
558 (this_var->di_tv.v_type == VAR_STRING) ? '"' in store_session_globals()
561 (this_var->di_tv.v_type == VAR_STRING) ? '"' in store_session_globals()
571 else if (this_var->di_tv.v_type == VAR_FLOAT in store_session_globals()
574 float_T f = this_var->di_tv.vval.v_float; in store_session_globals()
H A Dtextprop.c143 if (di != NULL && (di->di_tv.v_type != VAR_NUMBER in get_bufnr_from_arg()
144 || di->di_tv.vval.v_number != 0)) in get_bufnr_from_arg()
146 *buf = get_buf_arg(&di->di_tv); in get_bufnr_from_arg()
762 lnum = tv_get_number(&di->di_tv); in f_prop_find()
766 col = tv_get_number(&di->di_tv); in f_prop_find()
1183 if (tv_get_bool(&di->di_tv)) in prop_type_set()
1191 prop->pt_priority = tv_get_number(&di->di_tv); in prop_type_set()
1196 if (tv_get_bool(&di->di_tv)) in prop_type_set()
1205 if (tv_get_bool(&di->di_tv)) in prop_type_set()
H A Duserfunc.c1572 tv = &v->di_tv; in deref_func_name()
1987 v->di_tv.v_lock = VAR_FIXED; in add_nr_var()
1988 v->di_tv.vval.v_number = nr; in add_nr_var()
2078 copy_tv(&di->di_tv, &di->di_tv); in cleanup_function_call()
2530 v->di_tv.v_type = VAR_DICT; in call_user_func()
2531 v->di_tv.v_lock = 0; in call_user_func()
2556 v->di_tv.v_type = VAR_LIST; in call_user_func()
2557 v->di_tv.v_lock = VAR_FIXED; in call_user_func()
2638 v->di_tv.v_lock = VAR_FIXED; in call_user_func()
2648 copy_tv(&v->di_tv, &v->di_tv); in call_user_func()
[all …]
H A Dsign.c2331 (void)tv_get_number_chk(&di->di_tv, &notanum); in f_sign_getplaced()
2334 lnum = tv_get_lnum(&di->di_tv); in f_sign_getplaced()
2339 sign_id = (int)tv_get_number_chk(&di->di_tv, &notanum); in f_sign_getplaced()
2345 group = tv_get_string_chk(&di->di_tv); in f_sign_getplaced()
2437 id_tv = &di->di_tv; in sign_place_from_dict()
2458 group_tv = &di->di_tv; in sign_place_from_dict()
2482 name_tv = &di->di_tv; in sign_place_from_dict()
2495 buf_tv = &di->di_tv; in sign_place_from_dict()
2507 lnum = tv_get_lnum(&di->di_tv); in sign_place_from_dict()
2519 prio = (int)tv_get_number_chk(&di->di_tv, &notanum); in sign_place_from_dict()
[all …]
H A Dvim9script.c855 sv->sv_tv = &di->di_tv; in update_vim9_script_var()
875 sv->sv_tv = &di->di_tv; in update_vim9_script_var()
896 sv = find_typval_in_script(&di->di_tv); in update_vim9_script_var()
947 sav->sav_tv = di->di_tv; in hide_script_var()
948 di->di_tv.v_type = VAR_UNKNOWN; in hide_script_var()
H A Dif_lua.c1069 luaV_pushtypval(L, &di->di_tv); in luaV_dict_iter()
1103 luaV_pushtypval(L, &di->di_tv); in luaV_dict_index()
1104 if (di->di_tv.v_type == VAR_FUNC) // funcref? in luaV_dict_index()
1156 clear_tv(&di->di_tv); in luaV_dict_newindex()
1164 di->di_tv = tv; in luaV_dict_newindex()
1871 copy_tv(&tv, &di->di_tv); in luaV_setvar()
1882 clear_tv(&di->di_tv); in luaV_setvar()
1884 copy_tv(&tv, &di->di_tv); in luaV_setvar()
1905 luaV_pushtypval(L, &di->di_tv); in luaV_getvar()
2020 di->di_tv = v; in luaV_dict()
H A Dsearch.c4145 pattern = tv_get_string_chk(&di->di_tv); in f_searchcount()
4152 if (di->di_tv.v_type != VAR_LIST) in f_searchcount()
4157 if (list_len(di->di_tv.vval.v_list) != 3) in f_searchcount()
4162 li = list_find(di->di_tv.vval.v_list, 0L); in f_searchcount()
4169 li = list_find(di->di_tv.vval.v_list, 1L); in f_searchcount()
4176 li = list_find(di->di_tv.vval.v_list, 2L); in f_searchcount()
4835 if (di->di_tv.v_type != VAR_STRING in do_fuzzymatch()
4836 || di->di_tv.vval.v_string == NULL in do_fuzzymatch()
4837 || *di->di_tv.vval.v_string == NUL) in do_fuzzymatch()
4842 key = tv_get_string(&di->di_tv); in do_fuzzymatch()
[all …]
H A Dtesting.c187 if (item2 == NULL || !tv_equal(&HI2DI(hi)->di_tv, in fill_assert_error()
188 &item2->di_tv, FALSE, FALSE)) in fill_assert_error()
192 (char *)hi->hi_key, &HI2DI(hi)->di_tv); in fill_assert_error()
195 (char *)hi->hi_key, &item2->di_tv); in fill_assert_error()
213 (char *)hi->hi_key, &HI2DI(hi)->di_tv); in fill_assert_error()
H A Dvim9execute.c1414 if (v->di_tv.v_type != VAR_PARTIAL && v->di_tv.v_type != VAR_FUNC) in call_eval_func()
2110 copy_tv(&di->di_tv, STACK_TV_BOT(0)); in exec_instructions()
2282 clear_tv(&di->di_tv); in exec_instructions()
2283 di->di_tv = *STACK_TV_BOT(0); in exec_instructions()
2409 clear_tv(&di->di_tv); in exec_instructions()
2410 di->di_tv = *STACK_TV_BOT(0); in exec_instructions()
2527 clear_tv(&di->di_tv); in exec_instructions()
2528 di->di_tv = *tv; in exec_instructions()
3041 item->di_tv.v_lock = 0; in exec_instructions()
4136 copy_tv(&di->di_tv, tv); in exec_instructions()
[all …]
H A Dhighlight.c2312 if (colentry->di_tv.v_type == VAR_STRING) in colorname2rgb()
2314 colstr = tv_get_string_strict(&colentry->di_tv); in colorname2rgb()
2326 if (colentry->di_tv.v_type == VAR_NUMBER) in colorname2rgb()
2328 colnum = tv_get_number(&colentry->di_tv); in colorname2rgb()
4265 if (di->di_tv.v_type != VAR_STRING || di->di_tv.vval.v_string == NULL) in hldict_get_string()
4272 return di->di_tv.vval.v_string; in hldict_get_string()
4296 if (di->di_tv.v_type != VAR_DICT || di->di_tv.vval.v_dict == NULL) in hldict_attr_to_str()
4302 attrdict = di->di_tv.vval.v_dict; in hldict_attr_to_str()
H A Deval.c933 lp->ll_tv = &v->di_tv; in get_lval()
981 && lp->ll_tv == &v->di_tv in get_lval()
1183 lp->ll_tv = &lp->ll_di->di_tv; in get_lval()
1350 && !tv_check_lock(&di->di_tv, lp->ll_name, FALSE))) in set_var_lval()
1420 lp->ll_tv = &di->di_tv; in set_var_lval()
4297 copy_tv(&item->di_tv, &tmp); in eval_index_inner()
4469 abort = abort || set_ref_in_item(&buf->b_bufvar.di_tv, copyID, in garbage_collect()
4474 abort = abort || set_ref_in_item(&wp->w_winvar.di_tv, copyID, in garbage_collect()
4481 abort = abort || set_ref_in_item(&wp->w_winvar.di_tv, copyID, in garbage_collect()
4485 abort = abort || set_ref_in_item(&wp->w_winvar.di_tv, copyID, in garbage_collect()
[all …]
H A Djson.c324 if (json_encode_item(gap, &dict_lookup(hi)->di_tv, in json_encode_item()
1027 di->di_tv = *cur_item; in json_decode_item()
1028 di->di_tv.v_lock = 0; in json_decode_item()
H A Dviminfo.c1336 switch (this_var->di_tv.v_type) in write_viminfo_varlist()
1343 dict_T *di = this_var->di_tv.vval.v_dict; in write_viminfo_varlist()
1357 list_T *l = this_var->di_tv.vval.v_list; in write_viminfo_varlist()
1384 if (this_var->di_tv.v_type == VAR_BOOL in write_viminfo_varlist()
1385 || this_var->di_tv.v_type == VAR_SPECIAL) in write_viminfo_varlist()
1389 (long)this_var->di_tv.vval.v_number); in write_viminfo_varlist()
1394 p = echo_string(&this_var->di_tv, &tofree, numbuf, 0); in write_viminfo_varlist()
H A Dif_py_both.h838 if (!(newObj = VimToPython(&di->di_tv, depth + 1, lookup_dict))) in VimToPython()
1763 if (!(ret = ConvertToPyObject(&di->di_tv))) in _DictionaryItem()
1920 di->di_tv.v_type = VAR_UNKNOWN; in DictionaryAssItem()
1931 clear_tv(&di->di_tv); in DictionaryAssItem()
1935 copy_tv(&tv, &di->di_tv); in DictionaryAssItem()
1988 return ConvertToPyObject(&di->di_tv); in dict_val()
2124 di->di_tv.v_type = VAR_UNKNOWN; in DictionaryUpdate()
2128 if (ConvertFromPyObject(valObject, &di->di_tv) == -1) in DictionaryUpdate()
2192 if (!(valObject = ConvertToPyObject(&di->di_tv))) in DictionaryPopItem()
5969 if (_ConvertFromPyObject(valObject, &di->di_tv, lookup_dict) == -1) in pydict_to_tv()
[all …]
H A Dmatch.c943 *win = find_win_by_nr_or_id(&di->di_tv); in matchadd_dict_arg()
1127 if (di->di_tv.v_type != VAR_LIST) in f_setmatches()
1130 list_append_tv(s, &di->di_tv); in f_setmatches()
H A Dlist.c2382 && (value_check_lock(di->di_tv.v_lock, in filter_map()
2389 r = filter_map_one(&di->di_tv, expr, filtermap, in filter_map()
2407 clear_tv(&di->di_tv); in filter_map()
2409 di->di_tv = newtv; in filter_map()
2804 if (tv_equal(&HI2DI(hi)->di_tv, &argvars[1], ic, FALSE)) in f_count()
H A Dif_perl.xs1302 item->di_tv.v_type = VAR_NUMBER; in perl_to_vim()
1303 item->di_tv.vval.v_number = 0; in perl_to_vim()
1310 if (item2 == NULL || perl_to_vim(item2, &item->di_tv) == FAIL) in perl_to_vim()
H A Djob.c145 item = &dict_lookup(hi)->di_tv; in get_job_options()
1822 item->di_tv.v_type = VAR_CHANNEL; in job_info()
1823 item->di_tv.vval.v_channel = job->jv_channel; in job_info()
H A Dstructs.h1535 typval_T di_tv; // type and value of the variable member
1548 typval_T di_tv; // type and value of the variable member
2713 #define CHANGEDTICK(buf) ((buf)->b_ct_di.di_tv.vval.v_number)
H A Dtag.c4234 if (list2fpos(&di->di_tv, &mark, &fnum, NULL, FALSE) != OK) in tagstack_push_items()
4288 if (di->di_tv.v_type != VAR_LIST) in set_tagstack()
4293 l = di->di_tv.vval.v_list; in set_tagstack()
4297 tagstack_set_curidx(wp, (int)tv_get_number(&di->di_tv) - 1); in set_tagstack()

12