Lines Matching refs:iter
217 struct bootmenu_entry *iter; in bootmenu_choice_entry() local
243 iter = menu->first; in bootmenu_choice_entry()
245 iter = iter->next; in bootmenu_choice_entry()
246 return iter->key; in bootmenu_choice_entry()
249 iter = menu->first; in bootmenu_choice_entry()
250 while (iter->next) in bootmenu_choice_entry()
251 iter = iter->next; in bootmenu_choice_entry()
252 return iter->key; in bootmenu_choice_entry()
265 struct bootmenu_entry *iter = menu->first; in bootmenu_destroy() local
268 while (iter) { in bootmenu_destroy()
269 next = iter->next; in bootmenu_destroy()
270 free(iter->title); in bootmenu_destroy()
271 free(iter->command); in bootmenu_destroy()
272 free(iter); in bootmenu_destroy()
273 iter = next; in bootmenu_destroy()
283 struct bootmenu_entry *iter = NULL; in bootmenu_create() local
338 if (!iter) in bootmenu_create()
341 iter->next = entry; in bootmenu_create()
343 iter = entry; in bootmenu_create()
375 if (!iter) in bootmenu_create()
378 iter->next = entry; in bootmenu_create()
380 iter = entry; in bootmenu_create()
434 struct bootmenu_entry *iter; in bootmenu_show() local
465 for (iter = bootmenu->first; iter; iter = iter->next) { in bootmenu_show()
466 if (!menu_item_add(menu, iter->key, iter)) in bootmenu_show()
480 iter = choice; in bootmenu_show()
481 title = strdup(iter->title); in bootmenu_show()
482 command = strdup(iter->command); in bootmenu_show()