home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Database / CLIPR502.DOS / INCLUDE / CLIPDEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-15  |  1.6 KB  |  88 lines

  1. /***
  2. *
  3. *   Clipdefs.h
  4. *
  5. *   C language defines and types for CA-Clipper
  6. *
  7. *   Copyright (c) 1992-1993, Computer Associates International, Inc.
  8. *   All rights reserved.
  9. *
  10. *   Clipper uses Microsoft C large model calling conventions.
  11. *
  12. */
  13.  
  14. /* 
  15. *  old types 
  16. */
  17. typedef unsigned char byte;
  18. typedef unsigned short quant;
  19. typedef unsigned short Boolean;
  20.  
  21. /* 
  22. *  newest and most wonderful types 
  23. */
  24. typedef unsigned char BYTE;
  25. typedef BYTE far * BYTEP;
  26. typedef BYTEP PBYTE;
  27.  
  28. typedef BYTEP far * BYTEPP;
  29.  
  30. typedef short SHORT;
  31. typedef SHORT far * SHORTP;
  32. typedef SHORTP PSHORT;
  33.  
  34. typedef unsigned short USHORT;
  35. typedef USHORT far * USHORTP;
  36. typedef USHORTP PUSHORT;
  37.  
  38. typedef unsigned int WORD;
  39. typedef WORD far * WORDP;
  40. typedef WORDP PWORD;
  41.  
  42. typedef long LONG;
  43. typedef LONG far * LONGP;
  44. typedef LONGP PLONG;
  45.  
  46. typedef unsigned long ULONG;
  47. typedef ULONG far * ULONGP;
  48. typedef ULONGP PULONG;
  49.  
  50. typedef unsigned long DWORD;
  51. typedef DWORD far * DWORDP;
  52. typedef DWORDP PDWORD;
  53.  
  54.  
  55. typedef USHORT BOOL;
  56. typedef BOOL far * BOOLP;
  57. typedef BOOLP PBOOL;
  58.  
  59. typedef USHORT HANDLE;
  60.  
  61. typedef USHORT ERRCODE;
  62. typedef ERRCODE IHELP;
  63. typedef ERRCODE ICODE;
  64.  
  65. /* default func ptr -- USHORT return, USHORT param */
  66. typedef USHORT (far * FUNCP)(USHORT param, ...);
  67. typedef FUNCP far * FUNCPP;
  68.  
  69. typedef void near * NEARP;
  70. typedef NEARP far * NEARPP;
  71.  
  72. typedef void far * FARP;
  73. typedef FARP far * FARPP;
  74.  
  75. typedef FARP VOIDP;
  76. typedef FARP PVOID;
  77.  
  78. #define HIDE      static
  79. #define CLIPPER   void pascal
  80.                
  81. #define FALSE      0
  82. #define TRUE       1
  83. #define NIL     '\0'
  84. #define NULL      0L
  85.  
  86. #define _CLIPDEFS_H
  87.  
  88.