blob: 10a5b6bf1d8f1c5a6b9d599d8cd97b1c02fb1b7e [file] [log] [blame]
Bram Moolenaarcd524592016-07-17 14:57:05 +02001/* dict.c */
2dict_T *dict_alloc(void);
3int rettv_dict_alloc(typval_T *rettv);
4void dict_unref(dict_T *d);
5int dict_free_nonref(int copyID);
6void dict_free_items(int copyID);
7dictitem_T *dictitem_alloc(char_u *key);
8void dictitem_remove(dict_T *dict, dictitem_T *item);
9void dictitem_free(dictitem_T *item);
10dict_T *dict_copy(dict_T *orig, int deep, int copyID);
11int dict_add(dict_T *d, dictitem_T *item);
12int dict_add_nr_str(dict_T *d, char *key, varnumber_T nr, char_u *str);
13int dict_add_list(dict_T *d, char *key, list_T *list);
14long dict_len(dict_T *d);
15dictitem_T *dict_find(dict_T *d, char_u *key, int len);
16char_u *get_dict_string(dict_T *d, char_u *key, int save);
17varnumber_T get_dict_number(dict_T *d, char_u *key);
18char_u *dict2string(typval_T *tv, int copyID, int restore_copyID);
19int get_dict_tv(char_u **arg, typval_T *rettv, int evaluate);
20void dict_extend(dict_T *d1, dict_T *d2, char_u *action);
21dictitem_T *dict_lookup(hashitem_T *hi);
22int dict_equal(dict_T *d1, dict_T *d2, int ic, int recursive);
23void dict_list(typval_T *argvars, typval_T *rettv, int what);
24/* vim: set ft=c : */