home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / wp_dtp / xdme1821.lha / XDME / simplex.c < prev    next >
C/C++ Source or Header  |  1993-02-04  |  1KB  |  48 lines

  1. #include "defs.h"           /* for Ep, ED    */
  2.  
  3. Prototype void * currentmenu  (void); /* muss neu besetzt werden bei jeder Veraenderung des aktuellen Textes */
  4. Prototype void * currenthash  (void); /* muss neu besetzt werden bei jeder Veraenderung des aktuellen Textes */
  5. Prototype void * currentwindow(void); /* muss neu besetzt werden bei jeder Veraenderung des aktuellen Textes */
  6.  
  7. Prototype void     init_structures (void);
  8.  
  9. void * onlymenu  = NULL;
  10. void * onlyhash  = NULL;
  11.  
  12.  
  13. void * currentmenu (void)
  14. {
  15.     /* return(onlymenu); */
  16.  
  17.     if ((Ep == NULL) || (Ep->menustrip == NULL)) {
  18.     return (get_menustrip (NULL));
  19.     } /* if */
  20.     return (Ep->menustrip);
  21. } /* currentmenu */
  22.  
  23.  
  24. void * currenthash(void)
  25. {
  26.     /* return(onlyhash); */
  27.  
  28.     if ((Ep == NULL) || (Ep->keytable == NULL)) {
  29.     return (get_keytable (NULL));
  30.     } /* if */
  31.     return (Ep->keytable);
  32. } /* currenthash */
  33.  
  34.  
  35. void * currentwindow(void)
  36. {
  37.     return (Ep->win);
  38. } /* currentwindow */
  39.  
  40.  
  41. void init_structures (void)
  42. {
  43.     onlymenu = new_menustrip ("default",1);
  44.     onlyhash = new_keytable  ("default",1);
  45. } /* init_structures */
  46.  
  47.  
  48.