Home | History | Annotate | Download | only in util

Lines Matching refs:str_node

13 static struct str_node *str_node__new(const char *s, bool dupstr)
15 struct str_node *self = malloc(sizeof(*self));
33 static void str_node__delete(struct str_node *self, bool dupstr)
44 struct str_node *sn;
50 sn = rb_entry(parent, struct str_node, rb_node);
99 void strlist__remove(struct strlist *self, struct str_node *sn)
105 struct str_node *strlist__find(struct strlist *self, const char *entry)
111 struct str_node *sn;
115 sn = rb_entry(parent, struct str_node, rb_node);
175 struct str_node *pos;
179 pos = rb_entry(next, struct str_node, rb_node);
188 struct str_node *strlist__entry(const struct strlist *self, unsigned int idx)
193 struct str_node *pos = rb_entry(nd, struct str_node, rb_node);