Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 65) sorted by relevance

123

/vim-8.2.3635/src/
H A Dvim9execute.c131 typval_T *tv; in exe_newlist() local
202 typval_T *tv; in dict_stack_get_dict() local
632 if (tv->v_type == VAR_PARTIAL && tv->vval.v_partial != NULL in funcstack_check_refcount()
1172 clear_tv(tv); in do_2string()
2259 clear_tv(tv); in exec_instructions()
2348 clear_tv(tv); in exec_instructions()
4210 tv->vval.v_float = -tv->vval.v_float; in exec_instructions()
4213 tv->vval.v_number = -tv->vval.v_number; in exec_instructions()
4251 tv->vval.v_number = tv->vval.v_number in exec_instructions()
4633 clear_tv(tv); in exe_substitute_instr()
[all …]
H A Dvim9type.c267 if (tv->v_type == VAR_BOOL) 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()
304 dict_T *d = tv->vval.v_dict; in typval2type_int()
327 if (tv->v_type == VAR_FUNC || tv->v_type == VAR_PARTIAL) in typval2type_int()
332 if (tv->v_type == VAR_PARTIAL && tv->vval.v_partial != NULL) in typval2type_int()
340 name = tv->vval.v_string; in typval2type_int()
387 if (tv->v_type == VAR_PARTIAL && tv->vval.v_partial != NULL in typval2type_int()
406 && (tv->vval.v_number == 0 || tv->vval.v_number == 1)); in need_convert_to_bool()
[all …]
H A Devalvars.c932 typval_T *tv, in ex_let_vars() argument
955 if (tv->v_type != VAR_LIST || (l = tv->vval.v_list) == NULL) in ex_let_vars()
1277 clear_tv(&tv); in list_arg_vars()
1419 if (tv->v_type != VAR_BOOL && tv->v_type != VAR_SPECIAL in ex_let_one()
2234 clear_tv(tv); in set_vim_var_tv()
2664 if (tv == NULL) in eval_variable()
2682 if (tv->v_type == VAR_DICT && tv->vval.v_dict == NULL) in eval_variable()
3296 if ((tv->v_type == VAR_FUNC || tv->v_type == VAR_PARTIAL) in set_var_const()
3465 *dest_tv = *tv; in set_var_const()
3467 init_tv(tv); in set_var_const()
[all …]
H A Dif_lua.c548 if (tv == NULL) in luaV_pushtypval()
605 tv->v_lock = 0; in luaV_totypval()
1120 typval_T tv; in luaV_dict_newindex() local
1133 clear_tv(&tv); in luaV_dict_newindex()
1145 clear_tv(&tv); in luaV_dict_newindex()
1164 di->di_tv = tv; in luaV_dict_newindex()
1854 typval_T tv; in luaV_setvar() local
1867 clear_tv(&tv); in luaV_setvar()
1875 clear_tv(&tv); in luaV_setvar()
1888 clear_tv(&tv); in luaV_setvar()
[all …]
H A Deval.c171 typval_T tv; in eval_to_bool() local
342 typval_T tv; in eval_to_string_skip() local
354 clear_tv(&tv); in eval_to_string_skip()
526 typval_T tv; in eval_to_string_eap() local
536 clear_tv(&tv); in eval_to_string_eap()
622 if (tv != NULL && eval0(arg, tv, eap, &evalarg) == FAIL) in eval_expr()
623 VIM_CLEAR(tv); in eval_expr()
626 return tv; in eval_expr()
784 clear_tv(&tv); in eval_foldexpr()
1739 typval_T tv; in next_for_item() local
[all …]
H A Dif_py_both.h1866 typval_T tv; in DictionaryAssItem() local
1936 clear_tv(&tv); in DictionaryAssItem()
2040 typval_T tv; in DictionaryUpdate() local
2047 clear_tv(&tv); in DictionaryUpdate()
2690 typval_T tv; in ListAssIndex() local
2728 clear_tv(&tv); in ListAssIndex()
2744 clear_tv(&tv); in ListAssIndex()
3266 typval_T tv; in FunctionRepr() local
3294 tv.v_type = VAR_DICT; in FunctionRepr()
6165 copy_tv(v, tv); in convert_dl()
[all …]
H A Dtypval.c1024 switch (tv->v_type) in tv_check_lock()
1027 if (tv->vval.v_blob != NULL) in tv_check_lock()
1031 if (tv->vval.v_list != NULL) in tv_check_lock()
1451 tv_islocked(typval_T *tv) in tv_islocked() argument
1454 || (tv->v_type == VAR_LIST in tv_islocked()
1455 && tv->vval.v_list != NULL in tv_islocked()
1457 || (tv->v_type == VAR_DICT in tv_islocked()
1458 && tv->vval.v_dict != NULL in tv_islocked()
2050 typval_T *tv, in tv2string() argument
2172 buf = find_buffer(tv); in tv_get_buf()
[all …]
H A Dvim9script.c359 typval_T tv; in handle_import() local
367 tv.v_type = VAR_UNKNOWN; in handle_import()
462 ret = eval0(arg, &tv, NULL, evalarg); in handle_import()
465 if (tv.v_type != VAR_STRING in handle_import()
466 || tv.vval.v_string == NULL || *tv.vval.v_string == NUL) in handle_import()
479 if (*tv.vval.v_string == '.') in handle_import()
493 STRCAT(from_name, tv.vval.v_string); in handle_import()
499 else if (mch_isFullName(tv.vval.v_string)) in handle_import()
506 size_t len = 7 + STRLEN(tv.vval.v_string) + 1; in handle_import()
630 clear_tv(&tv); in handle_import()
[all …]
H A Dif_ruby.c1175 vim_to_ruby(typval_T *tv) in vim_to_ruby() argument
1179 if (tv->v_type == VAR_STRING) in vim_to_ruby()
1194 else if (tv->v_type == VAR_LIST) in vim_to_ruby()
1207 else if (tv->v_type == VAR_DICT) in vim_to_ruby()
1211 if (tv->vval.v_dict != NULL) in vim_to_ruby()
1231 else if (tv->v_type == VAR_BOOL || tv->v_type == VAR_SPECIAL) in vim_to_ruby()
1241 tv->vval.v_blob->bv_ga.ga_len); in vim_to_ruby()
1253 typval_T *tv; in vim_evaluate() local
1257 if (tv == NULL) in vim_evaluate()
1259 result = vim_to_ruby(tv); in vim_evaluate()
[all …]
H A Devalbuffer.c29 typval_T tv; in set_ref_in_buffers() local
35 tv.v_type = VAR_PARTIAL; in set_ref_in_buffers()
36 tv.vval.v_partial = lnr->lr_callback.cb_partial; in set_ref_in_buffers()
37 abort = abort || set_ref_in_item(&tv, copyID, NULL, NULL); in set_ref_in_buffers()
43 tv.v_type = VAR_PARTIAL; in set_ref_in_buffers()
44 tv.vval.v_partial = bp->b_prompt_callback.cb_partial; in set_ref_in_buffers()
49 tv.v_type = VAR_PARTIAL; in set_ref_in_buffers()
50 tv.vval.v_partial = bp->b_prompt_interrupt.cb_partial; in set_ref_in_buffers()
403 typval_T *tv = &argvars[0]; in f_bufname() local
408 if (tv->v_type == VAR_UNKNOWN) in f_bufname()
[all …]
H A Ddict.c359 && (tv->v_type == VAR_FUNC || tv->v_type == VAR_PARTIAL) in dict_wrong_func_name()
487 dict_add_tv(dict_T *d, char *key, typval_T *tv) in dict_add_tv() argument
494 copy_tv(tv, &item->di_tv); in dict_add_tv()
759 if ((d = tv->vval.v_dict) == NULL) in dict2string()
824 get_literal_key_tv(char_u **arg, typval_T *tv) in get_literal_key_tv() argument
830 tv->v_type = VAR_STRING; in get_literal_key_tv()
891 typval_T tv; in eval_dict() local
908 if (eval1(&start, &tv, NULL) == FAIL) // recursive! in eval_dict()
921 tv.v_type = VAR_UNKNOWN; in eval_dict()
1010 clear_tv(&tv); in eval_dict()
[all …]
H A Dlist.c162 li->li_tv = *tv; in list_set_item()
630 li->li_tv = *tv; in list_append_tv_move()
1115 tv->v_type = VAR_LIST; in list_concat()
1116 tv->v_lock = 0; in list_concat()
1117 tv->vval.v_list = l; in list_concat()
1490 typval_T tv; in eval_list() local
1512 item->li_tv = tv; in eval_list()
1517 clear_tv(&tv); in eval_list()
2435 typval_T tv; in filter_map() local
2517 typval_T tv; in filter_map() local
[all …]
H A Ddebugger.c540 typval_T *tv; in eval_expr_no_emsg() local
544 tv = eval_expr(bp->dbg_name, NULL); in eval_expr_no_emsg()
547 return tv; in eval_expr_no_emsg()
977 typval_T *tv; in debuggy_find() local
980 tv = eval_expr_no_emsg(bp); in debuggy_find()
981 if (tv != NULL) in debuggy_find()
986 bp->dbg_val = tv; in debuggy_find()
992 if (typval_compare(tv, bp->dbg_val, EXPR_IS, FALSE) == OK in debuggy_find()
993 && tv->vval.v_number == FALSE) in debuggy_find()
1006 free_tv(tv); in debuggy_find()
H A Dtime.c730 typval_T tv; in set_ref_in_timer() local
736 tv.v_type = VAR_PARTIAL; in set_ref_in_timer()
737 tv.vval.v_partial = timer->tr_callback.cb_partial; in set_ref_in_timer()
741 tv.v_type = VAR_FUNC; in set_ref_in_timer()
742 tv.vval.v_string = timer->tr_callback.cb_name; in set_ref_in_timer()
744 abort = abort || set_ref_in_item(&tv, copyID, NULL, NULL); in set_ref_in_timer()
905 gettimeofday(struct timeval *tv, char *dummy UNUSED) in gettimeofday() argument
908 tv->tv_sec = t / CLOCKS_PER_SEC; in gettimeofday()
909 tv->tv_usec = (t - tv->tv_sec * CLOCKS_PER_SEC) * 1000000 / CLOCKS_PER_SEC; in gettimeofday()
H A Dchannel.c799 struct timeval tv; in channel_connect() local
2380 typval_T *tv; in channel_get_json() local
2386 && ((id > 0 && tv->v_type == VAR_NUMBER && tv->vval.v_number == id) in channel_get_json()
2565 tv = &res_tv; in channel_exe_cmd()
2572 if (tv != NULL) in channel_exe_cmd()
2593 clear_tv(tv); in channel_exe_cmd()
2595 free_tv(tv); in channel_exe_cmd()
4474 struct timeval *tv, in channel_select_setup() argument
4499 *tvp = tv; in channel_select_setup()
4500 tv->tv_sec = 0; in channel_select_setup()
[all …]
H A Dif_mzsch.c3188 tv->v_type = VAR_NUMBER; in mzscheme_to_vim_impl()
3189 tv->vval.v_number = 0; in mzscheme_to_vim_impl()
3195 copy_tv(found, tv); in mzscheme_to_vim_impl()
3198 tv->v_type = VAR_SPECIAL; in mzscheme_to_vim_impl()
3203 tv->v_type = VAR_NUMBER; in mzscheme_to_vim_impl()
3208 tv->v_type = VAR_BOOL; in mzscheme_to_vim_impl()
3214 tv->v_type = VAR_FLOAT; in mzscheme_to_vim_impl()
3220 tv->v_type = VAR_STRING; in mzscheme_to_vim_impl()
3232 tv->v_type = VAR_STRING; in mzscheme_to_vim_impl()
3268 copy_tv(tv, visited_tv); in mzscheme_to_vim_impl()
[all …]
H A Djob.c130 if (tv->v_type == VAR_UNKNOWN) in get_job_options()
132 if (tv->v_type != VAR_DICT) in get_job_options()
137 dict = tv->vval.v_dict; in get_job_options()
1069 typval_T tv; in set_ref_in_job() local
1074 tv.v_type = VAR_JOB; in set_ref_in_job()
1075 tv.vval.v_job = job; in set_ref_in_job()
1769 get_job_arg(typval_T *tv) in get_job_arg() argument
1778 job = tv->vval.v_job; in get_job_arg()
1865 typval_T tv; in job_info_all() local
1869 tv.v_type = VAR_JOB; in job_info_all()
[all …]
H A Dviminfo.c1220 typval_T tv; in read_viminfo_varlist() local
1244 tv.v_type = type; in read_viminfo_varlist()
1258 tv.v_type = VAR_BOOL; in read_viminfo_varlist()
1267 tv.v_type = VAR_STRING; in read_viminfo_varlist()
1271 tv = *etv; in read_viminfo_varlist()
1281 tv.v_type = VAR_STRING; in read_viminfo_varlist()
1285 tv.v_type = VAR_BLOB; in read_viminfo_varlist()
1286 tv.vval.v_blob = blob; in read_viminfo_varlist()
1297 else if (tv.v_type == VAR_DICT || tv.v_type == VAR_LIST || in read_viminfo_varlist()
1298 tv.v_type == VAR_BLOB) in read_viminfo_varlist()
[all …]
/vim-8.2.3635/src/proto/
H A Dvim9execute.pro9 int exe_typval_instr(typval_T *tv, typval_T *rettv);
15 int tv2bool(typval_T *tv);
16 void emsg_using_string_as(typval_T *tv, int as_number);
17 int check_not_string(typval_T *tv);
H A Dtypval.pro53 int tv_check_lock(typval_T *tv, char_u *name, int use_gettext);
57 int tv_islocked(typval_T *tv);
63 char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
67 buf_T *tv_get_buf(typval_T *tv, int curtab_only);
68 buf_T *tv_get_buf_from_arg(typval_T *tv);
H A Dlist.pro7 void list_set_item(list_T *l, int idx, typval_T *tv);
26 int list_append_tv(list_T *l, typval_T *tv);
31 int list_insert_tv(list_T *l, typval_T *tv, listitem_T *item);
39 int list_concat(list_T *l1, list_T *l2, typval_T *tv);
44 char_u *list2string(typval_T *tv, int copyID, int restore_copyID);
H A Deval.pro8 int eval_expr_valid_arg(typval_T *tv);
14 char_u *typval2string(typval_T *tv, int convert);
55 int set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack);
56 char_u *echo_string_core(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID, int echo_style,…
57 char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
H A Devalvars.pro19 int ex_let_vars(char_u *arg_start, typval_T *tv, int copy, int semicolon, int var_count, int flags,…
28 void item_lock(typval_T *tv, int deep, int lock, int check_refcount);
41 int set_vim_var_tv(int idx, typval_T *tv);
73 void set_var(char_u *name, typval_T *tv, int copy);
101 void put_callback(callback_T *cb, typval_T *tv);
H A Dvim9type.pro10 int need_convert_to_bool(type_T *type, typval_T *tv);
11 type_T *typval2type(typval_T *tv, int copyID, garray_T *type_gap, int do_member);
12 type_T *typval2type_vimvar(typval_T *tv, garray_T *type_gap);
H A Ddict.pro16 int dict_wrong_func_name(dict_T *d, typval_T *tv, char_u *name);
23 int dict_add_tv(dict_T *d, char *key, typval_T *tv);
36 char_u *dict2string(typval_T *tv, int copyID, int restore_copyID);

123