Files
harbour-core/harbour/contrib/hbmzip
Viktor Szakats 9b27f5e707 2011-04-21 03:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added experimental -c=[iso90|iso99|iso1x|gnu90|gnu99|gnu1x] and
      -cpp=[iso98|iso0x|gnu98|gnu0x] hbmk2 options to select
      C/C++ dialect in a C compiler and built setting independent way.
      It will currently affect GCC and compatible family of compilers.
      If you happen to know about C dialect/std selection in other
      compilers, pls tell and they can be mapped to this option.
      F.e. in other win compilers the adaptation to C/C++ stds is very
      fuzzy, where such option exists at all (f.e. BCC -A* options),
      mostly it's just toggling some compiler extensions.
      Comments are welcome of course.
    + Added TOFIX for vxworks with potential disagreement on C std level.
      I used hardwired C99 forcage hack while porting Harbour to it.
    + Added internal logic for C- and C++-only options.
    ; NOTE: Behavior with Objective C sources is yet to be tested.

  * contrib/hbmzip/3rd/minizip/minizip.hbp
  * contrib/hbunix/hbunix.hbp
  * contrib/gtalleg/gtalleg.hbm
  * contrib/xhb/xhb.hbp
  * contrib/hbqt/hbqt_common.hbm
  * contrib/rddads/rddads.hbp
  * contrib/hbfimage/hbfimage.hbp
  * contrib/hbpre.hbm
  * contrib/hbssl/hbssl.hbm
    + -cflag=-std=... => -c=gnu90 hbmk2 option.
2011-04-21 01:12:24 +00:00
..

/*
 * $Id$
 */


This folder contains compression related files including:
 * zip file support based on minizip library (http://www.winimage.com/zLibDll/minizip.html)
   including:
   * wrapper functions for minizip
   * some additionl functions to provide a higher level API for zip files


Harbour functions to mange ZIP files:
=====================================

HB_ZipOpen( cFileName, [ iMode = HB_ZIP_CREATE ],
            [ @cGlobalComment ] ) --> hZip
HB_ZipClose( hZip, [ cGlobalComment ] ) --> nError
HB_ZipFileCreate( hZip, cZipName, tDateTime, cTime,
                  nInternalAttr, nExternalAttr,
                  [ nMethod = HB_ZLIB_METHOD_DEFLATE ],
                  [ nLevel = HB_ZLIB_COMPRESSION_DEFAULT ],
                  [ cPassword, ulFileCRC32 ], [ cComment ] ) --> nError
HB_ZipFileWrite( hZip, cData [, nLen ] ) --> nError
HB_ZipFileClose( hZip ) --> nError
HB_ZipStoreFile( hZip, cFileName, [ cZipName ], ;
                 [ cPassword ], [ cComment ] ) --> nError
HB_ZipStoreFileHandle( hZip, fhnd, cZipName, ;
                 [ cPassword ], [ cComment ] ) --> nError
HB_zipFileCRC32( cFileName ) --> nError


HB_UnzipOpen( cFileName ) --> hUnzip
HB_UnzipClose( hUnzip ) --> nError
HB_UnzipGlobalInfo( hUnzip, @nEntries, @cGlobalComment ) --> nError
HB_UnzipFileFirst( hUnzip ) --> nError
HB_UnzipFileNext( hUnzip ) --> nError
HB_UnzipFilePos( hUnzip ) --> nPosition
HB_UnzipFileGoto( hUnzip, nPosition ) --> nError
HB_UnzipFileInfo( hUnzip, @cZipName, @tDateTime, @cTime,
                  @nInternalAttr, @nExternalAttr,
                  @nMethod, @nSize, @nCompressedSize,
                  @lCrypted, @cComment ) --> nError
HB_UnzipFileOpen( hUnzip, [ cPassword ] ) --> nError
HB_UnzipFileRead( hUnzip, @cBuf [, nLen ] ) --> nRead
HB_UnzipFileClose( hUnzip ) --> nError
HB_UnzipExtractCurrentFile( hUnzip, [ cFileName ], [ cPassword ] ) --> nError
HB_UnzipExtractCurrentFileToHandle( hZip, fhnd, [ cPassword ] ) --> nError


HB_ZipDeleteFile( cZipFile, cFileMask ) --> nError