home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / sigm / vol181 / portab.hq / PORTAB.H
Encoding:
C/C++ Source or Header  |  1985-02-10  |  2.5 KB  |  57 lines

  1. /****************************************************************************
  2. *
  3. *      C P / M   C   R U N   T I M E   L I B   H E A D E R   F I L E
  4. *      -------------------------------------------------------------
  5. *    Copyright 1982 by Digital Research Inc.  All rights reserved.
  6. *
  7. *    This is an include file for assisting the user to write portable
  8. *    programs for C.  All processor dependencies should be located here.
  9. *
  10. ****************************************************************************/
  11.                         /***************************/
  12.                                                 /* Processor Dependencies: */
  13.                         /***************************/
  14.                         /********  8 0 8 6 *********/
  15.                         /***************************/
  16. #define PCDOS 0                    /* Compiling fo PCDOS? no  */
  17. #define CPM68K 0                /* CPM68K dependent? no    */
  18. #define HILO 0                    /* Byte storage order? no  */
  19.                         /***************************/
  20. /*
  21.  *    Standard type definitions
  22.  */
  23. #define    BYTE    char                /* Signed byte           */
  24. #define UBYTE    char                /* Unsigned byte        */
  25. #define BOOLEAN    int                /* 2 valued (true/false)   */
  26. #define    WORD    int                  /* Signed word (16 bits)   */
  27. #define    UWORD    unsigned int            /* unsigned word       */
  28.  
  29. #define    LONG    long                /* signed long (32 bits)   */
  30. #define    ULONG    long                /* Unsigned long       */
  31.  
  32. #define    REG    register            /* register variable       */
  33. #define    LOCAL    auto                /* Local var on 68000       */
  34. #define    EXTERN    extern                /* External variable       */
  35. #define    MLOCAL    static                /* Local to module       */
  36. #define    GLOBAL    /**/                /* Global variable       */
  37. #define    VOID    /**/                /* Void function return       */
  38. #define    DEFAULT    int                /* Default size           */
  39. #define FLOAT    float                /* Floating Point       */
  40. #define DOUBLE    double                /* Double precision       */
  41.  
  42.  
  43. /****************************************************************************/
  44. /*    Miscellaneous Definitions:                        */
  45. /****************************************************************************/
  46. #define    FAILURE    (-1)            /*    Function failure return val */
  47. #define SUCCESS    (0)            /*    Function success return val */
  48. #define    YES    1            /*    "TRUE"                */
  49. #define    NO    0            /*    "FALSE"                */
  50. #define    FOREVER    for(;;)            /*    Infinite loop declaration   */
  51. #define    NULL    0            /*    Null character value        */
  52. #define NULLPTR (char *) 0        /*    Null pointer value        */
  53. #define    EOF    (-1)            /*    EOF Value            */
  54. #define    TRUE    (1)            /*    Function TRUE  value        */
  55. #define    FALSE    (0)            /*    Function FALSE value        */
  56.  
  57.