home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / GRLF-C-1.ZIP / GF.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-14  |  1.5 KB  |  84 lines

  1. /* GF.H - Supports LARGE model */
  2. #define _LDATA     1
  3. #define _LCODE     1
  4. #ifndef _MSC
  5. #define _MSC 5
  6. #endif
  7. /*  Required GF.H Header for Microsoft C
  8. *
  9. *  Copyright (C) 1983-90 Greenleaf Software, Inc.  All rights reserved.
  10. *
  11. *  To use, copy this file, GF.S to GF.H
  12. */
  13.  
  14.  
  15.  
  16. #ifndef GFDOTH
  17. #define GFDOTH
  18.  
  19. #ifndef LINT_ARGS
  20. #define LINT_ARGS
  21. #endif
  22.  
  23. #ifdef _MSC
  24.     #if _MSC > 51
  25.         #define GF_CDECL _cdecl
  26.         #define GF_CONV _fastcall
  27.     #else
  28.         #define GF_CDECL
  29.         #define GF_CONV
  30.     #endif
  31. #else
  32.     #define GF_CDECL 
  33.     #define GF_CONV
  34. #endif
  35.  
  36. #define EOS     '\0'
  37. typedef unsigned int    word;
  38. #ifndef GLOS2
  39. typedef char            BYTE;
  40. #endif
  41. typedef int             bool;
  42. #define VIDEO   0x10
  43. #define DOSINT  0x21
  44. struct GFREGS   { int ax,bx,cx,dx,si,di,ds,es; };
  45. #define YES     1
  46. #define NO      0
  47. #define TRUE    1
  48. #define FALSE   0
  49. #define OK      1
  50. #define NOTOK   0
  51. #define SUCCESS 1
  52. #define FAILURE 0
  53. #define ON      1
  54. #define OFF     0
  55. #define SET     1
  56. #define CLEAR   0
  57. #define FOREVER 1
  58. #define NEVER   0
  59. #define ERROR   (-1)
  60. #define NORM    1
  61. #define FAST    2
  62. #define SLOW    3
  63. #define INCHES  10
  64. #define LINES   11
  65. #define BLANK   0x20
  66. #define CR      13
  67. #define LF      10
  68. #define FF      12
  69. #define BKSP    8
  70. #define TAB     9
  71. #define ESC     27
  72. #define DEL     0x7F
  73. /* monochrome video attributes */
  74. #define ULINE 1
  75. #define INTENSE 8
  76. #define NORMAL  7
  77. #define VNORMAL 7
  78. #define REVERSE 0x70
  79. #define NONDISP 0
  80. #define iscarry(x) ((x&0x0001)?TRUE:FALSE)
  81.  
  82. #endif
  83.  
  84.