libwz 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +165 -0
- package/binding.gyp +149 -0
- package/deps/tiny-aes/.github/workflows/c-cpp.yml +27 -0
- package/deps/tiny-aes/CMakeLists.txt +17 -0
- package/deps/tiny-aes/Makefile +61 -0
- package/deps/tiny-aes/README.md +83 -0
- package/deps/tiny-aes/aes.c +572 -0
- package/deps/tiny-aes/aes.h +91 -0
- package/deps/tiny-aes/aes.hpp +12 -0
- package/deps/tiny-aes/conanfile.py +73 -0
- package/deps/tiny-aes/library.json +19 -0
- package/deps/tiny-aes/library.properties +11 -0
- package/deps/tiny-aes/test.c +316 -0
- package/deps/tiny-aes/test.cpp +2 -0
- package/deps/tiny-aes/test_package/CMakeLists.txt +11 -0
- package/deps/tiny-aes/test_package/conanfile.py +17 -0
- package/deps/tiny-aes/unlicense.txt +24 -0
- package/deps/zlib/.cmake-format.yaml +245 -0
- package/deps/zlib/.github/workflows/c-std.yml +268 -0
- package/deps/zlib/.github/workflows/cmake.yml +147 -0
- package/deps/zlib/.github/workflows/configure.yml +146 -0
- package/deps/zlib/.github/workflows/contribs.yml +64 -0
- package/deps/zlib/.github/workflows/fuzz.yml +25 -0
- package/deps/zlib/.github/workflows/msys-cygwin.yml +92 -0
- package/deps/zlib/.github/workflows/others.yml +153 -0
- package/deps/zlib/BUILD.bazel +134 -0
- package/deps/zlib/CMakeLists.txt +310 -0
- package/deps/zlib/ChangeLog +1669 -0
- package/deps/zlib/FAQ +371 -0
- package/deps/zlib/INDEX +67 -0
- package/deps/zlib/LICENSE +22 -0
- package/deps/zlib/MODULE.bazel +9 -0
- package/deps/zlib/Makefile.in +426 -0
- package/deps/zlib/README +115 -0
- package/deps/zlib/README-cmake.md +79 -0
- package/deps/zlib/adler32.c +164 -0
- package/deps/zlib/amiga/Makefile.pup +69 -0
- package/deps/zlib/amiga/Makefile.sas +68 -0
- package/deps/zlib/compress.c +99 -0
- package/deps/zlib/configure +1078 -0
- package/deps/zlib/contrib/CMakeLists.txt +61 -0
- package/deps/zlib/contrib/README.contrib +57 -0
- package/deps/zlib/contrib/ada/CMakeLists.txt +217 -0
- package/deps/zlib/contrib/ada/buffer_demo.adb +106 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeADACompiler.cmake.in +23 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeADAInformation.cmake +133 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeDetermineADACompiler.cmake +33 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeTestADACompiler.cmake +46 -0
- package/deps/zlib/contrib/ada/cmake/binder_helper.cmake +47 -0
- package/deps/zlib/contrib/ada/cmake/compile_helper.cmake +32 -0
- package/deps/zlib/contrib/ada/cmake/exe_link_helper.cmake +53 -0
- package/deps/zlib/contrib/ada/cmake/shared_link_helper.cmake +52 -0
- package/deps/zlib/contrib/ada/cmake/static_link_helper.cmake +25 -0
- package/deps/zlib/contrib/ada/mtest.adb +156 -0
- package/deps/zlib/contrib/ada/read.adb +156 -0
- package/deps/zlib/contrib/ada/readme.txt +65 -0
- package/deps/zlib/contrib/ada/test.adb +463 -0
- package/deps/zlib/contrib/ada/zlib-streams.adb +225 -0
- package/deps/zlib/contrib/ada/zlib-streams.ads +114 -0
- package/deps/zlib/contrib/ada/zlib-thin.adb +142 -0
- package/deps/zlib/contrib/ada/zlib-thin.ads +450 -0
- package/deps/zlib/contrib/ada/zlib.adb +701 -0
- package/deps/zlib/contrib/ada/zlib.ads +328 -0
- package/deps/zlib/contrib/ada/zlib.gpr +20 -0
- package/deps/zlib/contrib/blast/CMakeLists.txt +166 -0
- package/deps/zlib/contrib/blast/Makefile +14 -0
- package/deps/zlib/contrib/blast/README +4 -0
- package/deps/zlib/contrib/blast/blast-test.c +42 -0
- package/deps/zlib/contrib/blast/blast.c +422 -0
- package/deps/zlib/contrib/blast/blast.h +84 -0
- package/deps/zlib/contrib/blast/blastConfig.cmake.in +18 -0
- package/deps/zlib/contrib/blast/test/CMakeLists.txt +193 -0
- package/deps/zlib/contrib/blast/test/add_subdirectory_exclude_test.cmake.in +27 -0
- package/deps/zlib/contrib/blast/test/add_subdirectory_test.cmake.in +25 -0
- package/deps/zlib/contrib/blast/test/find_package_no_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/blast/test/find_package_test.cmake.in +24 -0
- package/deps/zlib/contrib/blast/test/find_package_wrong_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/blast/test.pk +0 -0
- package/deps/zlib/contrib/blast/test.txt +1 -0
- package/deps/zlib/contrib/blast/tester.cmake +28 -0
- package/deps/zlib/contrib/crc32vx/CMakeLists.txt +67 -0
- package/deps/zlib/contrib/crc32vx/README +9 -0
- package/deps/zlib/contrib/crc32vx/crc32_vx.c +254 -0
- package/deps/zlib/contrib/crc32vx/crc32_vx_hooks.h +9 -0
- package/deps/zlib/contrib/delphi/ZLib.pas +557 -0
- package/deps/zlib/contrib/delphi/ZLibConst.pas +11 -0
- package/deps/zlib/contrib/delphi/readme.txt +76 -0
- package/deps/zlib/contrib/delphi/zlibd32.mak +99 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
- package/deps/zlib/contrib/dotzlib/DotZLib.build +33 -0
- package/deps/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- package/deps/zlib/contrib/dotzlib/DotZLib.sln +21 -0
- package/deps/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- package/deps/zlib/contrib/dotzlib/readme.txt +58 -0
- package/deps/zlib/contrib/gcc_gvmat64/CMakeLists.txt +19 -0
- package/deps/zlib/contrib/gcc_gvmat64/gvmat64.S +570 -0
- package/deps/zlib/contrib/infback9/CMakeLists.txt +19 -0
- package/deps/zlib/contrib/infback9/README +1 -0
- package/deps/zlib/contrib/infback9/infback9.c +603 -0
- package/deps/zlib/contrib/infback9/infback9.h +37 -0
- package/deps/zlib/contrib/infback9/inffix9.h +107 -0
- package/deps/zlib/contrib/infback9/inflate9.h +47 -0
- package/deps/zlib/contrib/infback9/inftree9.c +319 -0
- package/deps/zlib/contrib/infback9/inftree9.h +61 -0
- package/deps/zlib/contrib/iostream/test.cpp +24 -0
- package/deps/zlib/contrib/iostream/zfstream.cpp +329 -0
- package/deps/zlib/contrib/iostream/zfstream.h +128 -0
- package/deps/zlib/contrib/iostream2/zstream.h +306 -0
- package/deps/zlib/contrib/iostream2/zstream_test.cpp +25 -0
- package/deps/zlib/contrib/iostream3/CMakeLists.txt +200 -0
- package/deps/zlib/contrib/iostream3/README +35 -0
- package/deps/zlib/contrib/iostream3/TODO +17 -0
- package/deps/zlib/contrib/iostream3/iostream3Config.cmake.in +23 -0
- package/deps/zlib/contrib/iostream3/test/CMakeLists.txt +191 -0
- package/deps/zlib/contrib/iostream3/test/add_subdirectory_exclude_test.cmake.in +27 -0
- package/deps/zlib/contrib/iostream3/test/add_subdirectory_test.cmake.in +25 -0
- package/deps/zlib/contrib/iostream3/test/find_package_no_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/iostream3/test/find_package_test.cmake.in +24 -0
- package/deps/zlib/contrib/iostream3/test/find_package_wrong_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/iostream3/test.cc +50 -0
- package/deps/zlib/contrib/iostream3/zfstream.cc +479 -0
- package/deps/zlib/contrib/iostream3/zfstream.h +466 -0
- package/deps/zlib/contrib/minizip/CMakeLists.txt +387 -0
- package/deps/zlib/contrib/minizip/LICENSE.Info-Zip +58 -0
- package/deps/zlib/contrib/minizip/Makefile +33 -0
- package/deps/zlib/contrib/minizip/Makefile.am +45 -0
- package/deps/zlib/contrib/minizip/MiniZip64_Changes.txt +6 -0
- package/deps/zlib/contrib/minizip/MiniZip64_info.txt +69 -0
- package/deps/zlib/contrib/minizip/configure.ac +32 -0
- package/deps/zlib/contrib/minizip/crypt.h +125 -0
- package/deps/zlib/contrib/minizip/ints.h +57 -0
- package/deps/zlib/contrib/minizip/ioapi.c +231 -0
- package/deps/zlib/contrib/minizip/ioapi.h +183 -0
- package/deps/zlib/contrib/minizip/iowin32.c +447 -0
- package/deps/zlib/contrib/minizip/iowin32.h +27 -0
- package/deps/zlib/contrib/minizip/make_vms.com +25 -0
- package/deps/zlib/contrib/minizip/miniunz.c +647 -0
- package/deps/zlib/contrib/minizip/miniunzip.1 +63 -0
- package/deps/zlib/contrib/minizip/minizip.1 +46 -0
- package/deps/zlib/contrib/minizip/minizip.c +511 -0
- package/deps/zlib/contrib/minizip/minizip.pc.in +13 -0
- package/deps/zlib/contrib/minizip/minizip.pc.txt +13 -0
- package/deps/zlib/contrib/minizip/minizipConfig.cmake.in +27 -0
- package/deps/zlib/contrib/minizip/mztools.c +294 -0
- package/deps/zlib/contrib/minizip/mztools.h +37 -0
- package/deps/zlib/contrib/minizip/skipset.h +366 -0
- package/deps/zlib/contrib/minizip/test/CMakeLists.txt +176 -0
- package/deps/zlib/contrib/minizip/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/deps/zlib/contrib/minizip/test/add_subdirectory_test.cmake.in +28 -0
- package/deps/zlib/contrib/minizip/test/find_package_no_components_test.cmake.in +26 -0
- package/deps/zlib/contrib/minizip/test/find_package_test.cmake.in +26 -0
- package/deps/zlib/contrib/minizip/test/find_package_wrong_components_test.cmake.in +26 -0
- package/deps/zlib/contrib/minizip/test/test_helper.cm +32 -0
- package/deps/zlib/contrib/minizip/unzip.c +1984 -0
- package/deps/zlib/contrib/minizip/unzip.h +442 -0
- package/deps/zlib/contrib/minizip/zip.c +2246 -0
- package/deps/zlib/contrib/minizip/zip.h +371 -0
- package/deps/zlib/contrib/nuget/nuget.csproj +45 -0
- package/deps/zlib/contrib/nuget/nuget.sln +22 -0
- package/deps/zlib/contrib/pascal/example.pas +599 -0
- package/deps/zlib/contrib/pascal/readme.txt +76 -0
- package/deps/zlib/contrib/pascal/zlibd32.mak +99 -0
- package/deps/zlib/contrib/pascal/zlibpas.pas +276 -0
- package/deps/zlib/contrib/puff/CMakeLists.txt +154 -0
- package/deps/zlib/contrib/puff/Makefile +42 -0
- package/deps/zlib/contrib/puff/README +63 -0
- package/deps/zlib/contrib/puff/bin-writer.c +26 -0
- package/deps/zlib/contrib/puff/puff.c +840 -0
- package/deps/zlib/contrib/puff/puff.h +35 -0
- package/deps/zlib/contrib/puff/puffConfig.cmake.in +18 -0
- package/deps/zlib/contrib/puff/pufftest.c +168 -0
- package/deps/zlib/contrib/puff/test/CMakeLists.txt +262 -0
- package/deps/zlib/contrib/puff/test/add_subdirectory_exclude_test.cmake.in +26 -0
- package/deps/zlib/contrib/puff/test/add_subdirectory_test.cmake.in +25 -0
- package/deps/zlib/contrib/puff/test/find_package_no_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/puff/test/find_package_test.cmake.in +24 -0
- package/deps/zlib/contrib/puff/test/find_package_wrong_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/puff/test/tester-cov.cmake +58 -0
- package/deps/zlib/contrib/puff/test/tester.cmake +16 -0
- package/deps/zlib/contrib/puff/zeros.raw +0 -0
- package/deps/zlib/contrib/testzlib/CMakeLists.txt +44 -0
- package/deps/zlib/contrib/testzlib/testzlib.c +275 -0
- package/deps/zlib/contrib/testzlib/testzlib.txt +10 -0
- package/deps/zlib/contrib/vstudio/readme.txt +22 -0
- package/deps/zlib/contrib/zlib1-dll/CMakeLists.txt +196 -0
- package/deps/zlib/contrib/zlib1-dll/readme.txt +21 -0
- package/deps/zlib/crc32.c +983 -0
- package/deps/zlib/crc32.h +9446 -0
- package/deps/zlib/deflate.c +2185 -0
- package/deps/zlib/deflate.h +383 -0
- package/deps/zlib/doc/algorithm.txt +209 -0
- package/deps/zlib/doc/crc-doc.1.0.pdf +0 -0
- package/deps/zlib/doc/rfc1950.txt +619 -0
- package/deps/zlib/doc/rfc1951.txt +955 -0
- package/deps/zlib/doc/rfc1952.txt +675 -0
- package/deps/zlib/doc/txtvsbin.txt +107 -0
- package/deps/zlib/examples/README.examples +54 -0
- package/deps/zlib/examples/enough.c +597 -0
- package/deps/zlib/examples/fitblk.c +233 -0
- package/deps/zlib/examples/gun.c +702 -0
- package/deps/zlib/examples/gzappend.c +504 -0
- package/deps/zlib/examples/gzjoin.c +449 -0
- package/deps/zlib/examples/gzlog.c +1061 -0
- package/deps/zlib/examples/gzlog.h +91 -0
- package/deps/zlib/examples/gznorm.c +474 -0
- package/deps/zlib/examples/zlib_how.html +550 -0
- package/deps/zlib/examples/zpipe.c +206 -0
- package/deps/zlib/examples/zran.c +546 -0
- package/deps/zlib/examples/zran.h +53 -0
- package/deps/zlib/gzclose.c +23 -0
- package/deps/zlib/gzguts.h +216 -0
- package/deps/zlib/gzlib.c +609 -0
- package/deps/zlib/gzread.c +668 -0
- package/deps/zlib/gzwrite.c +700 -0
- package/deps/zlib/infback.c +581 -0
- package/deps/zlib/inffast.c +321 -0
- package/deps/zlib/inffast.h +11 -0
- package/deps/zlib/inffixed.h +94 -0
- package/deps/zlib/inflate.c +1413 -0
- package/deps/zlib/inflate.h +126 -0
- package/deps/zlib/inftrees.c +424 -0
- package/deps/zlib/inftrees.h +64 -0
- package/deps/zlib/make_vms.com +867 -0
- package/deps/zlib/msdos/Makefile.bor +115 -0
- package/deps/zlib/msdos/Makefile.dj2 +104 -0
- package/deps/zlib/msdos/Makefile.emx +69 -0
- package/deps/zlib/msdos/Makefile.msc +112 -0
- package/deps/zlib/msdos/Makefile.tc +100 -0
- package/deps/zlib/os400/README400 +48 -0
- package/deps/zlib/os400/bndsrc +144 -0
- package/deps/zlib/os400/make.sh +383 -0
- package/deps/zlib/os400/zlibfixed.rpgle +578 -0
- package/deps/zlib/os400/zlibfree.rpgle +634 -0
- package/deps/zlib/qnx/package.qpg +141 -0
- package/deps/zlib/test/CMakeLists.txt +318 -0
- package/deps/zlib/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/deps/zlib/test/add_subdirectory_test.cmake.in +28 -0
- package/deps/zlib/test/example.c +552 -0
- package/deps/zlib/test/find_package_no_components_test.cmake.in +27 -0
- package/deps/zlib/test/find_package_test.cmake.in +27 -0
- package/deps/zlib/test/find_package_wrong_components_test.cmake.in +27 -0
- package/deps/zlib/test/infcover.c +672 -0
- package/deps/zlib/test/minigzip.c +592 -0
- package/deps/zlib/treebuild.xml +116 -0
- package/deps/zlib/trees.c +1119 -0
- package/deps/zlib/trees.h +128 -0
- package/deps/zlib/uncompr.c +101 -0
- package/deps/zlib/watcom/watcom_f.mak +43 -0
- package/deps/zlib/watcom/watcom_l.mak +43 -0
- package/deps/zlib/win32/DLL_FAQ.txt +381 -0
- package/deps/zlib/win32/Makefile.bor +109 -0
- package/deps/zlib/win32/Makefile.gcc +177 -0
- package/deps/zlib/win32/Makefile.msc +159 -0
- package/deps/zlib/win32/README-WIN32.txt +103 -0
- package/deps/zlib/win32/VisualC.txt +3 -0
- package/deps/zlib/win32/zlib.def +104 -0
- package/deps/zlib/win32/zlib1.rc +37 -0
- package/deps/zlib/zconf.h.in +551 -0
- package/deps/zlib/zlib.3 +149 -0
- package/deps/zlib/zlib.3.pdf +0 -0
- package/deps/zlib/zlib.h +2057 -0
- package/deps/zlib/zlib.map +116 -0
- package/deps/zlib/zlib.pc.cmakein +14 -0
- package/deps/zlib/zlib.pc.in +14 -0
- package/deps/zlib/zlibConfig.cmake.in +18 -0
- package/deps/zlib/zutil.c +313 -0
- package/deps/zlib/zutil.h +331 -0
- package/dist/index.d.ts +266 -0
- package/dist/index.js +1146 -0
- package/dist/libwz.js +5632 -0
- package/dist/libwz.wasm +0 -0
- package/include/wz/CRC32.h +182 -0
- package/include/wz/PngUtility.h +72 -0
- package/include/wz/PortalType.h +124 -0
- package/include/wz/Properties/WzBinaryProperty.h +70 -0
- package/include/wz/Properties/WzCanvasProperty.h +55 -0
- package/include/wz/Properties/WzConvexProperty.h +34 -0
- package/include/wz/Properties/WzDoubleProperty.h +32 -0
- package/include/wz/Properties/WzFloatProperty.h +30 -0
- package/include/wz/Properties/WzIntProperty.h +30 -0
- package/include/wz/Properties/WzLongProperty.h +30 -0
- package/include/wz/Properties/WzLuaProperty.h +31 -0
- package/include/wz/Properties/WzNullProperty.h +15 -0
- package/include/wz/Properties/WzPngProperty.h +53 -0
- package/include/wz/Properties/WzRawDataProperty.h +46 -0
- package/include/wz/Properties/WzShortProperty.h +31 -0
- package/include/wz/Properties/WzStringProperty.h +32 -0
- package/include/wz/Properties/WzSubProperty.h +35 -0
- package/include/wz/Properties/WzUOLProperty.h +44 -0
- package/include/wz/Properties/WzVectorProperty.h +40 -0
- package/include/wz/Properties/WzVideoProperty.h +43 -0
- package/include/wz/Result.h +58 -0
- package/include/wz/Util/Defines.h +16 -0
- package/include/wz/Util/ListFileParser.h +20 -0
- package/include/wz/Util/WzBinaryReader.h +95 -0
- package/include/wz/Util/WzBinaryWriter.h +72 -0
- package/include/wz/Util/WzBlobDataSource.h +30 -0
- package/include/wz/Util/WzDataSource.h +49 -0
- package/include/wz/Util/WzKeyGenerator.h +28 -0
- package/include/wz/Util/WzMutableKey.h +39 -0
- package/include/wz/Util/WzPath.h +37 -0
- package/include/wz/Util/WzStream.h +86 -0
- package/include/wz/Util/WzTool.h +42 -0
- package/include/wz/WzAESConstant.h +17 -0
- package/include/wz/WzDirectory.h +97 -0
- package/include/wz/WzEnums.h +76 -0
- package/include/wz/WzFile.h +99 -0
- package/include/wz/WzHeader.h +47 -0
- package/include/wz/WzImage.h +97 -0
- package/include/wz/WzImageProperty.h +92 -0
- package/include/wz/WzObject.h +55 -0
- package/include/wz/WzPropertyCollection.h +115 -0
- package/include/wz/wz.h +41 -0
- package/include/wz/wz_api.h +432 -0
- package/package.json +93 -0
- package/src/PngUtility.cpp +328 -0
- package/src/Properties/WzBinaryProperty.cpp +183 -0
- package/src/Properties/WzCanvasProperty.cpp +262 -0
- package/src/Properties/WzConvexProperty.cpp +159 -0
- package/src/Properties/WzDoubleProperty.cpp +12 -0
- package/src/Properties/WzFloatProperty.cpp +17 -0
- package/src/Properties/WzIntProperty.cpp +12 -0
- package/src/Properties/WzLongProperty.cpp +12 -0
- package/src/Properties/WzLuaProperty.cpp +37 -0
- package/src/Properties/WzNullProperty.cpp +11 -0
- package/src/Properties/WzPngProperty.cpp +637 -0
- package/src/Properties/WzRawDataProperty.cpp +116 -0
- package/src/Properties/WzShortProperty.cpp +12 -0
- package/src/Properties/WzStringProperty.cpp +44 -0
- package/src/Properties/WzSubProperty.cpp +129 -0
- package/src/Properties/WzUOLProperty.cpp +136 -0
- package/src/Properties/WzVectorProperty.cpp +22 -0
- package/src/Properties/WzVideoProperty.cpp +115 -0
- package/src/Util/ListFileParser.cpp +48 -0
- package/src/Util/WzBinaryReader.cpp +368 -0
- package/src/Util/WzBinaryWriter.cpp +305 -0
- package/src/Util/WzBlobDataSource.cpp +47 -0
- package/src/Util/WzDataSource.cpp +61 -0
- package/src/Util/WzKeyGenerator.cpp +43 -0
- package/src/Util/WzMutableKey.cpp +59 -0
- package/src/Util/WzStream.cpp +196 -0
- package/src/Util/WzTool.cpp +266 -0
- package/src/WzAESConstant.cpp +12 -0
- package/src/WzDirectory.cpp +669 -0
- package/src/WzEnums.cpp +20 -0
- package/src/WzFile.cpp +450 -0
- package/src/WzImage.cpp +350 -0
- package/src/WzImageProperty.cpp +469 -0
- package/src/WzObject.cpp +174 -0
- package/src/WzPropertyCollection.cpp +84 -0
- package/src/capi/wz_api.cpp +1996 -0
- package/src/node/binding.cpp +1776 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Makefile for zlib
|
|
2
|
+
# Borland C++
|
|
3
|
+
# Last updated: 15-Mar-2003
|
|
4
|
+
|
|
5
|
+
# To use, do "make -fmakefile.bor"
|
|
6
|
+
# To compile in small model, set below: MODEL=s
|
|
7
|
+
|
|
8
|
+
# WARNING: the small model is supported but only for small values of
|
|
9
|
+
# MAX_WBITS and MAX_MEM_LEVEL. For example:
|
|
10
|
+
# -DMAX_WBITS=11 -DDEF_WBITS=11 -DMAX_MEM_LEVEL=3
|
|
11
|
+
# If you wish to reduce the memory requirements (default 256K for big
|
|
12
|
+
# objects plus a few K), you can add to the LOC macro below:
|
|
13
|
+
# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
|
|
14
|
+
# See zconf.h for details about the memory requirements.
|
|
15
|
+
|
|
16
|
+
# ------------ Turbo C++, Borland C++ ------------
|
|
17
|
+
|
|
18
|
+
# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
|
|
19
|
+
# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added
|
|
20
|
+
# to the declaration of LOC here:
|
|
21
|
+
LOC = $(LOCAL_ZLIB)
|
|
22
|
+
|
|
23
|
+
# type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
|
|
24
|
+
CPU_TYP = 0
|
|
25
|
+
|
|
26
|
+
# memory model: one of s, m, c, l (small, medium, compact, large)
|
|
27
|
+
MODEL=l
|
|
28
|
+
|
|
29
|
+
# replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version
|
|
30
|
+
CC=bcc
|
|
31
|
+
LD=bcc
|
|
32
|
+
AR=tlib
|
|
33
|
+
|
|
34
|
+
# compiler flags
|
|
35
|
+
# replace "-O2" by "-O -G -a -d" for Turbo C++ 1.0
|
|
36
|
+
CFLAGS=-O2 -Z -m$(MODEL) $(LOC)
|
|
37
|
+
|
|
38
|
+
LDFLAGS=-m$(MODEL) -f-
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# variables
|
|
42
|
+
ZLIB_LIB = zlib_$(MODEL).lib
|
|
43
|
+
|
|
44
|
+
OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
|
|
45
|
+
OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
|
|
46
|
+
OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
|
|
47
|
+
OBJP2 = +gzwrite.obj+infback.obj+inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# targets
|
|
51
|
+
all: $(ZLIB_LIB) example.exe minigzip.exe
|
|
52
|
+
|
|
53
|
+
.c.obj:
|
|
54
|
+
$(CC) -c $(CFLAGS) $*.c
|
|
55
|
+
|
|
56
|
+
adler32.obj: adler32.c zlib.h zconf.h
|
|
57
|
+
|
|
58
|
+
compress.obj: compress.c zlib.h zconf.h
|
|
59
|
+
|
|
60
|
+
crc32.obj: crc32.c zlib.h zconf.h crc32.h
|
|
61
|
+
|
|
62
|
+
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
|
|
63
|
+
|
|
64
|
+
gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
|
|
65
|
+
|
|
66
|
+
gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
|
|
67
|
+
|
|
68
|
+
gzread.obj: gzread.c zlib.h zconf.h gzguts.h
|
|
69
|
+
|
|
70
|
+
gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
|
|
71
|
+
|
|
72
|
+
infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
73
|
+
inffast.h inffixed.h
|
|
74
|
+
|
|
75
|
+
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
76
|
+
inffast.h
|
|
77
|
+
|
|
78
|
+
inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
79
|
+
inffast.h inffixed.h
|
|
80
|
+
|
|
81
|
+
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
|
|
82
|
+
|
|
83
|
+
trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
|
|
84
|
+
|
|
85
|
+
uncompr.obj: uncompr.c zlib.h zconf.h
|
|
86
|
+
|
|
87
|
+
zutil.obj: zutil.c zutil.h zlib.h zconf.h
|
|
88
|
+
|
|
89
|
+
example.obj: test/example.c zlib.h zconf.h
|
|
90
|
+
|
|
91
|
+
minigzip.obj: test/minigzip.c zlib.h zconf.h
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
# the command line is cut to fit in the MS-DOS 128 byte limit:
|
|
95
|
+
$(ZLIB_LIB): $(OBJ1) $(OBJ2)
|
|
96
|
+
-del $(ZLIB_LIB)
|
|
97
|
+
$(AR) $(ZLIB_LIB) $(OBJP1)
|
|
98
|
+
$(AR) $(ZLIB_LIB) $(OBJP2)
|
|
99
|
+
|
|
100
|
+
example.exe: example.obj $(ZLIB_LIB)
|
|
101
|
+
$(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
|
|
102
|
+
|
|
103
|
+
minigzip.exe: minigzip.obj $(ZLIB_LIB)
|
|
104
|
+
$(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
|
|
105
|
+
|
|
106
|
+
test: example.exe minigzip.exe
|
|
107
|
+
example
|
|
108
|
+
echo hello world | minigzip | minigzip -d
|
|
109
|
+
|
|
110
|
+
clean:
|
|
111
|
+
-del *.obj
|
|
112
|
+
-del *.lib
|
|
113
|
+
-del *.exe
|
|
114
|
+
-del zlib_*.bak
|
|
115
|
+
-del foo.gz
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96.
|
|
2
|
+
# Copyright (C) 1995-1998 Jean-loup Gailly.
|
|
3
|
+
# For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
|
+
|
|
5
|
+
# To compile, or to compile and test, type:
|
|
6
|
+
#
|
|
7
|
+
# make -fmakefile.dj2; make test -fmakefile.dj2
|
|
8
|
+
#
|
|
9
|
+
# To install libz.a, zconf.h and zlib.h in the djgpp directories, type:
|
|
10
|
+
#
|
|
11
|
+
# make install -fmakefile.dj2
|
|
12
|
+
#
|
|
13
|
+
# after first defining LIBRARY_PATH and INCLUDE_PATH in djgpp.env as
|
|
14
|
+
# in the sample below if the pattern of the DJGPP distribution is to
|
|
15
|
+
# be followed. Remember that, while <sp>'es around <=> are ignored in
|
|
16
|
+
# makefiles, they are *not* in batch files or in djgpp.env.
|
|
17
|
+
# - - - - -
|
|
18
|
+
# [make]
|
|
19
|
+
# INCLUDE_PATH=%\>;INCLUDE_PATH%%\DJDIR%\include
|
|
20
|
+
# LIBRARY_PATH=%\>;LIBRARY_PATH%%\DJDIR%\lib
|
|
21
|
+
# BUTT=-m486
|
|
22
|
+
# - - - - -
|
|
23
|
+
# Alternately, these variables may be defined below, overriding the values
|
|
24
|
+
# in djgpp.env, as
|
|
25
|
+
# INCLUDE_PATH=c:\usr\include
|
|
26
|
+
# LIBRARY_PATH=c:\usr\lib
|
|
27
|
+
|
|
28
|
+
CC=gcc
|
|
29
|
+
|
|
30
|
+
#CFLAGS=-MMD -O
|
|
31
|
+
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
|
32
|
+
#CFLAGS=-MMD -g -DZLIB_DEBUG
|
|
33
|
+
CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith \
|
|
34
|
+
-Wstrict-prototypes -Wmissing-prototypes
|
|
35
|
+
|
|
36
|
+
# If cp.exe is available, replace "copy /Y" with "cp -fp" .
|
|
37
|
+
CP=copy /Y
|
|
38
|
+
# If gnu install.exe is available, replace $(CP) with ginstall.
|
|
39
|
+
INSTALL=$(CP)
|
|
40
|
+
# The default value of RM is "rm -f." If "rm.exe" is found, comment out:
|
|
41
|
+
RM=del
|
|
42
|
+
LDLIBS=-L. -lz
|
|
43
|
+
LD=$(CC) -s -o
|
|
44
|
+
LDSHARED=$(CC)
|
|
45
|
+
|
|
46
|
+
INCL=zlib.h zconf.h
|
|
47
|
+
LIBS=libz.a
|
|
48
|
+
|
|
49
|
+
AR=ar rcs
|
|
50
|
+
|
|
51
|
+
prefix=/usr/local
|
|
52
|
+
exec_prefix = $(prefix)
|
|
53
|
+
|
|
54
|
+
OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
|
|
55
|
+
uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
|
|
56
|
+
|
|
57
|
+
OBJA =
|
|
58
|
+
# to use the asm code: make OBJA=match.o
|
|
59
|
+
|
|
60
|
+
TEST_OBJS = example.o minigzip.o
|
|
61
|
+
|
|
62
|
+
all: example.exe minigzip.exe
|
|
63
|
+
|
|
64
|
+
check: test
|
|
65
|
+
test: all
|
|
66
|
+
./example
|
|
67
|
+
echo hello world | .\minigzip | .\minigzip -d
|
|
68
|
+
|
|
69
|
+
%.o : %.c
|
|
70
|
+
$(CC) $(CFLAGS) -c $< -o $@
|
|
71
|
+
|
|
72
|
+
libz.a: $(OBJS) $(OBJA)
|
|
73
|
+
$(AR) $@ $(OBJS) $(OBJA)
|
|
74
|
+
|
|
75
|
+
%.exe : %.o $(LIBS)
|
|
76
|
+
$(LD) $@ $< $(LDLIBS)
|
|
77
|
+
|
|
78
|
+
# INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env .
|
|
79
|
+
|
|
80
|
+
.PHONY : uninstall clean
|
|
81
|
+
|
|
82
|
+
install: $(INCL) $(LIBS)
|
|
83
|
+
-@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH)
|
|
84
|
+
-@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH)
|
|
85
|
+
$(INSTALL) zlib.h $(INCLUDE_PATH)
|
|
86
|
+
$(INSTALL) zconf.h $(INCLUDE_PATH)
|
|
87
|
+
$(INSTALL) libz.a $(LIBRARY_PATH)
|
|
88
|
+
|
|
89
|
+
uninstall:
|
|
90
|
+
$(RM) $(INCLUDE_PATH)\zlib.h
|
|
91
|
+
$(RM) $(INCLUDE_PATH)\zconf.h
|
|
92
|
+
$(RM) $(LIBRARY_PATH)\libz.a
|
|
93
|
+
|
|
94
|
+
clean:
|
|
95
|
+
$(RM) *.d
|
|
96
|
+
$(RM) *.o
|
|
97
|
+
$(RM) *.exe
|
|
98
|
+
$(RM) libz.a
|
|
99
|
+
$(RM) foo.gz
|
|
100
|
+
|
|
101
|
+
DEPS := $(wildcard *.d)
|
|
102
|
+
ifneq ($(DEPS),)
|
|
103
|
+
include $(DEPS)
|
|
104
|
+
endif
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98.
|
|
2
|
+
# Copyright (C) 1995-1998 Jean-loup Gailly.
|
|
3
|
+
# For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
|
+
|
|
5
|
+
# To compile, or to compile and test, type:
|
|
6
|
+
#
|
|
7
|
+
# make -fmakefile.emx; make test -fmakefile.emx
|
|
8
|
+
#
|
|
9
|
+
|
|
10
|
+
CC=gcc
|
|
11
|
+
|
|
12
|
+
#CFLAGS=-MMD -O
|
|
13
|
+
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
|
14
|
+
#CFLAGS=-MMD -g -DZLIB_DEBUG
|
|
15
|
+
CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
|
16
|
+
-Wstrict-prototypes -Wmissing-prototypes
|
|
17
|
+
|
|
18
|
+
# If cp.exe is available, replace "copy /Y" with "cp -fp" .
|
|
19
|
+
CP=copy /Y
|
|
20
|
+
# If gnu install.exe is available, replace $(CP) with ginstall.
|
|
21
|
+
INSTALL=$(CP)
|
|
22
|
+
# The default value of RM is "rm -f." If "rm.exe" is found, comment out:
|
|
23
|
+
RM=del
|
|
24
|
+
LDLIBS=-L. -lzlib
|
|
25
|
+
LD=$(CC) -s -o
|
|
26
|
+
LDSHARED=$(CC)
|
|
27
|
+
|
|
28
|
+
INCL=zlib.h zconf.h
|
|
29
|
+
LIBS=zlib.a
|
|
30
|
+
|
|
31
|
+
AR=ar rcs
|
|
32
|
+
|
|
33
|
+
prefix=/usr/local
|
|
34
|
+
exec_prefix = $(prefix)
|
|
35
|
+
|
|
36
|
+
OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
|
|
37
|
+
uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
|
|
38
|
+
|
|
39
|
+
TEST_OBJS = example.o minigzip.o
|
|
40
|
+
|
|
41
|
+
all: example.exe minigzip.exe
|
|
42
|
+
|
|
43
|
+
test: all
|
|
44
|
+
./example
|
|
45
|
+
echo hello world | .\minigzip | .\minigzip -d
|
|
46
|
+
|
|
47
|
+
%.o : %.c
|
|
48
|
+
$(CC) $(CFLAGS) -c $< -o $@
|
|
49
|
+
|
|
50
|
+
zlib.a: $(OBJS)
|
|
51
|
+
$(AR) $@ $(OBJS)
|
|
52
|
+
|
|
53
|
+
%.exe : %.o $(LIBS)
|
|
54
|
+
$(LD) $@ $< $(LDLIBS)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
.PHONY : clean
|
|
58
|
+
|
|
59
|
+
clean:
|
|
60
|
+
$(RM) *.d
|
|
61
|
+
$(RM) *.o
|
|
62
|
+
$(RM) *.exe
|
|
63
|
+
$(RM) zlib.a
|
|
64
|
+
$(RM) foo.gz
|
|
65
|
+
|
|
66
|
+
DEPS := $(wildcard *.d)
|
|
67
|
+
ifneq ($(DEPS),)
|
|
68
|
+
include $(DEPS)
|
|
69
|
+
endif
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Makefile for zlib
|
|
2
|
+
# Microsoft C 5.1 or later
|
|
3
|
+
# Last updated: 19-Mar-2003
|
|
4
|
+
|
|
5
|
+
# To use, do "make makefile.msc"
|
|
6
|
+
# To compile in small model, set below: MODEL=S
|
|
7
|
+
|
|
8
|
+
# If you wish to reduce the memory requirements (default 256K for big
|
|
9
|
+
# objects plus a few K), you can add to the LOC macro below:
|
|
10
|
+
# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
|
|
11
|
+
# See zconf.h for details about the memory requirements.
|
|
12
|
+
|
|
13
|
+
# ------------- Microsoft C 5.1 and later -------------
|
|
14
|
+
|
|
15
|
+
# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
|
|
16
|
+
# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added
|
|
17
|
+
# to the declaration of LOC here:
|
|
18
|
+
LOC = $(LOCAL_ZLIB)
|
|
19
|
+
|
|
20
|
+
# Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
|
|
21
|
+
CPU_TYP = 0
|
|
22
|
+
|
|
23
|
+
# Memory model: one of S, M, C, L (small, medium, compact, large)
|
|
24
|
+
MODEL=L
|
|
25
|
+
|
|
26
|
+
CC=cl
|
|
27
|
+
CFLAGS=-nologo -A$(MODEL) -G$(CPU_TYP) -W3 -Oait -Gs $(LOC)
|
|
28
|
+
#-Ox generates bad code with MSC 5.1
|
|
29
|
+
LIB_CFLAGS=-Zl $(CFLAGS)
|
|
30
|
+
|
|
31
|
+
LD=link
|
|
32
|
+
LDFLAGS=/noi/e/st:0x1500/noe/farcall/packcode
|
|
33
|
+
# "/farcall/packcode" are only useful for `large code' memory models
|
|
34
|
+
# but should be a "no-op" for small code models.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# variables
|
|
38
|
+
ZLIB_LIB = zlib_$(MODEL).lib
|
|
39
|
+
|
|
40
|
+
OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
|
|
41
|
+
OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# targets
|
|
45
|
+
all: $(ZLIB_LIB) example.exe minigzip.exe
|
|
46
|
+
|
|
47
|
+
.c.obj:
|
|
48
|
+
$(CC) -c $(LIB_CFLAGS) $*.c
|
|
49
|
+
|
|
50
|
+
adler32.obj: adler32.c zlib.h zconf.h
|
|
51
|
+
|
|
52
|
+
compress.obj: compress.c zlib.h zconf.h
|
|
53
|
+
|
|
54
|
+
crc32.obj: crc32.c zlib.h zconf.h crc32.h
|
|
55
|
+
|
|
56
|
+
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
|
|
57
|
+
|
|
58
|
+
gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
|
|
59
|
+
|
|
60
|
+
gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
|
|
61
|
+
|
|
62
|
+
gzread.obj: gzread.c zlib.h zconf.h gzguts.h
|
|
63
|
+
|
|
64
|
+
gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
|
|
65
|
+
|
|
66
|
+
infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
67
|
+
inffast.h inffixed.h
|
|
68
|
+
|
|
69
|
+
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
70
|
+
inffast.h
|
|
71
|
+
|
|
72
|
+
inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
73
|
+
inffast.h inffixed.h
|
|
74
|
+
|
|
75
|
+
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
|
|
76
|
+
|
|
77
|
+
trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
|
|
78
|
+
|
|
79
|
+
uncompr.obj: uncompr.c zlib.h zconf.h
|
|
80
|
+
|
|
81
|
+
zutil.obj: zutil.c zutil.h zlib.h zconf.h
|
|
82
|
+
|
|
83
|
+
example.obj: test/example.c zlib.h zconf.h
|
|
84
|
+
$(CC) -c $(CFLAGS) $*.c
|
|
85
|
+
|
|
86
|
+
minigzip.obj: test/minigzip.c zlib.h zconf.h
|
|
87
|
+
$(CC) -c $(CFLAGS) $*.c
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
# the command line is cut to fit in the MS-DOS 128 byte limit:
|
|
91
|
+
$(ZLIB_LIB): $(OBJ1) $(OBJ2)
|
|
92
|
+
if exist $(ZLIB_LIB) del $(ZLIB_LIB)
|
|
93
|
+
lib $(ZLIB_LIB) $(OBJ1);
|
|
94
|
+
lib $(ZLIB_LIB) $(OBJ2);
|
|
95
|
+
|
|
96
|
+
example.exe: example.obj $(ZLIB_LIB)
|
|
97
|
+
$(LD) $(LDFLAGS) example.obj,,,$(ZLIB_LIB);
|
|
98
|
+
|
|
99
|
+
minigzip.exe: minigzip.obj $(ZLIB_LIB)
|
|
100
|
+
$(LD) $(LDFLAGS) minigzip.obj,,,$(ZLIB_LIB);
|
|
101
|
+
|
|
102
|
+
test: example.exe minigzip.exe
|
|
103
|
+
example
|
|
104
|
+
echo hello world | minigzip | minigzip -d
|
|
105
|
+
|
|
106
|
+
clean:
|
|
107
|
+
-del *.obj
|
|
108
|
+
-del *.lib
|
|
109
|
+
-del *.exe
|
|
110
|
+
-del *.map
|
|
111
|
+
-del zlib_*.bak
|
|
112
|
+
-del foo.gz
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Makefile for zlib
|
|
2
|
+
# Turbo C 2.01, Turbo C++ 1.01
|
|
3
|
+
# Last updated: 15-Mar-2003
|
|
4
|
+
|
|
5
|
+
# To use, do "make -fmakefile.tc"
|
|
6
|
+
# To compile in small model, set below: MODEL=s
|
|
7
|
+
|
|
8
|
+
# WARNING: the small model is supported but only for small values of
|
|
9
|
+
# MAX_WBITS and MAX_MEM_LEVEL. For example:
|
|
10
|
+
# -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
|
|
11
|
+
# If you wish to reduce the memory requirements (default 256K for big
|
|
12
|
+
# objects plus a few K), you can add to CFLAGS below:
|
|
13
|
+
# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
|
|
14
|
+
# See zconf.h for details about the memory requirements.
|
|
15
|
+
|
|
16
|
+
# ------------ Turbo C 2.01, Turbo C++ 1.01 ------------
|
|
17
|
+
MODEL=l
|
|
18
|
+
CC=tcc
|
|
19
|
+
LD=tcc
|
|
20
|
+
AR=tlib
|
|
21
|
+
# CFLAGS=-O2 -G -Z -m$(MODEL) -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
|
|
22
|
+
CFLAGS=-O2 -G -Z -m$(MODEL)
|
|
23
|
+
LDFLAGS=-m$(MODEL) -f-
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# variables
|
|
27
|
+
ZLIB_LIB = zlib_$(MODEL).lib
|
|
28
|
+
|
|
29
|
+
OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
|
|
30
|
+
OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
|
|
31
|
+
OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
|
|
32
|
+
OBJP2 = +gzwrite.obj+infback.obj+inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# targets
|
|
36
|
+
all: $(ZLIB_LIB) example.exe minigzip.exe
|
|
37
|
+
|
|
38
|
+
.c.obj:
|
|
39
|
+
$(CC) -c $(CFLAGS) $*.c
|
|
40
|
+
|
|
41
|
+
adler32.obj: adler32.c zlib.h zconf.h
|
|
42
|
+
|
|
43
|
+
compress.obj: compress.c zlib.h zconf.h
|
|
44
|
+
|
|
45
|
+
crc32.obj: crc32.c zlib.h zconf.h crc32.h
|
|
46
|
+
|
|
47
|
+
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
|
|
48
|
+
|
|
49
|
+
gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
|
|
50
|
+
|
|
51
|
+
gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
|
|
52
|
+
|
|
53
|
+
gzread.obj: gzread.c zlib.h zconf.h gzguts.h
|
|
54
|
+
|
|
55
|
+
gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
|
|
56
|
+
|
|
57
|
+
infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
58
|
+
inffast.h inffixed.h
|
|
59
|
+
|
|
60
|
+
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
61
|
+
inffast.h
|
|
62
|
+
|
|
63
|
+
inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
|
64
|
+
inffast.h inffixed.h
|
|
65
|
+
|
|
66
|
+
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
|
|
67
|
+
|
|
68
|
+
trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
|
|
69
|
+
|
|
70
|
+
uncompr.obj: uncompr.c zlib.h zconf.h
|
|
71
|
+
|
|
72
|
+
zutil.obj: zutil.c zutil.h zlib.h zconf.h
|
|
73
|
+
|
|
74
|
+
example.obj: test/example.c zlib.h zconf.h
|
|
75
|
+
|
|
76
|
+
minigzip.obj: test/minigzip.c zlib.h zconf.h
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# the command line is cut to fit in the MS-DOS 128 byte limit:
|
|
80
|
+
$(ZLIB_LIB): $(OBJ1) $(OBJ2)
|
|
81
|
+
-del $(ZLIB_LIB)
|
|
82
|
+
$(AR) $(ZLIB_LIB) $(OBJP1)
|
|
83
|
+
$(AR) $(ZLIB_LIB) $(OBJP2)
|
|
84
|
+
|
|
85
|
+
example.exe: example.obj $(ZLIB_LIB)
|
|
86
|
+
$(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
|
|
87
|
+
|
|
88
|
+
minigzip.exe: minigzip.obj $(ZLIB_LIB)
|
|
89
|
+
$(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
|
|
90
|
+
|
|
91
|
+
test: example.exe minigzip.exe
|
|
92
|
+
example
|
|
93
|
+
echo hello world | minigzip | minigzip -d
|
|
94
|
+
|
|
95
|
+
clean:
|
|
96
|
+
-del *.obj
|
|
97
|
+
-del *.lib
|
|
98
|
+
-del *.exe
|
|
99
|
+
-del zlib_*.bak
|
|
100
|
+
-del foo.gz
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
ZLIB version 1.3.2 for OS/400 installation instructions
|
|
2
|
+
|
|
3
|
+
1) Download and unpack the zlib tarball to some IFS directory.
|
|
4
|
+
(i.e.: /path/to/the/zlib/ifs/source/directory)
|
|
5
|
+
|
|
6
|
+
If the installed IFS command supports gzip format, this is straightforward,
|
|
7
|
+
else you have to unpack first to some directory on a system supporting it,
|
|
8
|
+
then move the whole directory to the IFS via the network (via SMB or FTP).
|
|
9
|
+
|
|
10
|
+
2) Edit the configuration parameters in the compilation script.
|
|
11
|
+
|
|
12
|
+
EDTF STMF('/path/to/the/zlib/ifs/source/directory/os400/make.sh')
|
|
13
|
+
|
|
14
|
+
Tune the parameters according to your needs if not matching the defaults.
|
|
15
|
+
Save the file and exit after edition.
|
|
16
|
+
|
|
17
|
+
3) Enter qshell, then work in the zlib OS/400 specific directory.
|
|
18
|
+
|
|
19
|
+
QSH
|
|
20
|
+
cd /path/to/the/zlib/ifs/source/directory/os400
|
|
21
|
+
|
|
22
|
+
4) Compile and install
|
|
23
|
+
|
|
24
|
+
sh make.sh
|
|
25
|
+
|
|
26
|
+
The script will:
|
|
27
|
+
- create the libraries, objects and IFS directories for the zlib environment,
|
|
28
|
+
- compile all modules,
|
|
29
|
+
- create a service program,
|
|
30
|
+
- create a static and a dynamic binding directory,
|
|
31
|
+
- install header files for C/C++ and for ILE/RPG, both for compilation in
|
|
32
|
+
DB2 and IFS environments.
|
|
33
|
+
|
|
34
|
+
That's all.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
Notes: For OS/400 ILE RPG programmers, a /copy member defining the ZLIB
|
|
38
|
+
API prototypes for ILE RPG can be found in ZLIB/H(ZLIB.INC).
|
|
39
|
+
In the ILE environment, the same definitions are available from
|
|
40
|
+
file zlib.inc located in the same IFS include directory as the
|
|
41
|
+
C/C++ header files.
|
|
42
|
+
Please read comments in this member for more information.
|
|
43
|
+
|
|
44
|
+
Remember that most foreign textual data are ASCII coded: this
|
|
45
|
+
implementation does not handle conversion from/to ASCII, so
|
|
46
|
+
text data code conversions must be done explicitly.
|
|
47
|
+
|
|
48
|
+
Mainly for the reason above, always open zipped files in binary mode.
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('ZLIB')
|
|
2
|
+
|
|
3
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
4
|
+
/* Version 1.1.3 entry points. */
|
|
5
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
6
|
+
|
|
7
|
+
EXPORT SYMBOL("adler32")
|
|
8
|
+
EXPORT SYMBOL("compress")
|
|
9
|
+
EXPORT SYMBOL("compress2")
|
|
10
|
+
EXPORT SYMBOL("crc32")
|
|
11
|
+
EXPORT SYMBOL("get_crc_table")
|
|
12
|
+
EXPORT SYMBOL("deflate")
|
|
13
|
+
EXPORT SYMBOL("deflateEnd")
|
|
14
|
+
EXPORT SYMBOL("deflateSetDictionary")
|
|
15
|
+
EXPORT SYMBOL("deflateCopy")
|
|
16
|
+
EXPORT SYMBOL("deflateReset")
|
|
17
|
+
EXPORT SYMBOL("deflateParams")
|
|
18
|
+
EXPORT SYMBOL("deflatePrime")
|
|
19
|
+
EXPORT SYMBOL("deflateInit_")
|
|
20
|
+
EXPORT SYMBOL("deflateInit2_")
|
|
21
|
+
EXPORT SYMBOL("gzopen")
|
|
22
|
+
EXPORT SYMBOL("gzdopen")
|
|
23
|
+
EXPORT SYMBOL("gzsetparams")
|
|
24
|
+
EXPORT SYMBOL("gzread")
|
|
25
|
+
EXPORT SYMBOL("gzwrite")
|
|
26
|
+
EXPORT SYMBOL("gzprintf")
|
|
27
|
+
EXPORT SYMBOL("gzputs")
|
|
28
|
+
EXPORT SYMBOL("gzgets")
|
|
29
|
+
EXPORT SYMBOL("gzputc")
|
|
30
|
+
EXPORT SYMBOL("gzgetc")
|
|
31
|
+
EXPORT SYMBOL("gzflush")
|
|
32
|
+
EXPORT SYMBOL("gzseek")
|
|
33
|
+
EXPORT SYMBOL("gzrewind")
|
|
34
|
+
EXPORT SYMBOL("gztell")
|
|
35
|
+
EXPORT SYMBOL("gzeof")
|
|
36
|
+
EXPORT SYMBOL("gzclose")
|
|
37
|
+
EXPORT SYMBOL("gzerror")
|
|
38
|
+
EXPORT SYMBOL("inflate")
|
|
39
|
+
EXPORT SYMBOL("inflateEnd")
|
|
40
|
+
EXPORT SYMBOL("inflateSetDictionary")
|
|
41
|
+
EXPORT SYMBOL("inflateSync")
|
|
42
|
+
EXPORT SYMBOL("inflateReset")
|
|
43
|
+
EXPORT SYMBOL("inflateInit_")
|
|
44
|
+
EXPORT SYMBOL("inflateInit2_")
|
|
45
|
+
EXPORT SYMBOL("inflateSyncPoint")
|
|
46
|
+
EXPORT SYMBOL("uncompress")
|
|
47
|
+
EXPORT SYMBOL("zlibVersion")
|
|
48
|
+
EXPORT SYMBOL("zError")
|
|
49
|
+
EXPORT SYMBOL("z_errmsg")
|
|
50
|
+
|
|
51
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
52
|
+
/* Version 1.2.1 additional entry points. */
|
|
53
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
54
|
+
|
|
55
|
+
EXPORT SYMBOL("compressBound")
|
|
56
|
+
EXPORT SYMBOL("deflateBound")
|
|
57
|
+
EXPORT SYMBOL("deflatePending")
|
|
58
|
+
EXPORT SYMBOL("gzungetc")
|
|
59
|
+
EXPORT SYMBOL("gzclearerr")
|
|
60
|
+
EXPORT SYMBOL("inflateBack")
|
|
61
|
+
EXPORT SYMBOL("inflateBackEnd")
|
|
62
|
+
EXPORT SYMBOL("inflateBackInit_")
|
|
63
|
+
EXPORT SYMBOL("inflateCopy")
|
|
64
|
+
EXPORT SYMBOL("zlibCompileFlags")
|
|
65
|
+
|
|
66
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
67
|
+
/* Version 1.2.4 additional entry points. */
|
|
68
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
69
|
+
|
|
70
|
+
EXPORT SYMBOL("adler32_combine")
|
|
71
|
+
EXPORT SYMBOL("adler32_combine64")
|
|
72
|
+
EXPORT SYMBOL("crc32_combine")
|
|
73
|
+
EXPORT SYMBOL("crc32_combine64")
|
|
74
|
+
EXPORT SYMBOL("deflateSetHeader")
|
|
75
|
+
EXPORT SYMBOL("deflateTune")
|
|
76
|
+
EXPORT SYMBOL("gzbuffer")
|
|
77
|
+
EXPORT SYMBOL("gzclose_r")
|
|
78
|
+
EXPORT SYMBOL("gzclose_w")
|
|
79
|
+
EXPORT SYMBOL("gzdirect")
|
|
80
|
+
EXPORT SYMBOL("gzoffset")
|
|
81
|
+
EXPORT SYMBOL("gzoffset64")
|
|
82
|
+
EXPORT SYMBOL("gzopen64")
|
|
83
|
+
EXPORT SYMBOL("gzseek64")
|
|
84
|
+
EXPORT SYMBOL("gztell64")
|
|
85
|
+
EXPORT SYMBOL("inflateGetHeader")
|
|
86
|
+
EXPORT SYMBOL("inflateMark")
|
|
87
|
+
EXPORT SYMBOL("inflatePrime")
|
|
88
|
+
EXPORT SYMBOL("inflateReset2")
|
|
89
|
+
EXPORT SYMBOL("inflateUndermine")
|
|
90
|
+
|
|
91
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
92
|
+
/* Version 1.2.6 additional entry points. */
|
|
93
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
94
|
+
|
|
95
|
+
EXPORT SYMBOL("deflateResetKeep")
|
|
96
|
+
EXPORT SYMBOL("gzgetc_")
|
|
97
|
+
EXPORT SYMBOL("inflateResetKeep")
|
|
98
|
+
|
|
99
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
100
|
+
/* Version 1.2.8 additional entry points. */
|
|
101
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
102
|
+
|
|
103
|
+
EXPORT SYMBOL("gzvprintf")
|
|
104
|
+
EXPORT SYMBOL("inflateGetDictionary")
|
|
105
|
+
|
|
106
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
107
|
+
/* Version 1.2.9 additional entry points. */
|
|
108
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
109
|
+
|
|
110
|
+
EXPORT SYMBOL("adler32_z")
|
|
111
|
+
EXPORT SYMBOL("crc32_z")
|
|
112
|
+
EXPORT SYMBOL("deflateGetDictionary")
|
|
113
|
+
EXPORT SYMBOL("gzfread")
|
|
114
|
+
EXPORT SYMBOL("gzfwrite")
|
|
115
|
+
EXPORT SYMBOL("inflateCodesUsed")
|
|
116
|
+
EXPORT SYMBOL("inflateValidate")
|
|
117
|
+
EXPORT SYMBOL("uncompress2")
|
|
118
|
+
|
|
119
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
120
|
+
/* Version 1.2.12 additional entry points. */
|
|
121
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
122
|
+
|
|
123
|
+
EXPORT SYMBOL("crc32_combine_gen64")
|
|
124
|
+
EXPORT SYMBOL("crc32_combine_gen")
|
|
125
|
+
EXPORT SYMBOL("crc32_combine_op")
|
|
126
|
+
|
|
127
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
128
|
+
/* Version 1.3.1.2 additional entry points. */
|
|
129
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
130
|
+
|
|
131
|
+
EXPORT SYMBOL("deflateUsed")
|
|
132
|
+
|
|
133
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
134
|
+
/* Version 1.3.2 additional entry points. */
|
|
135
|
+
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
|
|
136
|
+
|
|
137
|
+
EXPORT SYMBOL("compressBound_z")
|
|
138
|
+
EXPORT SYMBOL("deflateBound_z")
|
|
139
|
+
EXPORT SYMBOL("compress_z")
|
|
140
|
+
EXPORT SYMBOL("compress2_z")
|
|
141
|
+
EXPORT SYMBOL("uncompress_z")
|
|
142
|
+
EXPORT SYMBOL("uncompress2_z")
|
|
143
|
+
|
|
144
|
+
ENDPGMEXP
|