home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 10 / Fresh_Fish_10_2352.bin / new / comm / tcp / netinput / source / compiler.h next >
Encoding:
C/C++ Source or Header  |  1995-06-24  |  1.1 KB  |  31 lines

  1. #ifndef __COMPILER_H
  2. #define __COMPILER_H
  3. /*
  4. ** $VER: compiler.h 1.0 (24 Jun 1995)
  5. **
  6. ** Compiler abstraction
  7. **
  8. ** (C) Copyright 1995 Marius Gröger
  9. **     All Rights Reserved.
  10. */
  11.  
  12. #ifdef __SASC
  13. #  define ASM     __asm              /* define registers for function args */
  14. #  define REG(x)  register __ ## x   /* specify a register in arglist */
  15. #  define INLINE  __inline           /* inline this function */
  16. #  define REGARGS __regargs          /* pass args to this function in regs */
  17. #  define SAVEDS  __saveds           /* setup data segment reg. on entry */
  18. #  define FAR     __far              /* reference this object in far mode */
  19. #  define MIN     __builtin_min      /* min{} function */
  20. #  define MAX     __builtin_max      /* max{} function */
  21. #  define PUTREG __builtin_putreg    /* set a register to a certain value */
  22. #  define REG_D0 0                   /* reg. number for PUTREG() */
  23. #  define REG_D1 1                   /* reg. number for PUTREG() */
  24. extern void PUTREG(int, long);       /* prototype */
  25. #else
  26. #  error Please define the above macros for your compiler
  27. #endif
  28.  
  29. #endif
  30.  
  31.