]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Move example.c and minigzip.c to test/.
authorMark Adler <madler@alumni.caltech.edu>
Tue, 22 Nov 2011 02:56:02 +0000 (18:56 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 27 Nov 2011 22:15:32 +0000 (14:15 -0800)
19 files changed:
CMakeLists.txt
FAQ
INDEX
Makefile.in
README
contrib/delphi/zlibd32.mak
contrib/pascal/zlibd32.mak
examples/README.examples
make_vms.com
msdos/Makefile.bor
msdos/Makefile.msc
msdos/Makefile.tc
old/visualc6/example.dsp
test/example.c [moved from examples/example.c with 100% similarity]
test/minigzip.c [moved from examples/minigzip.c with 100% similarity]
win32/Makefile.bor
win32/Makefile.msc
zlib.3
zlib.3.pdf

index a64fe0b2cae5790b2a20ff30898f31919cf5767f..e173dd70a1cf7ac061e21be25ea6d48e49e2350d 100644 (file)
@@ -171,20 +171,20 @@ endif()
 # Example binaries
 #============================================================================
 
-add_executable(example example.c)
+add_executable(example test/example.c)
 target_link_libraries(example zlib)
 add_test(example example)
 
-add_executable(minigzip minigzip.c)
+add_executable(minigzip test/minigzip.c)
 target_link_libraries(minigzip zlib)
 
 if(HAVE_OFF64_T)
-    add_executable(example64 example.c)
+    add_executable(example64 test/example.c)
     target_link_libraries(example64 zlib)
     set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
     add_test(example64 example64)
 
-    add_executable(minigzip64 minigzip.c)
+    add_executable(minigzip64 test/minigzip.c)
     target_link_libraries(minigzip64 zlib)
     set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
 endif()
diff --git a/FAQ b/FAQ
index 03676dd2d7817673fa00beea2a09ea5c0ecab884..99b7cf92e45497fc8f608777f962dce2148d108b 100644 (file)
--- a/FAQ
+++ b/FAQ
@@ -44,8 +44,8 @@ The lastest zlib FAQ is at http://zlib.net/zlib_faq.html
 
  6. Where's the zlib documentation (man pages, etc.)?
 
-    It's in zlib.h .  Examples of zlib usage are in the files example.c and
-    minigzip.c, with more in examples/ .
+    It's in zlib.h .  Examples of zlib usage are in the files test/example.c
+    and test/minigzip.c, with more in examples/ .
 
  7. Why don't you use GNU autoconf or libtool or ...?
 
diff --git a/INDEX b/INDEX
index d05a0094b03b2378d4b765721e8557e1a6bc9a88..0967554404627a69df1f0b2574ffa06fc23f645a 100644 (file)
--- a/INDEX
+++ b/INDEX
@@ -7,6 +7,8 @@ Makefile.in     template for Unix Makefile
 README          guess what
 configure       configure script for Unix
 make_vms.com    makefile for VMS
+test/example.c  zlib usages examples for build testing
+test/minigzip.c minimal gzip-like functionality for build testing
 treebuild.xml   XML description of source file dependencies
 zconf.h.cmakein zconf.h template for cmake
 zconf.h.in      zconf.h template for configure
@@ -17,7 +19,7 @@ zlib.pc.in      Template for pkg-config descriptor
 zlib2ansi       perl script to convert source files for C++ compilation
 
 amiga/          makefiles for Amiga SAS C
-as400/         makefiles for AS/400
+as400/          makefiles for AS/400
 doc/            documentation for formats and algorithms
 msdos/          makefiles for MSDOS
 nintendods/     makefile for Nintendo DS
index 01a9016b84be74b5fa809e7d55d30eaee65e06df..f3495698ef7d078d0fb192bb82f0d8968730a9d6 100644 (file)
@@ -127,17 +127,17 @@ match.lo: match.S
        mv _match.o match.lo
        rm -f _match.s
 
-example.o: examples/example.c zlib.h zconf.h
-       $(CC) $(CFLAGS) -I. -c -o $@ examples/example.c
+example.o: test/example.c zlib.h zconf.h
+       $(CC) $(CFLAGS) -I. -c -o $@ test/example.c
 
-minigzip.o: examples/minigzip.c zlib.h zconf.h
-       $(CC) $(CFLAGS) -I. -c -o $@ examples/minigzip.c
+minigzip.o: test/minigzip.c zlib.h zconf.h
+       $(CC) $(CFLAGS) -I. -c -o $@ test/minigzip.c
 
-example64.o: examples/example.c zlib.h zconf.h
-       $(CC) $(CFLAGS) -I. -D_FILE_OFFSET_BITS=64 -c -o $@ examples/example.c
+example64.o: test/example.c zlib.h zconf.h
+       $(CC) $(CFLAGS) -I. -D_FILE_OFFSET_BITS=64 -c -o $@ test/example.c
 
-minigzip64.o: examples/minigzip.c zlib.h zconf.h
-       $(CC) $(CFLAGS) -I. -D_FILE_OFFSET_BITS=64 -c -o $@ examples/minigzip.c
+minigzip64.o: test/minigzip.c zlib.h zconf.h
+       $(CC) $(CFLAGS) -I. -D_FILE_OFFSET_BITS=64 -c -o $@ test/minigzip.c
 
 .SUFFIXES: .lo
 
diff --git a/README b/README
index 3b517f72cf061f4aca99989ce44f2944fc7b67cf..02dc3dc5d0095605014d5d933ba769ff0d87210c 100644 (file)
--- a/README
+++ b/README
@@ -8,15 +8,15 @@ rfc1952 (gzip format).
 
 All functions of the compression library are documented in the file zlib.h
 (volunteer to write man pages welcome, contact zlib@gzip.org).  A usage example
-of the library is given in the file example.c which also tests that the library
-is working correctly.  Another example is given in the file minigzip.c.  The
-compression library itself is composed of all source files except example.c and
-minigzip.c.
+of the library is given in the file test/example.c which also tests that
+the library is working correctly.  Another example is given in the file
+test/minigzip.c.  The compression library itself is composed of all source
+files in the root directory.
 
 To compile all files and run the test program, follow the instructions given at
 the top of Makefile.in.  In short "./configure; make test", and if that goes
-well, "make install" should work for most flavors of Unix.  For Windows, use one
-of the special makefiles in win32/ or contrib/vstudio/ .  For VMS, use
+well, "make install" should work for most flavors of Unix.  For Windows, use
+one of the special makefiles in win32/ or contrib/vstudio/ .  For VMS, use
 make_vms.com.
 
 Questions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant
index 0d0699a69a3c735d8dfdfc22abf9a820c1963e8f..9bb00b7cc4211c89db28d55443910aeab505fe44 100644 (file)
@@ -63,9 +63,9 @@ uncompr.obj: uncompr.c zlib.h zconf.h
 
 zutil.obj: zutil.c zutil.h zlib.h zconf.h
 
-example.obj: example.c zlib.h zconf.h
+example.obj: test/example.c zlib.h zconf.h
 
-minigzip.obj: minigzip.c zlib.h zconf.h
+minigzip.obj: test/minigzip.c zlib.h zconf.h
 
 
 # For the sake of the old Borland make,
index 0d0699a69a3c735d8dfdfc22abf9a820c1963e8f..9bb00b7cc4211c89db28d55443910aeab505fe44 100644 (file)
@@ -63,9 +63,9 @@ uncompr.obj: uncompr.c zlib.h zconf.h
 
 zutil.obj: zutil.c zutil.h zlib.h zconf.h
 
-example.obj: example.c zlib.h zconf.h
+example.obj: test/example.c zlib.h zconf.h
 
-minigzip.obj: minigzip.c zlib.h zconf.h
+minigzip.obj: test/minigzip.c zlib.h zconf.h
 
 
 # For the sake of the old Borland make,
index fddb8df1342ef4d0bed0759c13fe06f4c9c6d29c..56a31714e566aa29fd85dec5ea3a9716f558fefa 100644 (file)
@@ -6,10 +6,6 @@ enough.c
     - calculates the maximum table space used in inflate tree
       construction over all possible Huffman codes
 
-example.c
-    usage examples of zlib
-    - used in zlib build Makefile for testing
-
 fitblk.c
     compress just enough input to nearly fill a requested output size
     - zlib isn't designed to do this, but fitblk does it anyway
@@ -38,11 +34,6 @@ gzlog.h
       and deflateSetDictionary()
     - illustrates use of a gzip header extra field
 
-minigzip.c
-    minimal implementation of gzip-like functionality using zlib
-    - used in zlib build Makefile for testing
-    - is not meant for and should not be used as a gzip replacement
-
 zlib_how.html
     painfully comprehensive description of zpipe.c (see below)
     - describes in excruciating detail the use of deflate() and inflate()
index 6576490e651cfefec4a1c54bd6c1274e26335245..11be527f0bf7a425c2456edfc64ebd0bb259fba1 100644 (file)
@@ -175,13 +175,13 @@ $   write sys$output "Building Zlib ..."
 $   CALL MAKE libz.OLB "lib/crea libz.olb *.obj" *.OBJ
 $   write sys$output "Building example..."
 $   CALL MAKE example.OBJ "CC ''CCOPT' example" -
-                example.c zlib.h zconf.h
+                test/example.c zlib.h zconf.h
 $   call make example.exe "LINK example,libz.olb/lib" example.obj libz.olb
 $   if f$search("x11vms:xvmsutils.olb") .nes. ""
 $   then
 $     write sys$output "Building minigzip..."
 $     CALL MAKE minigzip.OBJ "CC ''CCOPT' minigzip" -
-                minigzip.c zlib.h zconf.h
+                test/minigzip.c zlib.h zconf.h
 $     call make minigzip.exe -
                 "LINK minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib" -
                 minigzip.obj libz.olb
@@ -431,7 +431,7 @@ adler32.obj  : adler32.c zutil.h zlib.h zconf.h
 compress.obj : compress.c zlib.h zconf.h
 crc32.obj    : crc32.c zutil.h zlib.h zconf.h
 deflate.obj  : deflate.c deflate.h zutil.h zlib.h zconf.h
-example.obj  : example.c zlib.h zconf.h
+example.obj  : test/example.c zlib.h zconf.h
 gzclose.obj  : gzclose.c zutil.h zlib.h zconf.h
 gzlib.obj    : gzlib.c zutil.h zlib.h zconf.h
 gzread.obj   : gzread.c zutil.h zlib.h zconf.h
@@ -439,7 +439,7 @@ gzwrite.obj  : gzwrite.c zutil.h zlib.h zconf.h
 inffast.obj  : inffast.c zutil.h zlib.h zconf.h inftrees.h inffast.h
 inflate.obj  : inflate.c zutil.h zlib.h zconf.h
 inftrees.obj : inftrees.c zutil.h zlib.h zconf.h inftrees.h
-minigzip.obj : minigzip.c zlib.h zconf.h
+minigzip.obj : test/minigzip.c zlib.h zconf.h
 trees.obj    : trees.c deflate.h zutil.h zlib.h zconf.h
 uncompr.obj  : uncompr.c zlib.h zconf.h
 zutil.obj    : zutil.c zutil.h zlib.h zconf.h
index 0c1b99c9b9f13d8450c60649c0117cb49fe0cdcf..3d12a2c25270a42e66ffad27357d9b8a974bfefd 100644 (file)
@@ -86,9 +86,9 @@ uncompr.obj: uncompr.c zlib.h zconf.h
 
 zutil.obj: zutil.c zutil.h zlib.h zconf.h
 
-example.obj: example.c zlib.h zconf.h
+example.obj: test/example.c zlib.h zconf.h
 
-minigzip.obj: minigzip.c zlib.h zconf.h
+minigzip.obj: test/minigzip.c zlib.h zconf.h
 
 
 # the command line is cut to fit in the MS-DOS 128 byte limit:
index cd2816fbf3159ac91a75f187819aee93bbf7b749..ae8378615ec6bc5998d52d87429971d99e2b7ae6 100644 (file)
@@ -80,10 +80,10 @@ uncompr.obj: uncompr.c zlib.h zconf.h
 
 zutil.obj: zutil.c zutil.h zlib.h zconf.h
 
-example.obj: example.c zlib.h zconf.h
+example.obj: test/example.c zlib.h zconf.h
        $(CC) -c $(CFLAGS) $*.c
 
-minigzip.obj: minigzip.c zlib.h zconf.h
+minigzip.obj: test/minigzip.c zlib.h zconf.h
        $(CC) -c $(CFLAGS) $*.c
 
 
index bcd0d1889c558339079cef7fe842a61e02534aad..5aec82a9d58c4597f84dae6475fb5f23221fb6b9 100644 (file)
@@ -71,9 +71,9 @@ uncompr.obj: uncompr.c zlib.h zconf.h
 
 zutil.obj: zutil.c zutil.h zlib.h zconf.h
 
-example.obj: example.c zlib.h zconf.h
+example.obj: test/example.c zlib.h zconf.h
 
-minigzip.obj: minigzip.c zlib.h zconf.h
+minigzip.obj: test/minigzip.c zlib.h zconf.h
 
 
 # the command line is cut to fit in the MS-DOS 128 byte limit:
index d3580525bd4e1d453d1f62d920237273672f8aea..54f3f306b452ab19f6384ddd91ca90069e0f7ac2 100644 (file)
@@ -259,7 +259,7 @@ LINK32=link.exe
 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"\r
 # Begin Source File\r
 \r
-SOURCE=..\..\example.c\r
+SOURCE=..\..\test\example.c\r
 # End Source File\r
 # End Group\r
 # Begin Group "Header Files"\r
similarity index 100%
rename from examples/example.c
rename to test/example.c
similarity index 100%
rename from examples/minigzip.c
rename to test/minigzip.c
index 3981d4246b7cc41a82aa331d2df3c706e54a4653..d152bbb7ffd95161a8b400d2de87e49346a9a0c4 100644 (file)
@@ -74,9 +74,9 @@ uncompr.obj: uncompr.c zlib.h zconf.h
 
 zutil.obj: zutil.c zutil.h zlib.h zconf.h
 
-example.obj: example.c zlib.h zconf.h
+example.obj: test/example.c zlib.h zconf.h
 
-minigzip.obj: minigzip.c zlib.h zconf.h
+minigzip.obj: test/minigzip.c zlib.h zconf.h
 
 
 # For the sake of the old Borland make,
index 2714b45f9c024514d4c1543b6cd2bf367240eb31..53e66ca65bf02a6260fda394b5689586406bbf11 100644 (file)
@@ -125,9 +125,9 @@ inffas32.obj: contrib\masmx86\inffas32.asm
 
 match686.obj: contrib\masmx86\match686.asm
 
-example.obj: example.c zlib.h zconf.h
+example.obj: test/example.c zlib.h zconf.h
 
-minigzip.obj: minigzip.c zlib.h zconf.h
+minigzip.obj: test/minigzip.c zlib.h zconf.h
 
 zlib1.res: win32/zlib1.rc
        $(RC) $(RCFLAGS) /fo$@ win32/zlib1.rc
diff --git a/zlib.3 b/zlib.3
index 3e4280b760fa76fb6d351b2c79c1b06b2a6a56f8..aedf2208eea1d7a50cadd19e13998ab78874d93c 100644 (file)
--- a/zlib.3
+++ b/zlib.3
@@ -1,4 +1,4 @@
-.TH ZLIB 3 "xx Sep 2011"
+.TH ZLIB 3 "27 Nov 2011"
 .SH NAME
 zlib \- compression/decompression library
 .SH SYNOPSIS
@@ -36,9 +36,9 @@ All functions of the compression library are documented in the file
 .IR zlib.h .
 The distribution source includes examples of use of the library
 in the files
-.I example.c
+.I test/example.c
 and
-.IR minigzip.c,
+.IR test/minigzip.c,
 as well as other examples in the
 .IR examples/
 directory.
index 24cf58aed12fd1389f9de81f810b07ae4b8e000a..45f40e8dac94fe3a2fcfa072db5680fcbb84f1cb 100644 (file)
Binary files a/zlib.3.pdf and b/zlib.3.pdf differ