Lines Matching refs:h

178 	struct edit_history *h, *match = NULL, *last = NULL;  in history_add()  local
184 dl_list_for_each(h, &history_list, struct edit_history, list) { in history_add()
185 if (os_strcmp(str, h->str) == 0) { in history_add()
186 match = h; in history_add()
189 last = h; in history_add()
194 dl_list_del(&h->list); in history_add()
195 dl_list_add(&history_list, &h->list); in history_add()
196 history_curr = h; in history_add()
206 h = os_zalloc(sizeof(*h) + len); in history_add()
207 if (h == NULL) in history_add()
209 dl_list_add(&history_list, &h->list); in history_add()
210 os_strlcpy(h->str, str, len + 1); in history_add()
211 history_curr = h; in history_add()
298 struct edit_history *h; in history_write() local
304 dl_list_for_each_reverse(h, &history_list, struct edit_history, list) { in history_write()
305 if (filter_cb && filter_cb(edit_cb_ctx, h->str)) in history_write()
307 fprintf(f, "%s\n", h->str); in history_write()
316 struct edit_history *h; in history_debug_dump() local
319 dl_list_for_each_reverse(h, &history_list, struct edit_history, list) in history_debug_dump()
320 printf("%s%s\n", h == history_curr ? "[C]" : "", h->str); in history_debug_dump()
869 struct edit_history *h; in search_find() local
876 dl_list_for_each(h, &history_list, struct edit_history, list) { in search_find()
877 if (os_strstr(h->str, search_buf)) { in search_find()
879 return h->str; in search_find()
1147 struct edit_history *h; in edit_deinit() local
1150 while ((h = dl_list_first(&history_list, struct edit_history, list))) { in edit_deinit()
1151 dl_list_del(&h->list); in edit_deinit()
1152 os_free(h); in edit_deinit()