Name
SPVM::Resource::Zlib - Resource of zlib Library
Description
SPVM::Resource::Zlib is a resource of SPVM for the zlib library.
Usage
MyClass.config:
my $config = SPVM::Builder::Config->new_c99(file => __FILE__);
$config->use_resource('Resource::Zlib');
$config;
MyClass.c:
#include <zlib.h>
const char* file = "foo.gz";
gzFile gz_fh = gzopen(file, "rb");
Original Product
Original Product Version
Language
The C language
Language Specification
C99
Header Files
spvm_socket_util.h
crc32.h
deflate.h
gzguts.h
inffast.h
inffixed.h
inflate.h
inftrees.h
trees.h
zconf.h
zlib.h
zutil.h
Source Files
adler32.c
compress.c
crc32.c
deflate.c
gzclose.c
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inflate.c
inftrees.c
trees.c
uncompr.c
zutil.c
Compiler Flags
-D_LARGEFILE64_SOURCE
How to Create Resource
Download
mkdir -p original.tmp
git clone https://github.com/madler/zlib original.tmp/zlib
git -C original.tmp/zlib checkout tags/v1.2.13 -b branch_v1.2.13
git -C original.tmp/zlib branch
Extracting Header Files
The header files of zlib
is copied into the include
directory by the following command.
rsync -av --include='*.h' --exclude='*' original.tmp/zlib/ lib/SPVM/Resource/Zlib.native/include/
Extracting Source Files
The source files of zlib
are copied into the src
directory by the following command.
rsync -av --exclude='*.h' original.tmp/zlib/ lib/SPVM/Resource/Zlib.native/src/
The used source files are extracted by the following command.
find lib/SPVM/Resource/Zlib.native/src/* | perl -p -e 's|^\Qlib/SPVM/Resource/Zlib.native/src/||' | grep -P '^\w+\.c$'
Repository
Author
Yuki Kimoto kimoto.yuki@gmail.com
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License