--- lbbs/src/menu.c 2025/12/19 06:16:27 1.93 +++ lbbs/src/menu.c 2026/02/13 12:38:09 1.96 @@ -3,7 +3,7 @@ * menu * - configurable user interactive menu feature * - * Copyright (C) 2004-2025 Leaflet + * Copyright (C) 2004-2026 Leaflet */ #ifdef HAVE_CONFIG_H @@ -40,6 +40,12 @@ static const char MENU_CONF_DELIM_WITHOU MENU_SET bbs_menu; MENU_SET top10_menu; +// External definitions for inline functions +extern inline MENU *get_menu(MENU_SET *p_menu_set, const char *menu_name); +extern inline MENU *get_menu_by_id(MENU_SET *p_menu_set, MENU_ID menu_id); +extern inline MENU_ITEM *get_menu_item_by_id(MENU_SET *p_menu_set, MENU_ITEM_ID menu_item_id); +extern inline MENU_SCREEN *get_menu_screen_by_id(MENU_SET *p_menu_set, MENU_SCREEN_ID menu_screen_id); + int load_menu(MENU_SET *p_menu_set, const char *conf_file) { char filepath[FILE_PATH_LEN]; @@ -88,7 +94,7 @@ int load_menu(MENU_SET *p_menu_set, cons if ((fin = fopen(conf_file, "r")) == NULL) { - log_error("Open %s failed", conf_file); + log_error("Open %s error: %d", conf_file, errno); return -2; }