home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / SASC6574.LZX / include / constructor.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-04  |  1.7 KB  |  53 lines

  1. /* Copyright (c) 1993 SAS Institute, Inc, Cary, NC USA */
  2. /* All Rights Reserved. */
  3.  
  4. #ifndef _CONSTRUCTOR_H
  5. #define _CONSTRUCTOR_H
  6.  
  7. #define CONSTRUCTOR(x) int __stdargs _STI_##x(void)
  8. #define CONSTRUCTOR_P(x,n) CONSTRUCTOR(n##_##x)
  9. #define CONSTRUCTOR_NAME(x,n) _STI_##n##_##x
  10.  
  11. #define DESTRUCTOR(x) void __stdargs _STD_##x(void)
  12. #define DESTRUCTOR_P(x,n) DESTRUCTOR(n##_##x)
  13. #define DESTRUCTOR_NAME(x,n) _STD_##n##_##x
  14.  
  15. #define FP_CONSTRUCTOR(x) CONSTRUCTOR_P(x,100)
  16. #define FP_DESTRUCTOR(x) DESTRUCTOR_P(x,100)
  17.  
  18. #define CBMLIB_CONSTRUCTOR(x) CONSTRUCTOR_P(x,110)
  19. #define CBMLIB_DESTRUCTOR(x) DESTRUCTOR_P(x,110)
  20.  
  21. #define CLOCK_CONSTRUCTOR(x) CONSTRUCTOR_P(x,150)
  22. #define CLOCK_DESTRUCTOR(x) DESTRUCTOR_P(x,150)
  23.  
  24. #define PROFILE_CONSTRUCTOR(x) CONSTRUCTOR_P(x,150)
  25. #define PROFILE_DESTRUCTOR(x) DESTRUCTOR_P(x,150)
  26. #define PROFILE_DESTRUCTOR_NAME(x) DESTRUCTOR_NAME(x,150)
  27.  
  28. #define COVER_CONSTRUCTOR(x) CONSTRUCTOR_P(x,210)
  29. #define COVER_DESTRUCTOR(x) DESTRUCTOR_P(x,210)
  30.  
  31. #define MEMCLEANUP_CONSTRUCTOR(x) CONSTRUCTOR_P(x,250)
  32. #define MEMCLEANUP_DESTRUCTOR(x) DESTRUCTOR_P(x,250)
  33.  
  34. #define STACKEXT_CONSTRUCTOR(x) CONSTRUCTOR_P(x,250)
  35. #define STACKEXT_DESTRUCTOR(x) DESTRUCTOR_P(x,250)
  36.  
  37. #define DFIND_CONSTRUCTOR(x) DESTRUCTOR_P(x,300)
  38. #define DFIND_DESTRUCTOR(x) DESTRUCTOR_P(x,300)
  39.  
  40. #define STDIO_CONSTRUCTOR(x) CONSTRUCTOR_P(x,500)
  41. #define STDIO_DESTRUCTOR(x) DESTRUCTOR_P(x,500)
  42.  
  43. #define CPPIO_CONSTRUCTOR(x) CONSTRUCTOR_P(x,4990)
  44. #define CPPIO_DESTRUCTOR(x) DESTRUCTOR_P(x,4990)
  45.  
  46. #define CPP_CONSTRUCTOR(x) CONSTRUCTOR_P(x,5000)
  47. #define CPP_DESTRUCTOR(x) DESTRUCTOR_P(x,5000)
  48.  
  49. #define DEFAULT_CONSTRUCTOR(x) CONSTRUCTOR_P(x,30000)
  50. #define DEFAULT_DESTRUCTOR(x) DESTRUCTOR_P(x,30000)
  51.  
  52. #endif
  53.