Lines Matching refs:v_type

145     tv->v_type = VAR_LIST;  in exe_newlist()
207 if (tv->v_type == VAR_DICT) in dict_stack_get_dict()
385 STACK_TV_BOT(idx - vararg_count)->v_type = VAR_UNKNOWN; in call_dfunc()
400 STACK_TV_BOT(STACK_FRAME_SIZE + idx)->v_type = VAR_UNKNOWN; in call_dfunc()
405 tv->v_type = VAR_NUMBER; in call_dfunc()
523 if (stv->v_type == VAR_PARTIAL && pt == stv->vval.v_partial) in handle_closure_in_use()
560 tv->v_type = VAR_UNKNOWN; in handle_closure_in_use()
575 if (tv->v_type == VAR_PARTIAL && tv->vval.v_partial != NULL) in handle_closure_in_use()
586 tv->v_type = VAR_UNKNOWN; in handle_closure_in_use()
632 if (tv->v_type == VAR_PARTIAL && tv->vval.v_partial != NULL in funcstack_check_refcount()
769 argvars[argcount].v_type = VAR_UNKNOWN; in call_prepare()
781 tv->v_type = VAR_NUMBER; in call_prepare()
1009 if (tv->v_type == VAR_PARTIAL) in call_partial()
1036 else if (tv->v_type == VAR_FUNC) in call_partial()
1085 if (tv->v_type != VAR_NUMBER) in check_for_number()
1088 vartype_name(VAR_NUMBER), vartype_name(tv->v_type)); in check_for_number()
1118 if (tv->v_type != VAR_STRING) in do_2string()
1124 switch (tv->v_type) in do_2string()
1162 tv->v_type = VAR_STRING; in do_2string()
1167 default: to_string_error(tv->v_type); in do_2string()
1173 tv->v_type = VAR_STRING; in do_2string()
1185 switch (tv->v_type) in allocate_if_null()
1414 if (v->di_tv.v_type != VAR_PARTIAL && v->di_tv.v_type != VAR_FUNC) in call_eval_func()
1726 tv->v_type = VAR_NUMBER; in exec_instructions()
1809 tv->v_type = VAR_INSTR; in exec_instructions()
1872 tv->v_type = VAR_STRING; in exec_instructions()
1989 if (tv->v_type == VAR_CHANNEL in exec_instructions()
1990 || tv->v_type == VAR_JOB) in exec_instructions()
1994 vartype_name(tv->v_type)); in exec_instructions()
2201 tv->v_type = VAR_DICT; in exec_instructions()
2246 tv->v_type = VAR_STRING; in exec_instructions()
2322 if (tv->v_type == VAR_STRING) in exec_instructions()
2427 tv->v_type = VAR_NUMBER; in exec_instructions()
2447 dest_type = tv_dest->v_type; in exec_instructions()
2451 && tv_idx->v_type != VAR_NUMBER) in exec_instructions()
2457 else if (dest_type != tv_dest->v_type) in exec_instructions()
2462 vartype_name(tv_dest->v_type)); in exec_instructions()
2604 if (tv_dest->v_type == VAR_LIST) in exec_instructions()
2616 if (tv_idx2->v_type == VAR_SPECIAL in exec_instructions()
2641 tv_idx2->v_type == VAR_SPECIAL, in exec_instructions()
2648 else if (tv_dest->v_type == VAR_BLOB) in exec_instructions()
2659 if (tv_idx2->v_type == VAR_SPECIAL in exec_instructions()
2746 if (tv_dest->v_type == VAR_DICT) in exec_instructions()
2749 if (tv_idx->v_type != VAR_STRING) in exec_instructions()
2754 vartype_name(tv_idx->v_type)); in exec_instructions()
2781 else if (tv_dest->v_type == VAR_LIST) in exec_instructions()
2811 vartype_name(tv_dest->v_type)); in exec_instructions()
2834 if (tv_dest->v_type == VAR_LIST) in exec_instructions()
2839 || (tv_idx2->v_type != VAR_SPECIAL in exec_instructions()
2848 long n2 = tv_idx2->v_type == VAR_SPECIAL in exec_instructions()
2869 && tv_idx2->v_type != VAR_SPECIAL in exec_instructions()
2877 tv_idx2->v_type != VAR_SPECIAL, n2) in exec_instructions()
2888 vartype_name(tv_dest->v_type)); in exec_instructions()
2918 tv->v_type = VAR_NUMBER; in exec_instructions()
2922 tv->v_type = VAR_BOOL; in exec_instructions()
2926 tv->v_type = VAR_SPECIAL; in exec_instructions()
2931 tv->v_type = VAR_FLOAT; in exec_instructions()
2939 tv->v_type = VAR_FUNC; in exec_instructions()
2948 tv->v_type = VAR_CHANNEL; in exec_instructions()
2956 tv->v_type = VAR_JOB; in exec_instructions()
2963 tv->v_type = VAR_STRING; in exec_instructions()
3057 tv->v_type = VAR_DICT; in exec_instructions()
3138 tv->v_type = VAR_VOID; in exec_instructions()
3187 tv->v_type = VAR_PARTIAL; in exec_instructions()
3258 if (tv->v_type != VAR_UNKNOWN in exec_instructions()
3259 && !(tv->v_type == VAR_SPECIAL in exec_instructions()
3273 if (ltv->v_type == VAR_LIST) in exec_instructions()
3290 tv->v_type = VAR_NUMBER; in exec_instructions()
3305 else if (ltv->v_type == VAR_STRING) in exec_instructions()
3324 tv->v_type = VAR_STRING; in exec_instructions()
3331 else if (ltv->v_type == VAR_BLOB) in exec_instructions()
3358 tv->v_type = VAR_NUMBER; in exec_instructions()
3367 vartype_name(ltv->v_type)); in exec_instructions()
3407 tv->v_type = VAR_STRING; in exec_instructions()
3523 tv->v_type = VAR_NUMBER; in exec_instructions()
3582 tv1->v_type = VAR_BOOL; in exec_instructions()
3626 tv1->v_type = VAR_BOOL; in exec_instructions()
3670 tv1->v_type = VAR_BOOL; in exec_instructions()
3701 tv1->v_type = VAR_BOOL; in exec_instructions()
3725 tv1->v_type = VAR_BOOL; in exec_instructions()
3827 if (tv1->v_type == VAR_LIST && tv2->v_type == VAR_LIST) in exec_instructions()
3834 else if (tv1->v_type == VAR_BLOB in exec_instructions()
3835 && tv2->v_type == VAR_BLOB) in exec_instructions()
3844 if (tv1->v_type == VAR_FLOAT) in exec_instructions()
3857 if (tv2->v_type == VAR_FLOAT) in exec_instructions()
3862 if (tv2->v_type == VAR_FLOAT) in exec_instructions()
3874 if (tv1->v_type == VAR_FLOAT) in exec_instructions()
3880 if (tv1->v_type == VAR_FLOAT || tv2->v_type == VAR_FLOAT) in exec_instructions()
3894 tv1->v_type = VAR_FLOAT; in exec_instructions()
3919 tv1->v_type = VAR_NUMBER; in exec_instructions()
4125 tv->v_type = VAR_NUMBER; in exec_instructions()
4147 if (tv->v_type != VAR_DICT || tv->vval.v_dict == NULL) in exec_instructions()
4184 && dict_tv->v_type == VAR_DICT in exec_instructions()
4186 && (tv->v_type == VAR_FUNC in exec_instructions()
4187 || (tv->v_type == VAR_PARTIAL in exec_instructions()
4198 if (tv->v_type != VAR_NUMBER in exec_instructions()
4200 && tv->v_type != VAR_FLOAT in exec_instructions()
4209 if (tv->v_type == VAR_FLOAT) in exec_instructions()
4245 if (tv->v_type == VAR_NUMBER in exec_instructions()
4250 tv->v_type = VAR_BOOL; in exec_instructions()
4263 if (tv->v_type == VAR_LIST) in exec_instructions()
4282 if (tv->v_type == VAR_DICT && tv->vval.v_dict != NULL) in exec_instructions()
4287 else if (tv->v_type == VAR_LIST && tv->vval.v_list != NULL) in exec_instructions()
4317 tv->v_type = VAR_BOOL; in exec_instructions()
4348 tv->v_type = VAR_NUMBER; in exec_instructions()
4382 if (tv->v_type == VAR_STRING) in exec_instructions()
4424 if (tv->v_type != VAR_LIST) in exec_instructions()
4757 && argv[idx].v_type == VAR_SPECIAL in call_def_function()
4761 STACK_TV_BOT(0)->v_type = VAR_UNKNOWN; in call_def_function()
4817 STACK_TV_BOT(0)->v_type = VAR_UNKNOWN; in call_def_function()
4867 STACK_TV(ectx.ec_stack.ga_len)->v_type = VAR_UNKNOWN; in call_def_function()
4877 STACK_TV_VAR(idx)->v_type = VAR_UNKNOWN; in call_def_function()
4881 STACK_TV_VAR(idx)->v_type = VAR_NUMBER; in call_def_function()
4921 rettv->v_type = VAR_VOID; in call_def_function()
4927 tv->v_type = VAR_UNKNOWN; in call_def_function()
5367 tv.v_type = VAR_JOB; in list_instructions()
5933 switch (tv->v_type) in tv2bool()
5994 if (tv->v_type == VAR_STRING) in check_not_string()