home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 113 / EnigmaAmiga113CD.iso / software / sviluppo / mcc_monthnavigator / developer / c / examples / system.h < prev   
Text File  |  1999-12-12  |  2KB  |  91 lines

  1.  /* Copyright © 1995-1999 Dipl.-Inform. Kai Hofmann. All rights reserved. */
  2.  
  3.  
  4.  #ifndef SYSTEM_H
  5.    #define SYSTEM_H
  6.  
  7.  
  8.    #include "debug.h"
  9.  
  10.  
  11.    #define _ISO8859_Latin1
  12.    #include <exec/types.h>
  13.  
  14.  
  15.    #define bool                BOOL
  16.    #define true                TRUE
  17.    #define false            FALSE
  18.  
  19.  
  20.    #ifdef __cplusplus
  21.      #undef __MakeLib
  22.      #define VAR(n)            &n
  23.      #define VAL(n)            n
  24.      #define ARG(n)            n
  25.      /* SAS-C workaround */
  26.      #define SNAME(n)            n ## ENUM
  27.      #define INLINE            inline
  28.    #else
  29.      #define VAR(n)            *const n
  30.      #define VAL(n)            (*n)
  31.      #define ARG(n)            &n
  32.      /* SAS-C workaround */
  33.      #define SNAME(n)
  34.      #define INLINE            __inline
  35.    #endif
  36.  
  37.  
  38.    #ifdef __MakeLib
  39.      #define ALIGNED            __aligned
  40.      #define FAR            __far
  41.      #define STACKARGS            __stdargs
  42.      #define REGISTERARGS        __regargs
  43.      #define ASM            __asm
  44.      #define SAVEDS            __saveds
  45.      #define SAVEDS_ASM            __saveds __asm
  46.      #define DLL_EXPORT
  47.      #define DLL_IMPORT
  48.      #define D0                __d0
  49.      #define D1                __d1
  50.      #define D2                __d2
  51.      #define D3                __d3
  52.      #define D4                __d4
  53.      #define D5                __d5
  54.      #define D6                __d6
  55.      #define D7                __d7
  56.      #define A0                __a0
  57.      #define A1                __a1
  58.      #define A2                __a2
  59.      #define A3                __a3
  60.      #define A4                __a4
  61.      #define A5                __a5
  62.      #define A6                __a6
  63.      #define REG(r)            register r
  64.      #define GCCREG(r)
  65.      #define INIT(modul,libbase)    long SAVEDS_ASM __UserLibInit(REG(A6) struct Library *base)
  66.      #define CLEAN(modul,libbase)    void SAVEDS_ASM __UserLibCleanup(REG(A6) struct Library *base)
  67.      #define INITPROTO(modul,libbase)
  68.      #define CLEANPROTO(modul,libbase)
  69.      #define INITCALL(modul,libbase)
  70.      #define CLEANCALL(modul,libbase)
  71.    #else
  72.      #define ALIGNED            __aligned
  73.      #define FAR            __far
  74.      #define STACKARGS            __stdargs
  75.      #define REGISTERARGS        __regargs
  76.      #define ASM
  77.      #define SAVEDS
  78.      #define SAVEDS_ASM
  79.      #define DLL_EXPORT
  80.      #define DLL_IMPORT
  81.      #define REG(r)
  82.      #define GCCREG(r)
  83.      #define INIT(modul,libbase)    void _STI_600__ ## modul ## Init(void)
  84.      #define CLEAN(modul,libbase)    void _STD_600__ ## modul ## Cleanup(void)
  85.      #define INITPROTO(modul,libbase)
  86.      #define CLEANPROTO(modul,libbase)
  87.      #define INITCALL(modul,libbase)
  88.      #define CLEANCALL(modul,libbase)
  89.    #endif
  90.  #endif
  91.