Yegappan Lakshmanan | 9cb865e | 2025-03-23 16:42:16 +0100 | [diff] [blame] | 1 | /* tuple.c */ |
| 2 | tuple_T *tuple_alloc(void); |
| 3 | tuple_T *tuple_alloc_with_items(int count); |
| 4 | void tuple_set_item(tuple_T *tuple, int idx, typval_T *tv); |
| 5 | int rettv_tuple_alloc(typval_T *rettv); |
| 6 | void rettv_tuple_set(typval_T *rettv, tuple_T *tuple); |
| 7 | int rettv_tuple_set_with_items(typval_T *rettv, int count); |
| 8 | void tuple_unref(tuple_T *tuple); |
| 9 | int tuple_free_nonref(int copyID); |
| 10 | void tuple_free_items(int copyID); |
| 11 | void tuple_free(tuple_T *tuple); |
| 12 | long tuple_len(tuple_T *tuple); |
| 13 | int tuple_equal(tuple_T *t1, tuple_T *t2, int ic); |
| 14 | typval_T *tuple_find(tuple_T *tuple, long n); |
| 15 | int tuple_append_tv(tuple_T *tuple, typval_T *tv); |
| 16 | int tuple_concat(tuple_T *t1, tuple_T *t2, typval_T *tv); |
| 17 | tuple_T *tuple_slice(tuple_T *tuple, long n1, long n2); |
| 18 | int tuple_slice_or_index(tuple_T *tuple, int range, varnumber_T n1_arg, varnumber_T n2_arg, int exclusive, typval_T *rettv, int verbose); |
| 19 | tuple_T *tuple_copy(tuple_T *orig, int deep, int top, int copyID); |
| 20 | int eval_tuple(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int do_error); |
| 21 | void tuple_lock(tuple_T *tuple, int deep, int lock, int check_refcount); |
| 22 | int tuple_join(garray_T *gap, tuple_T *tuple, char_u *sep, int echo_style, int restore_copyID, int copyID); |
| 23 | char_u *tuple2string(typval_T *tv, int copyID, int restore_copyID); |
| 24 | void tuple_foreach(tuple_T *tuple, filtermap_T filtermap, typval_T *expr); |
| 25 | long tuple_count(tuple_T *tuple, typval_T *needle, long idx, int ic); |
| 26 | void tuple2items(typval_T *argvars, typval_T *rettv); |
| 27 | int index_tuple(tuple_T *tuple, typval_T *tv, int start_idx, int ic); |
| 28 | int indexof_tuple(tuple_T *tuple, long startidx, typval_T *expr); |
| 29 | varnumber_T tuple_max_min(tuple_T *tuple, int domax, int *error); |
| 30 | void tuple_repeat(tuple_T *tuple, int n, typval_T *rettv); |
| 31 | void tuple_reverse(tuple_T *tuple, typval_T *rettv); |
| 32 | void tuple_reduce(typval_T *argvars, typval_T *expr, typval_T *rettv); |
| 33 | int check_tuples_addable(type_T *type1, type_T *type2); |
| 34 | /* vim: set ft=c : */ |