Home | History | Annotate | Download | only in lhash

Lines Matching refs:lh

35 static void dummy_lh_free(struct dummy_lhash *lh) {
38 for (cur = lh->head; cur != NULL; cur = next) {
45 static size_t dummy_lh_num_items(const struct dummy_lhash *lh) {
49 for (cur = lh->head; cur != NULL; cur = cur->next) {
56 static char *dummy_lh_retrieve(struct dummy_lhash *lh, const char *s) {
59 for (cur = lh->head; cur != NULL; cur = cur->next) {
68 static int dummy_lh_insert(struct dummy_lhash *lh, char **old_data, char *s) {
71 for (cur = lh->head; cur != NULL; cur = cur->next) {
82 node->next = lh->head;
83 lh->head = node;
87 static char *dummy_lh_delete(struct dummy_lhash *lh, const void *s) {
91 next_ptr = &lh->head;
92 for (cur = lh->head; cur != NULL; cur = cur->next) {
119 _LHASH *lh;
125 lh = lh_new(NULL, NULL);
126 if (lh == NULL) {
134 if (dummy_lh_num_items(&dummy_lh) != lh_num_items(lh)) {
143 s1 = (char *)lh_retrieve(lh, s);
154 lh_insert(lh, (void **)&s1, s);
172 s1 = lh_delete(lh, s);
194 lh_doall(lh, free);
195 lh_free(lh);