home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / harbb30g.zip / INCLUDE / clipdefs.h < prev    next >
C/C++ Source or Header  |  1999-09-19  |  3KB  |  111 lines

  1. /*
  2.  * $Id: clipdefs.h,v 1.7 1999/09/19 04:38:31 vszel Exp $
  3.  */
  4.  
  5. /*
  6.  * Harbour Project source code:
  7.  * Compatibility header file for CA-Clipper base definitions
  8.  *
  9.  * Copyright 1999 Victor Szel <info@szelvesz.hu>
  10.  * www - http://www.harbour-project.org
  11.  *
  12.  * This program is free software; you can redistribute it and/or modify
  13.  * it under the terms of the GNU General Public License as published by
  14.  * the Free Software Foundation; either version 2 of the License, or
  15.  * (at your option) any later version, with one exception:
  16.  *
  17.  * The exception is that if you link the Harbour Runtime Library (HRL)
  18.  * and/or the Harbour Virtual Machine (HVM) with other files to produce
  19.  * an executable, this does not by itself cause the resulting executable
  20.  * to be covered by the GNU General Public License. Your use of that
  21.  * executable is in no way restricted on account of linking the HRL
  22.  * and/or HVM code into it.
  23.  *
  24.  * This program is distributed in the hope that it will be useful,
  25.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  26.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27.  * GNU General Public License for more details.
  28.  *
  29.  * You should have received a copy of the GNU General Public License
  30.  * along with this program; if not, write to the Free Software
  31.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit
  32.  * their web site at http://www.gnu.org/).
  33.  *
  34.  */
  35.  
  36. /* DON'T USE THIS FILE FOR NEW HARBOUR C CODE */
  37.  
  38. /* This file is provided to support some level of */
  39. /* Harbour compatibility for old Clipper C extension code */
  40.  
  41. #ifndef HB_CLIPDEFS_H_
  42. #define HB_CLIPDEFS_H_
  43.  
  44. #include "extend.h"
  45. #include "caundoc.api"
  46.  
  47. /* Old types */
  48.  
  49. typedef BYTE    byte;
  50. typedef USHORT  quant;
  51. typedef BOOL    Boolean;
  52.  
  53. /* New types */
  54.  
  55. typedef BYTE*   BYTEP;
  56. typedef BYTEP   PBYTE;
  57. typedef BYTEP   BYTEPP;
  58.  
  59. typedef SHORT*  SHORTP;
  60. typedef SHORTP  PSHORT;
  61.  
  62. typedef USHORT* USHORTP;
  63. typedef USHORTP PUSHORT;
  64.  
  65. typedef unsigned int WORD;
  66. typedef WORD*   WORDP;
  67. typedef WORDP   PWORD;
  68.  
  69. typedef LONG*   LONGP;
  70. typedef LONGP   PLONG;
  71.  
  72. typedef ULONG*  ULONGP;
  73. typedef ULONGP  PULONG;
  74.  
  75. typedef unsigned long DWORD;
  76. typedef DWORD*  DWORDP;
  77. typedef DWORDP  PDWORD;
  78.  
  79. typedef BOOL*   BOOLP;
  80. typedef BOOLP   PBOOL;
  81.  
  82. typedef void*   NEARP;
  83. typedef NEARP*  NEARPP;
  84.  
  85. typedef void*   FARP;
  86. typedef FARP*   FARPP;
  87.  
  88. typedef FARP    VOIDP;
  89. typedef FARP    PVOID;
  90.  
  91. typedef void*   HANDLE;
  92. typedef USHORT  ERRCODE;
  93. typedef ERRCODE IHELP;
  94. typedef ERRCODE ICODE;
  95.  
  96. /* default func ptr -- USHORT return, USHORT param */
  97. typedef USHORT  ( * FUNCP )( USHORT param, ...);
  98. typedef FUNCP*  FUNCPP;
  99.  
  100. #define HIDE    static
  101. #define CLIPPER HARBOUR
  102.  
  103. #ifndef NIL
  104.    #define NIL     '\0'
  105. #endif
  106. #ifndef NULL
  107.    #define NULL    0
  108. #endif
  109.  
  110. #endif /* HB_CLIPDEFS_H_ */
  111.