home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / msdos / graphics / tcxl.arc / TCXLDEF.H < prev    next >
C/C++ Source or Header  |  1988-04-18  |  3KB  |  86 lines

  1.  
  2. /*
  3.    ┌──────────────────────────────────────────────────────────────────────────┐
  4.    │                                                                          │
  5.    │  TCXLDEF.H - TCXL (c) 1987, 1988 by Mike Smedley.                        │
  6.    │                                                                          │
  7.    │  This header file contains miscellaneous function prototypes and         │
  8.    │  definitions.                                                            │
  9.    │                                                                          │
  10.    └──────────────────────────────────────────────────────────────────────────┘
  11. */
  12.  
  13.  
  14. #if __STDC__
  15. #define _Cdecl
  16. #else
  17. #define _Cdecl cdecl
  18. #endif
  19.  
  20.  
  21. /*---------------------------[ Function Prototypes ]-------------------------*/
  22.  
  23. void            _Cdecl beep(void);
  24. char           *_Cdecl biosver(void);
  25. int             _Cdecl clockcal(void);
  26. void            _Cdecl delay_(unsigned duration);
  27. unsigned        _Cdecl expmem(void);
  28. unsigned        _Cdecl extmem(void);
  29. void            _Cdecl sound_(unsigned pitch,unsigned duration);
  30. int             _Cdecl tabstop(int col,int tabwidth);
  31. unsigned long   _Cdecl timer(void);
  32.  
  33.  
  34. /*-----------------[ definitions for common control codes ]------------------*/
  35.  
  36. #define NUL         0
  37. #define BEL         7
  38. #define BS          8
  39. #define HT          9
  40. #define LF          10
  41. #define FF          12
  42. #define CR          13
  43. #define ESC         27
  44.  
  45.  
  46. /*------------------------[ definition of NULL ]-----------------------------*/
  47.  
  48. #ifndef NULL
  49. #   if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__)
  50. #   define      NULL    0
  51. #   else
  52. #   define      NULL    0L
  53. #   endif
  54. #endif
  55.  
  56.  
  57. /*-----------------------[ Boolean logic conditions ]------------------------*/
  58.  
  59. #define NO          0
  60. #define YES         1
  61. #define FALSE       0
  62. #define TRUE        1
  63. #define OFF         0
  64. #define ON          1
  65.  
  66.  
  67. /*----------------[ machine ID codes returned from machid() ]----------------*/
  68.  
  69. #define IBMPC       255                 /*  IBM PC                 */
  70. #define IBMPCXT     254                 /*  IBM PC/XT              */
  71. #define IBMPCJR     253                 /*  IBM PCjr               */
  72. #define IBMPCAT     252                 /*  IBM PC/AT              */
  73. #define IBMPCXT2    251                 /*  IBM PC/XT              */
  74. #define IBMCONV     249                 /*  IBM PC Convertible     */
  75. #define SPERRYPC    48                  /*  Sperry PC              */
  76.  
  77.  
  78. /*-----------------------[ macro-function definitions ]-----------------------*/
  79.  
  80. #define gameport(a)         ((a&4096)>>12)
  81. #define machid()            (unsigned char)peekb(0xf000,0xfffe);
  82. #define mathchip(a)         ((a&2)>>1)
  83. #define numflop(a)          (((a&192)>>6)+1)
  84. #define numpar(a)           (((unsigned)(a&-16384))>>14)
  85. #define numser(a)           ((a&3584)>>9)
  86.