forked from aniani/vim
patch 9.1.1232: Vim script is missing the tuple data type
Problem: Vim script is missing the tuple data type Solution: Add support for the tuple data type (Yegappan Lakshmanan) closes: #16776 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
adb703e1b9
commit
9cb865e95b
@@ -1132,6 +1132,10 @@ f_test_refcount(typval_T *argvars, typval_T *rettv)
|
||||
if (argvars[0].vval.v_list != NULL)
|
||||
retval = argvars[0].vval.v_list->lv_refcount - 1;
|
||||
break;
|
||||
case VAR_TUPLE:
|
||||
if (argvars[0].vval.v_tuple != NULL)
|
||||
retval = argvars[0].vval.v_tuple->tv_refcount - 1;
|
||||
break;
|
||||
case VAR_DICT:
|
||||
if (argvars[0].vval.v_dict != NULL)
|
||||
retval = argvars[0].vval.v_dict->dv_refcount - 1;
|
||||
@@ -1248,6 +1252,12 @@ f_test_null_string(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
rettv->vval.v_string = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
f_test_null_tuple(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
{
|
||||
rettv_tuple_set(rettv, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
f_test_unknown(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
{
|
||||
|
Reference in New Issue
Block a user