Lines Matching defs:entry
25 SPLAY_ENTRY(treeentry) entry;
32 SPLAY_PROTOTYPE(tree, treeentry, entry, treeentry_cmp);
46 struct treeentry *entry, key;
49 if ((entry = SPLAY_FIND(tree, t, &key)) == NULL) {
50 entry = malloc(sizeof *entry);
51 if (entry == NULL)
53 entry->id = id;
54 SPLAY_INSERT(tree, t, entry);
57 entry->data = data;
59 return (entry);
65 struct treeentry key, *entry;
68 if ((entry = SPLAY_FIND(tree, t, &key)) == NULL) {
73 return (entry->data);
79 struct treeentry key, *entry;
83 if ((entry = SPLAY_FIND(tree, t, &key)) == NULL)
86 data = entry->data;
87 SPLAY_REMOVE(tree, t, entry);
88 free(entry);
103 SPLAY_GENERATE(tree, treeentry, entry, treeentry_cmp);