home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / Level 0 Macintosh 29Sep94 / Definitions.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  1.6 KB  |  59 lines  |  [TEXT/KAHL]

  1. /* Definitions.h */
  2.  
  3. #ifndef Included_Definitions_h
  4. #define Included_Definitions_h
  5.  
  6. /* Definitions module depends on: */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10.  
  11. /* generally useful values and types */
  12. #ifdef __cplusplus
  13.     #define NIL (0)
  14. #else
  15.     #define NIL ((void*)0L)
  16. #endif
  17. #define True (0 == 0)
  18. #define False (0 != 0)
  19. typedef int MyBoolean;
  20. #define CODE4BYTES(a,b,c,d) ((a)*(1L << 24) + (b)*(1L << 16) + (c)*(1L << 8) + (d))
  21.  
  22. /* available operating systems */
  23. #define OSTYPEMACINTOSH (CODE4BYTES('M','A','C','S'))
  24. #define OSTYPEWIN16 (CODE4BYTES('W','n','3','1'))
  25. #define OSTYPEUNKNOWN (CODE4BYTES('W','a','t','\?'))
  26.  
  27. /* available processor types */
  28. #define PROC68000 (CODE4BYTES('M','6','8','0'))
  29. #define PROC68020 (CODE4BYTES('M','6','8','2'))
  30. #define PROC80386 (CODE4BYTES('i','3','8','6'))
  31. #define PROCPOWERPC (CODE4BYTES('M','P','P','C'))
  32. #define PROCUNKNOWN (CODE4BYTES('D','u','m','b'))
  33.  
  34. /* what operating system are we running on. */
  35. #define CURRENTOSTYPE (OSTYPEMACINTOSH)
  36.  
  37. /* what processor are we running on */
  38. #ifdef THINK_C
  39.     #if __option(mc68020)
  40.         #define CURRENTPROCTYPE (PROC68020)
  41.     #else
  42.         #define CURRENTPROCTYPE (PROC68000)
  43.     #endif
  44. #else
  45.     #define CURRENTPROCTYPE (PROC68000)
  46. #endif
  47.  
  48. /* what line feed string is used on this system? */
  49. #define SYSTEMLINEFEED "\x0d"
  50.  
  51. /* generalized optimized block move operation.  Blocks will be handled */
  52. /* correctly even if the overlap */
  53. void                MoveData(char* Source, char* Destination, long NumBytes);
  54.  
  55. /* generalized block move operation.  Blocks can't overlap */
  56. void                CopyData(char* Source, char* Destination, long NumBytes);
  57.  
  58. #endif
  59.