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

Diff of /lbbs/src/menu_proc.c

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

Revision 1.40 by sysadm, Fri Oct 17 12:23:01 2025 UTC Revision 1.41 by sysadm, Sat Oct 18 12:06:10 2025 UTC
# Line 43  int list_section(void *param) Line 43  int list_section(void *param)
43          return REDRAW;          return REDRAW;
44  }  }
45    
46    typedef union exec_handler_t{
47            void *p;
48            int (*handler)();
49    } exec_handler;
50    
51  int exec_mbem(void *param)  int exec_mbem(void *param)
52  {  {
53          void *hdll;          void *hdll;
54          int (*func)();          exec_handler func;
55          char *c, *s;          char *c, *s;
56          char buf[FILE_PATH_LEN];          char buf[FILE_PATH_LEN];
57    
# Line 69  int exec_mbem(void *param) Line 74  int exec_mbem(void *param)
74                  {                  {
75                          char *error;                          char *error;
76    
77                          if ((func = dlsym(hdll, c ? c : "mod_main")) != NULL)                          if ((func.p = dlsym(hdll, c ? c : "mod_main")) != NULL)
78                                  func();                          {
79                                    func.handler();
80                            }
81                          else if ((error = dlerror()) != NULL)                          else if ((error = dlerror()) != NULL)
82                          {                          {
83                                  clearscr();                                  clearscr();


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

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