diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-10-09 09:50:48 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-10-09 09:50:48 -0700 |
commit | 1bd2fa1b241d24dc444f17d217429780f0b657c0 (patch) | |
tree | 833a967a97b573bb95c429ed2eca987a8dc960cf | |
parent | 77b47d55f14be032c0ee10da44bbe7591be0abd8 (diff) | |
download | zlib-1bd2fa1b241d24dc444f17d217429780f0b657c0.tar.gz zlib-1bd2fa1b241d24dc444f17d217429780f0b657c0.tar.bz2 zlib-1bd2fa1b241d24dc444f17d217429780f0b657c0.zip |
Move example.c and minigzip.c to examples/ directory.
-rw-r--r-- | INDEX | 8 | ||||
-rw-r--r-- | Makefile.in | 14 | ||||
-rw-r--r-- | examples/README.examples | 9 | ||||
-rw-r--r-- | examples/example.c (renamed from example.c) | 0 | ||||
-rw-r--r-- | examples/minigzip.c (renamed from minigzip.c) | 0 |
5 files changed, 22 insertions, 9 deletions
@@ -57,10 +57,8 @@ uncompr.c | |||
57 | zutil.c | 57 | zutil.c |
58 | zutil.h | 58 | zutil.h |
59 | 59 | ||
60 | source files for sample programs: | 60 | source files for sample programs |
61 | example.c | 61 | See examples/README.examples |
62 | minigzip.c | ||
63 | See examples/README.examples for more | ||
64 | 62 | ||
65 | unsupported contribution by third parties | 63 | unsupported contributions by third parties |
66 | See contrib/README.contrib | 64 | See contrib/README.contrib |
diff --git a/Makefile.in b/Makefile.in index c1c37fe..1b8bf3f 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -126,11 +126,17 @@ match.lo: match.S | |||
126 | mv _match.o match.lo | 126 | mv _match.o match.lo |
127 | rm -f _match.s | 127 | rm -f _match.s |
128 | 128 | ||
129 | example64.o: example.c zlib.h zconf.h | 129 | example.o: examples/example.c zlib.h zconf.h |
130 | $(CC) $(CFLAGS) -D_FILE_OFFSET_BITS=64 -c -o $@ example.c | 130 | $(CC) $(CFLAGS) -I. -c -o $@ examples/example.c |
131 | 131 | ||
132 | minigzip64.o: minigzip.c zlib.h zconf.h | 132 | minigzip.o: examples/minigzip.c zlib.h zconf.h |
133 | $(CC) $(CFLAGS) -D_FILE_OFFSET_BITS=64 -c -o $@ minigzip.c | 133 | $(CC) $(CFLAGS) -I. -c -o $@ examples/minigzip.c |
134 | |||
135 | example64.o: examples/example.c zlib.h zconf.h | ||
136 | $(CC) $(CFLAGS) -I. -D_FILE_OFFSET_BITS=64 -c -o $@ examples/example.c | ||
137 | |||
138 | minigzip64.o: examples/minigzip.c zlib.h zconf.h | ||
139 | $(CC) $(CFLAGS) -I. -D_FILE_OFFSET_BITS=64 -c -o $@ examples/minigzip.c | ||
134 | 140 | ||
135 | .SUFFIXES: .lo | 141 | .SUFFIXES: .lo |
136 | 142 | ||
diff --git a/examples/README.examples b/examples/README.examples index 56a3171..fddb8df 100644 --- a/examples/README.examples +++ b/examples/README.examples | |||
@@ -6,6 +6,10 @@ enough.c | |||
6 | - calculates the maximum table space used in inflate tree | 6 | - calculates the maximum table space used in inflate tree |
7 | construction over all possible Huffman codes | 7 | construction over all possible Huffman codes |
8 | 8 | ||
9 | example.c | ||
10 | usage examples of zlib | ||
11 | - used in zlib build Makefile for testing | ||
12 | |||
9 | fitblk.c | 13 | fitblk.c |
10 | compress just enough input to nearly fill a requested output size | 14 | compress just enough input to nearly fill a requested output size |
11 | - zlib isn't designed to do this, but fitblk does it anyway | 15 | - zlib isn't designed to do this, but fitblk does it anyway |
@@ -34,6 +38,11 @@ gzlog.h | |||
34 | and deflateSetDictionary() | 38 | and deflateSetDictionary() |
35 | - illustrates use of a gzip header extra field | 39 | - illustrates use of a gzip header extra field |
36 | 40 | ||
41 | minigzip.c | ||
42 | minimal implementation of gzip-like functionality using zlib | ||
43 | - used in zlib build Makefile for testing | ||
44 | - is not meant for and should not be used as a gzip replacement | ||
45 | |||
37 | zlib_how.html | 46 | zlib_how.html |
38 | painfully comprehensive description of zpipe.c (see below) | 47 | painfully comprehensive description of zpipe.c (see below) |
39 | - describes in excruciating detail the use of deflate() and inflate() | 48 | - describes in excruciating detail the use of deflate() and inflate() |
diff --git a/example.c b/examples/example.c index f515a48..f515a48 100644 --- a/example.c +++ b/examples/example.c | |||
diff --git a/minigzip.c b/examples/minigzip.c index 8317344..8317344 100644 --- a/minigzip.c +++ b/examples/minigzip.c | |||