Lines Matching refs:items_num
271 static int items_num; variable
490 items_num = 0; in clean_items()
508 index = (index + items_num) % items_num; in get_mext_match()
518 index = (index + items_num) % items_num; in get_mext_match()
529 if (items_num > MAX_MENU_ITEMS-1) in item_make()
532 bzero(&k_menu_items[items_num], sizeof(k_menu_items[0])); in item_make()
533 k_menu_items[items_num].tag = tag; in item_make()
534 k_menu_items[items_num].usrptr = menu; in item_make()
536 k_menu_items[items_num].is_visible = in item_make()
539 k_menu_items[items_num].is_visible = 1; in item_make()
542 vsnprintf(k_menu_items[items_num].str, in item_make()
543 sizeof(k_menu_items[items_num].str), in item_make()
547 if (!k_menu_items[items_num].is_visible) in item_make()
548 memcpy(k_menu_items[items_num].str, "XXX", 3); in item_make()
550 curses_menu_items[items_num] = new_item( in item_make()
551 k_menu_items[items_num].str, in item_make()
552 k_menu_items[items_num].str); in item_make()
553 set_item_userptr(curses_menu_items[items_num], in item_make()
554 &k_menu_items[items_num]); in item_make()
560 items_num++; in item_make()
561 curses_menu_items[items_num] = NULL; in item_make()
568 int index = items_num-1; in item_add_str()