Lines Matching refs:dict
1 /* $OpenBSD: dict.h,v 1.1 2018/12/23 16:06:24 gilles Exp $ */
25 struct dict {
26 struct _dict dict;
31 /* dict.c */
32 #define dict_init(d) do { SPLAY_INIT(&((d)->dict)); (d)->count = 0; } while(0)
33 #define dict_empty(d) SPLAY_EMPTY(&((d)->dict))
35 int dict_check(struct dict *, const char *);
36 void *dict_set(struct dict *, const char *, void *);
37 void dict_xset(struct dict *, const char *, void *);
38 void *dict_get(struct dict *, const char *);
39 void *dict_xget(struct dict *, const char *);
40 void *dict_pop(struct dict *, const char *);
41 void *dict_xpop(struct dict *, const char *);
42 int dict_poproot(struct dict *, void **);
43 int dict_root(struct dict *, const char **, void **);
44 int dict_iter(struct dict *, void **, const char **, void **);
45 int dict_iterfrom(struct dict *, void **, const char *, const char **, void **);
46 void dict_merge(struct dict *, struct dict *);