home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / M2V11-2.LHA / modula / dice / dice.lha / dynamic / dynamic.lha / objsrc / libs / intuition.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-29  |  443 b   |  31 lines

  1.  
  2. /*
  3.  *  INTUITION.C   intuition.library support
  4.  */
  5.  
  6. #include <exec/types.h>
  7. #include <exec/libraries.h>
  8. #include <clib/exec_protos.h>
  9.  
  10. typedef struct Library Library;
  11.  
  12. Library *hyper_IntuitionBase;
  13.  
  14. long
  15. _auto_start()
  16. {
  17.     if (hyper_IntuitionBase = OpenLibrary("intuition.library", 0))
  18.     return(1);
  19.     return(0);
  20. }
  21.  
  22. void
  23. _auto_exit()
  24. {
  25.     if (hyper_IntuitionBase) {
  26.     CloseLibrary(hyper_IntuitionBase);
  27.     hyper_IntuitionBase = NULL;
  28.     }
  29. }
  30.  
  31.