+ 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 ;)
20 lines
349 B
Plaintext
20 lines
349 B
Plaintext
-hblib
|
|
-inc
|
|
|
|
-o${hb_name}
|
|
|
|
-w3 -es2
|
|
|
|
gzio.c
|
|
|
|
${hb_name}.hbx
|
|
|
|
# This is a dependency of zlib
|
|
-depkeyhead=zlib:zlib.h
|
|
-depcontrol=zlib:local{HB_BUILD_3RDEXT='no'}
|
|
-depcontrol=zlib:${HB_WITH_ZLIB}
|
|
-depincpath=zlib:/usr/include
|
|
-depincpath=zlib:/usr/local/include
|
|
-depincpath=zlib:/boot/develop/headers/3rdparty
|
|
-depincpathlocal=zlib:../../src/3rd/zlib
|