home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / harbb30g.zip / INCLUDE / vm.api < prev   
Text File  |  1999-09-23  |  3KB  |  74 lines

  1. /*
  2.  * $Id: vm.api,v 1.8 1999/09/23 07:29:49 vszel Exp $
  3.  */
  4.  
  5. /*
  6.  * Harbour Project source code:
  7.  * Compatibility header file for CA-Clipper Virtual Memory API
  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. #ifndef HB_VM_API_
  39. #define HB_VM_API_
  40.  
  41. #include "clipdefs.h"
  42. #include "extend.h"
  43.  
  44. /* Standard */
  45. #define _xvalloc( size, flags )      hb_xalloc( size )
  46. #define _xvfree( h )                 hb_xfree( h )
  47. #define _xvrealloc( h, size, flags ) hb_xrealloc( h, size )
  48. #define _xvlock( h )                 ( h )
  49. #define _xvunlock( h )               /* dummy */
  50.  
  51. /* Wire */
  52. #define _xvwire( h )                 ( h )
  53. #define _xvunwire( h )               /* dummy */
  54.  
  55. /* State */
  56. #define _xvlockcount( h )            ( 0 )
  57. #define _xvsize( h )                 hb_xsize( h )
  58.  
  59. /* -------------------------------------------------------- */
  60. /* Warning: Heap functionality is not supported by Harbour. */
  61. /*          All functions will emulate constant failure.    */
  62. /* -------------------------------------------------------- */
  63.  
  64. /* Heap */
  65. #define _xvheapnew( size )           ( 0 )
  66. #define _xvheapdestroy( h )          /* dummy */
  67. #define _xvheapresize( h, size )     /* dummy */
  68. #define _xvheapalloc( h, size )      ( 0 )
  69. #define _xvheapfree( h, offset )     /* dummy */
  70. #define _xvheaplock( h, offset )     ( 0 )
  71. #define _xvheapunlock( h, offset )   /* dummy */
  72.  
  73. #endif /* HB_VM_API_ */
  74.