Lines Matching refs:tv

258 typval2type_int(typval_T *tv, int copyID, garray_T *type_gap, int do_member)  in typval2type_int()  argument
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()
276 list_T *l = tv->vval.v_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()
318 dict_iterate_start(tv, &iter); 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()
334 if (tv->vval.v_partial->pt_func != NULL) in typval2type_int()
335 ufunc = tv->vval.v_partial->pt_func; in typval2type_int()
337 name = tv->vval.v_partial->pt_name; in typval2type_int()
340 name = tv->vval.v_string; in typval2type_int()
365 if (tv->v_type == VAR_PARTIAL in typval2type_int()
366 && tv->vval.v_partial->pt_argc > 0) in typval2type_int()
372 type->tt_argcount -= tv->vval.v_partial->pt_argc; in typval2type_int()
373 type->tt_min_argcount -= tv->vval.v_partial->pt_argc; in typval2type_int()
384 type->tt_type = tv->v_type; in typval2type_int()
387 if (tv->v_type == VAR_PARTIAL && tv->vval.v_partial != NULL in typval2type_int()
388 && tv->vval.v_partial->pt_argc > 0) in typval2type_int()
390 type->tt_argcount -= tv->vval.v_partial->pt_argc; in typval2type_int()
391 type->tt_min_argcount -= tv->vval.v_partial->pt_argc; in typval2type_int()
402 need_convert_to_bool(type_T *type, typval_T *tv) in need_convert_to_bool() argument
404 return type != NULL && type == &t_bool && tv->v_type != VAR_BOOL in need_convert_to_bool()
405 && (tv->v_type == VAR_NUMBER in need_convert_to_bool()
406 && (tv->vval.v_number == 0 || tv->vval.v_number == 1)); in need_convert_to_bool()
415 typval2type(typval_T *tv, int copyID, garray_T *type_gap, int do_member) in typval2type() argument
417 type_T *type = typval2type_int(tv, copyID, type_gap, do_member); in typval2type()
420 && (tv->v_type == VAR_NUMBER in typval2type()
421 && (tv->vval.v_number == 0 || tv->vval.v_number == 1))) in typval2type()
433 typval2type_vimvar(typval_T *tv, garray_T *type_gap) in typval2type_vimvar() argument
435 if (tv->v_type == VAR_LIST) // e.g. for v:oldfiles in typval2type_vimvar()
437 if (tv->v_type == VAR_DICT) // e.g. for v:completed_item in typval2type_vimvar()
439 return typval2type(tv, get_copyID(), type_gap, TRUE); in typval2type_vimvar()