Lines Matching refs:index
500 int index; in get_mext_match() local
508 index = match_start; in get_mext_match()
510 char *str = k_menu_items[index].str; in get_mext_match()
512 return index; in get_mext_match()
515 --index; in get_mext_match()
517 ++index; in get_mext_match()
518 index = (index + items_num) % items_num; in get_mext_match()
519 if (index == match_start) in get_mext_match()
568 int index = items_num-1; in item_add_str() local
572 if (index < 0) in item_add_str()
579 k_menu_items[index].str, new_str); in item_add_str()
580 strncpy(k_menu_items[index].str, in item_add_str()
582 sizeof(k_menu_items[index].str)); in item_add_str()
584 free_item(curses_menu_items[index]); in item_add_str()
585 curses_menu_items[index] = new_item( in item_add_str()
586 k_menu_items[index].str, in item_add_str()
587 k_menu_items[index].str); in item_add_str()
588 set_item_userptr(curses_menu_items[index], in item_add_str()
589 &k_menu_items[index]); in item_add_str()