/[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.94 by sysadm, Sat Jan 3 10:27:14 2026 UTC Revision 1.96 by sysadm, Fri Feb 13 12:38:09 2026 UTC
# Line 40  static const char MENU_CONF_DELIM_WITHOU Line 40  static const char MENU_CONF_DELIM_WITHOU
40  MENU_SET bbs_menu;  MENU_SET bbs_menu;
41  MENU_SET top10_menu;  MENU_SET top10_menu;
42    
43    // External definitions for inline functions
44    extern inline MENU *get_menu(MENU_SET *p_menu_set, const char *menu_name);
45    extern inline MENU *get_menu_by_id(MENU_SET *p_menu_set, MENU_ID menu_id);
46    extern inline MENU_ITEM *get_menu_item_by_id(MENU_SET *p_menu_set, MENU_ITEM_ID menu_item_id);
47    extern inline MENU_SCREEN *get_menu_screen_by_id(MENU_SET *p_menu_set, MENU_SCREEN_ID menu_screen_id);
48    
49  int load_menu(MENU_SET *p_menu_set, const char *conf_file)  int load_menu(MENU_SET *p_menu_set, const char *conf_file)
50  {  {
51          char filepath[FILE_PATH_LEN];          char filepath[FILE_PATH_LEN];
# Line 88  int load_menu(MENU_SET *p_menu_set, cons Line 94  int load_menu(MENU_SET *p_menu_set, cons
94    
95          if ((fin = fopen(conf_file, "r")) == NULL)          if ((fin = fopen(conf_file, "r")) == NULL)
96          {          {
97                  log_error("Open %s failed", conf_file);                  log_error("Open %s error: %d", conf_file, errno);
98                  return -2;                  return -2;
99          }          }
100    


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

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