/[LeafOK_CVS]/lbbs/src/menu.c
ViewVC logotype

Diff of /lbbs/src/menu.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.58 by sysadm, Wed May 28 01:04:24 2025 UTC Revision 1.61 by sysadm, Thu May 29 01:21:44 2025 UTC
# Line 807  int load_menu(MENU_SET *p_menu_set, cons Line 807  int load_menu(MENU_SET *p_menu_set, cons
807          return 0;          return 0;
808  }  }
809    
810  static int display_menu_cursor(MENU_SET *p_menu_set, int show)  int display_menu_cursor(MENU_SET *p_menu_set, int show)
811  {  {
812          MENU_ID menu_id;          MENU_ID menu_id;
813          MENU_ITEM_ID menu_item_id;          MENU_ITEM_ID menu_item_id;
# Line 864  static int display_menu_current_page(MEN Line 864  static int display_menu_current_page(MEN
864          {          {
865                  if (p_menu->title.row == 0 && p_menu->title.col == 0)                  if (p_menu->title.row == 0 && p_menu->title.col == 0)
866                  {                  {
867                          show_top(p_menu->title.text, BBS_name);                          show_top(p_menu->title.text, BBS_name, "");
868                  }                  }
869                  else                  else
870                  {                  {
# Line 1116  int menu_control(MENU_SET *p_menu_set, i Line 1116  int menu_control(MENU_SET *p_menu_set, i
1116                          return ((*(p_menu_item->action_cmd_handler))((void *)(p_menu_item->name)));                          return ((*(p_menu_item->action_cmd_handler))((void *)(p_menu_item->name)));
1117                  }                  }
1118                  break;                  break;
1119            case KEY_ESC:
1120          case KEY_LEFT:          case KEY_LEFT:
1121                  if (p_menu_set->choose_step > 0)                  if (p_menu_set->choose_step > 0)
1122                  {                  {
# Line 1308  int unload_menu(MENU_SET *p_menu_set) Line 1309  int unload_menu(MENU_SET *p_menu_set)
1309  {  {
1310          int shmid;          int shmid;
1311    
1312            if (p_menu_set == NULL)
1313            {
1314                    return -1;
1315            }
1316    
1317          if (p_menu_set->p_menu_name_dict != NULL)          if (p_menu_set->p_menu_name_dict != NULL)
1318          {          {
1319                  trie_dict_destroy(p_menu_set->p_menu_name_dict);                  trie_dict_destroy(p_menu_set->p_menu_name_dict);


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1