home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD1.3 / Includes / libraries / mathlibrary.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-12  |  1.2 KB  |  45 lines

  1. #ifndef LIBRARIES_MATHLIBRARY_H
  2. #define LIBRARIES_MATHLIBRARY_H 
  3. /*
  4. **    $Filename: libraries/mathlibrary.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifndef EXEC_LIBRARIES_H
  18. #include <exec/libraries.h>
  19. #endif
  20.  
  21. struct MathIEEEBase
  22. {
  23.     struct Library MathIEEEBase_LibNode;
  24.     unsigned char    MathIEEEBase_Flags;
  25.     unsigned char    MathIEEEBase_reserved1;
  26.     unsigned short    *MathIEEEBase_68881;
  27.     APTR    MathIEEEBase_SysLib;
  28.     APTR    MathIEEEBase_SegList;
  29.     struct    MathIEEEResource *MathIEEEBase_Resource;
  30.     int    (*MathIEEEBase_TaskOpenLib)();
  31.     int    (*MathIEEEBase_TaskCloseLib)();
  32.     /*    This structure may be extended in the future */
  33. };
  34. /*
  35. * Math resources may need to know when a program opens or closes this
  36. * library. The functions TaskOpenLib and TaskCloseLib are called when 
  37. * a task opens or closes this library. They are initialized to point to
  38. * local initialization pertaining to 68881 stuff if 68881 resources 
  39. * are found. To override the default the vendor must provide appropriate 
  40. * hooks in the MathIEEEResource. If specified, these will be called 
  41. * when the library initializes.
  42. */
  43.  
  44. #endif    /* LIBRARIES_MATHLIBRARY_H */
  45.