+ contrib/hbgzio/gzio.c
+ contrib/hbgzio/hbgzio.hbc
+ contrib/hbgzio/hbgzio.hbp
+ contrib/hbgzio/hbgzio.hbx
+ added new Harbour File IO driver for GZIP compressed streams.
It redirects files with "gz:" and "gz[0-9]:" prefixes and can be
used with hb_vf*() functions and transfer RDDs like SDF or DELIM,
i.e.
REQUEST HB_GZIO
USE test
COPY TO gz:test.txt.gz DELIMITED WITH TAB
or:
REQUEST HB_GZIO, HB_MEMIO
hb_vfCopy( "file.txt", "gz9:mem:file.txt.gz" )
USE test
APPEND FROM "gz:mem:file.txt.gz"
hb_vfErase( "mem:file.txt.gz" )
or:
REQUEST HB_GZIO
FUNCTION GZIP( cFile )
RETURN hb_vfCopy( cFile, "GZ:" + cFile + ".gz" )
Have a fun with new toy in a new year ;)
31 lines
975 B
Plaintext
31 lines
975 B
Plaintext
/* --------------------------------------------------------------------
|
|
* NOTE: You can add manual override which functions to include or
|
|
* exclude from automatically generated EXTERNAL/DYNAMIC list.
|
|
* Syntax: // HB_FUNC_INCLUDE <func>
|
|
* // HB_FUNC_EXCLUDE <func>
|
|
*/
|
|
|
|
/* --------------------------------------------------------------------
|
|
* WARNING: Automatically generated code below. DO NOT EDIT! (except casing)
|
|
* Regenerate using hbmk2 '-hbx=' option.
|
|
*/
|
|
|
|
#ifndef __HBEXTERN_CH__HBGZIO__
|
|
#define __HBEXTERN_CH__HBGZIO__
|
|
|
|
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBGZIO__ANNOUNCE )
|
|
ANNOUNCE __HBEXTERN__HBGZIO__
|
|
#endif
|
|
|
|
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBGZIO__REQUEST )
|
|
#command DYNAMIC <fncs,...> => EXTERNAL <fncs>
|
|
#endif
|
|
|
|
DYNAMIC HB_GZIO
|
|
|
|
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBGZIO__REQUEST )
|
|
#uncommand DYNAMIC <fncs,...> => EXTERNAL <fncs>
|
|
#endif
|
|
|
|
#endif
|