* include/Makefile
+ include/hbzlib.h
* include/hbzlib.ch
* src/rtl/Makefile
* src/rtl/hbzlib.c
+ added new C functions weakly bound with ZLIB library:
HB_SIZE hb_zlibCompressBound( HB_SIZE nLen );
HB_SIZE hb_zlibUncompressedSize( const char * pSrc, HB_SIZE nLen,
int * piResult );
int hb_zlibCompress( char * pDst, HB_SIZE * pnDst,
const char * pSrc, HB_SIZE nLen, int iLevel );
int hb_zlibUncompress( char * pDst, HB_SIZE * pnDst,
const char * pSrc, HB_SIZE nLen );
these functions can be used by any C code without forcing ZLIB liking.
If user usese in his code HB_ZCOMPRESS() function or has
REQUEST HB_ZCOMPRESS
then above funcitons are automatically bound with linked ZLIB library.
Otherwise they return 0 or HB_ZLIB_RES_UNSUPPORTED error.
* src/rdd/dbf1.c
* small code simplification
; added note about alternative numeric value rounding when
pure binary integer fields (without decimal places) are
assigned.
* src/common/hbdate.c
! added missing header for WinCE builds
* include/hbexpra.c
* minor simplification
* src/vm/macro.c
+ added new implementation for MemVarBlock() function. It's much faster
and does not force dynamic symbol table scanning on each call
* src/rtl/Makefile
- src/rtl/memvarbl.prg
- removed previous implementation of MemVarBlock()
* src/rtl/tgetint.prg
! fixed __Get() and __GetA() to return NIL when cVarName parameter
is not string (CA-Cl*pper compatible)
! fixed __GetA() to return NIL when given aIndex parameter or value
returned by variable block is not array (CA-Cl*pper compatible)
! fixed __Get() and __GetA() to use FieldWBlock() instead of manually
created macro block which didn't respect workarea
(CA-Cl*pper compatible)
! fixed __GetA() to create SET/GET block instead of access block
(CA-Cl*pper compatible)
! fixed __Get() and __GetA() to not create simple SET/GET macro
blocks but always force memvar usage (CA-Cl*pper compatible).
Please remember that
&( "DATA" )
gives code which tries to access field then memvar but
&( "DATA := .T." )
gives code which always tries to assign memvar and does not even
check if "DATA" field exists in current WA. It means that macro
compiled code like:
&( "{|_1| iif( _1 == NIL, DATA, DATA := _1 ) }" )
should not be used because gives higher priority for fields in
access operation and always assigns memvars, if necessary creating
them.
! allow to dynamically create memvars for get objects in error handler
(CA-Cl*pper compatible)
% use much faster MemVarBlock() instead of manually created codeblock
which activates dynamic symbol table scanning on each call
82 lines
3.3 KiB
Plaintext
82 lines
3.3 KiB
Plaintext
/*
|
|
* Harbour Project source code:
|
|
* ZIP header file
|
|
*
|
|
* Copyright 2008 Mindaugas Kavaliauskas <dbtopas.at.dbtopas.lt>
|
|
* www - http://harbour-project.org
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this software; see the file COPYING.txt. If not, write to
|
|
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
|
*
|
|
* As a special exception, the Harbour Project gives permission for
|
|
* additional uses of the text contained in its release of Harbour.
|
|
*
|
|
* The exception is that, if you link the Harbour libraries with other
|
|
* files to produce an executable, this does not by itself cause the
|
|
* resulting executable to be covered by the GNU General Public License.
|
|
* Your use of that executable is in no way restricted on account of
|
|
* linking the Harbour library code into it.
|
|
*
|
|
* This exception does not however invalidate any other reasons why
|
|
* the executable file might be covered by the GNU General Public License.
|
|
*
|
|
* This exception applies only to the code released by the Harbour
|
|
* Project under the name Harbour. If you copy code from other
|
|
* Harbour Project or Free Software Foundation releases into a copy of
|
|
* Harbour, as the General Public License permits, the exception does
|
|
* not apply to the code that you add in this way. To avoid misleading
|
|
* anyone as to the status of such modified files, you must delete
|
|
* this exception notice from them.
|
|
*
|
|
* If you write modifications of your own for Harbour, it is your choice
|
|
* whether to permit this exception to apply to your modifications.
|
|
* If you do not wish that, delete this exception notice.
|
|
*
|
|
*/
|
|
|
|
/* NOTE: This file is also used by C code. */
|
|
|
|
#ifndef HB_ZLIB_CH_
|
|
#define HB_ZLIB_CH_
|
|
|
|
#define HB_ZLIB_METHOD_STORE 0
|
|
#define HB_ZLIB_METHOD_DEFLATED 8
|
|
|
|
#define HB_ZLIB_COMPRESSION_NONE 0
|
|
#define HB_ZLIB_COMPRESSION_SPEED 1
|
|
#define HB_ZLIB_COMPRESSION_SIZE 9
|
|
#define HB_ZLIB_COMPRESSION_DEFAULT ( -1 )
|
|
#define HB_ZLIB_COMPRESSION_DISABLE ( -2 )
|
|
|
|
#define HB_ZLIB_STRATEGY_DEFAULT 0
|
|
#define HB_ZLIB_STRATEGY_FILTERED 1
|
|
#define HB_ZLIB_STRATEGY_HUFFMAN_ONLY 2
|
|
#define HB_ZLIB_STRATEGY_RLE 3
|
|
#define HB_ZLIB_STRATEGY_FIXED 4
|
|
|
|
#define HB_ZLIB_RES_OK 0
|
|
#define HB_ZLIB_RES_STREAM_END 1
|
|
#define HB_ZLIB_RES_NEED_DICT 2
|
|
#define HB_ZLIB_RES_ERRNO ( -1 )
|
|
#define HB_ZLIB_RES_STREAM_ERROR ( -2 )
|
|
#define HB_ZLIB_RES_DATA_ERROR ( -3 )
|
|
#define HB_ZLIB_RES_MEM_ERROR ( -4 )
|
|
#define HB_ZLIB_RES_BUF_ERROR ( -5 )
|
|
#define HB_ZLIB_RES_VERSION_ERROR ( -6 )
|
|
|
|
#define HB_ZLIB_RES_UNSUPPORTED ( -10 )
|
|
|
|
#endif /* HB_ZLIB_CH_ */
|