Files
harbour-core/harbour/contrib/xhb/hbcomprs.ch
Viktor Szakats 7e0ce822ed 2010-05-31 19:47 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added experimental support for filters containing string
      comparisons, f.e.: '{MY_VAR='hello'}-cflag=-DMY_FLAG'
    ; NOTE: It's not guaranteed yet that this feature will stay.

  * include/hbzlib.ch
    + Added HB_ZLIB_RES_* zlib result values.

  * contrib/xhb/Makefile
  - contrib/xhb/hbcomprs.c
  + contrib/xhb/hbcomprs.prg
  + contrib/xhb/tests/compress.prg
    + Rewritten xhb compatiblity compression functions in .prg.
      The main reason was to avoid dependence on zlib.h on C level.
      This simplifies the build layout.
    ! This fixes last zip error to work in MT programs.
    + Added test/demo program from xhb. Work by Giancarlo Niccolai.
    ; NOTE: Tested only with xhb test/demo program.

  * contrib/xhb/hbcomprs.ch
    + Changed to use HB_ZLIB_* constants. So it's now only a wrapper
      instead of replicating values.
2010-05-31 17:49:04 +00:00

75 lines
3.0 KiB
Plaintext

/*
* $Id$
*/
/*
* xHarbour Project source code:
* Compression related functions
*
* Copyright 2003 Giancarlo Niccolai <giancarlo@niccolai.ws>
* www - http://www.xharbour.org
* SEE ALSO COPYRIGHT NOTICE FOR ZLIB BELOW.
*
* 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. 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.
*
*/
#ifndef HB_COMPRESS_CH
#define HB_COMPRESS_CH
#include "hbzlib.ch"
#define HB_Z_OK HB_ZLIB_RES_OK
#define HB_Z_STREAM_END HB_ZLIB_RES_STREAM_END
#define HB_Z_NEED_DICT HB_ZLIB_RES_NEED_DICT
#define HB_Z_ERRNO HB_ZLIB_RES_ERRNO
#define HB_Z_STREAM_ERROR HB_ZLIB_RES_STREAM_ERROR
#define HB_Z_DATA_ERROR HB_ZLIB_RES_DATA_ERROR
#define HB_Z_MEM_ERROR HB_ZLIB_RES_MEM_ERROR
#define HB_Z_BUF_ERROR HB_ZLIB_RES_BUF_ERROR
#define HB_Z_VERSION_ERROR HB_ZLIB_RES_VERSION_ERROR
#define HB_Z_NO_COMPRESSION HB_ZLIB_COMPRESSION_NONE
#define HB_Z_BEST_SPEED HB_ZLIB_COMPRESSION_SPEED
#define HB_Z_BEST_COMPRESSION HB_ZLIB_COMPRESSION_SIZE
#define HB_Z_DEFAULT_COMPRESSION HB_ZLIB_COMPRESSION_DEFAULT
#endif