Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
8625e5e7
Commit
8625e5e7
authored
Mar 11, 2002
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to zlib version 1.1.4.
parent
1a0ea1b2
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
80 additions
and
69 deletions
+80
-69
lib/Components/zlib/adler32.c
lib/Components/zlib/adler32.c
+2
-2
lib/Components/zlib/compress.c
lib/Components/zlib/compress.c
+2
-2
lib/Components/zlib/crc32.c
lib/Components/zlib/crc32.c
+2
-2
lib/Components/zlib/deflate.c
lib/Components/zlib/deflate.c
+4
-4
lib/Components/zlib/deflate.h
lib/Components/zlib/deflate.h
+2
-2
lib/Components/zlib/gzio.c
lib/Components/zlib/gzio.c
+2
-2
lib/Components/zlib/infblock.c
lib/Components/zlib/infblock.c
+8
-3
lib/Components/zlib/infblock.h
lib/Components/zlib/infblock.h
+1
-1
lib/Components/zlib/infcodes.c
lib/Components/zlib/infcodes.c
+3
-9
lib/Components/zlib/infcodes.h
lib/Components/zlib/infcodes.h
+1
-1
lib/Components/zlib/inffast.c
lib/Components/zlib/inffast.c
+30
-17
lib/Components/zlib/inffast.h
lib/Components/zlib/inffast.h
+1
-1
lib/Components/zlib/inflate.c
lib/Components/zlib/inflate.c
+1
-1
lib/Components/zlib/inftrees.c
lib/Components/zlib/inftrees.c
+4
-5
lib/Components/zlib/inftrees.h
lib/Components/zlib/inftrees.h
+1
-1
lib/Components/zlib/infutil.c
lib/Components/zlib/infutil.c
+1
-1
lib/Components/zlib/infutil.h
lib/Components/zlib/infutil.h
+1
-1
lib/Components/zlib/maketree.c
lib/Components/zlib/maketree.c
+1
-1
lib/Components/zlib/trees.c
lib/Components/zlib/trees.c
+2
-2
lib/Components/zlib/uncompr.c
lib/Components/zlib/uncompr.c
+2
-2
lib/Components/zlib/zconf.h
lib/Components/zlib/zconf.h
+2
-2
lib/Components/zlib/zlib.h
lib/Components/zlib/zlib.h
+3
-3
lib/Components/zlib/zutil.c
lib/Components/zlib/zutil.c
+2
-2
lib/Components/zlib/zutil.h
lib/Components/zlib/zutil.h
+2
-2
No files found.
lib/Components/zlib/adler32.c
View file @
8625e5e7
/* adler32.c -- compute the Adler-32 checksum of a data stream
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id: adler32.c,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: adler32.c,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
#include "zlib.h"
...
...
lib/Components/zlib/compress.c
View file @
8625e5e7
/* compress.c -- compress a memory buffer
* Copyright (C) 1995-
1998
Jean-loup Gailly.
* Copyright (C) 1995-
2002
Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id: compress.c,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: compress.c,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
#include "zlib.h"
...
...
lib/Components/zlib/crc32.c
View file @
8625e5e7
/* crc32.c -- compute the CRC-32 of a data stream
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id: crc32.c,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: crc32.c,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
#include "zlib.h"
...
...
lib/Components/zlib/deflate.c
View file @
8625e5e7
/* deflate.c -- compress data using the deflation algorithm
* Copyright (C) 1995-
1998
Jean-loup Gailly.
* Copyright (C) 1995-
2002
Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
@@ -47,12 +47,12 @@
*
*/
/* @(#) $Id: deflate.c,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: deflate.c,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
#include "deflate.h"
const
char
deflate_copyright
[]
=
" deflate 1.1.
3 Copyright 1995-1998
Jean-loup Gailly "
;
" deflate 1.1.
4 Copyright 1995-2002
Jean-loup Gailly "
;
/*
If you use the zlib library in a product, an acknowledgment is welcome
in the documentation of your product. If for some reason you cannot
...
...
@@ -242,7 +242,7 @@ int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
windowBits
=
-
windowBits
;
}
if
(
memLevel
<
1
||
memLevel
>
MAX_MEM_LEVEL
||
method
!=
Z_DEFLATED
||
windowBits
<
8
||
windowBits
>
15
||
level
<
0
||
level
>
9
||
windowBits
<
9
||
windowBits
>
15
||
level
<
0
||
level
>
9
||
strategy
<
0
||
strategy
>
Z_HUFFMAN_ONLY
)
{
return
Z_STREAM_ERROR
;
}
...
...
lib/Components/zlib/deflate.h
View file @
8625e5e7
/* deflate.h -- internal compression state
* Copyright (C) 1995-
1998
Jean-loup Gailly
* Copyright (C) 1995-
2002
Jean-loup Gailly
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
@@ -8,7 +8,7 @@
subject to change. Applications should only use zlib.h.
*/
/* @(#) $Id: deflate.h,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: deflate.h,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
#ifndef _DEFLATE_H
#define _DEFLATE_H
...
...
lib/Components/zlib/gzio.c
View file @
8625e5e7
/* gzio.c -- IO on .gz files
* Copyright (C) 1995-
1998
Jean-loup Gailly.
* Copyright (C) 1995-
2002
Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*
* Compile this file with -DNO_DEFLATE to avoid the compression code.
*/
/* @(#) $Id: gzio.c,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: gzio.c,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
#include <stdio.h>
...
...
lib/Components/zlib/infblock.c
View file @
8625e5e7
/* infblock.c -- interpret and process block types to last block
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
@@ -249,10 +249,12 @@ int r;
&
s
->
sub
.
trees
.
tb
,
s
->
hufts
,
z
);
if
(
t
!=
Z_OK
)
{
ZFREE
(
z
,
s
->
sub
.
trees
.
blens
);
r
=
t
;
if
(
r
==
Z_DATA_ERROR
)
{
ZFREE
(
z
,
s
->
sub
.
trees
.
blens
);
s
->
mode
=
BAD
;
}
LEAVE
}
s
->
sub
.
trees
.
index
=
0
;
...
...
@@ -313,11 +315,13 @@ int r;
t
=
inflate_trees_dynamic
(
257
+
(
t
&
0x1f
),
1
+
((
t
>>
5
)
&
0x1f
),
s
->
sub
.
trees
.
blens
,
&
bl
,
&
bd
,
&
tl
,
&
td
,
s
->
hufts
,
z
);
ZFREE
(
z
,
s
->
sub
.
trees
.
blens
);
if
(
t
!=
Z_OK
)
{
if
(
t
==
(
uInt
)
Z_DATA_ERROR
)
{
ZFREE
(
z
,
s
->
sub
.
trees
.
blens
);
s
->
mode
=
BAD
;
}
r
=
t
;
LEAVE
}
...
...
@@ -329,6 +333,7 @@ int r;
}
s
->
sub
.
decode
.
codes
=
c
;
}
ZFREE
(
z
,
s
->
sub
.
trees
.
blens
);
s
->
mode
=
CODES
;
case
CODES
:
UPDATE
...
...
lib/Components/zlib/infblock.h
View file @
8625e5e7
/* infblock.h -- header to use infblock.c
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
lib/Components/zlib/infcodes.c
View file @
8625e5e7
/* infcodes.c -- process literals and length/distance pairs
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
@@ -196,15 +196,9 @@ int r;
Tracevv
((
stderr
,
"inflate: distance %u
\n
"
,
c
->
sub
.
copy
.
dist
));
c
->
mode
=
COPY
;
case
COPY
:
/* o: copying bytes in window, waiting for space */
#ifndef __TURBOC__
/* Turbo C bug for following expression */
f
=
(
uInt
)(
q
-
s
->
window
)
<
c
->
sub
.
copy
.
dist
?
s
->
end
-
(
c
->
sub
.
copy
.
dist
-
(
q
-
s
->
window
))
:
q
-
c
->
sub
.
copy
.
dist
;
#else
f
=
q
-
c
->
sub
.
copy
.
dist
;
if
((
uInt
)(
q
-
s
->
window
)
<
c
->
sub
.
copy
.
dist
)
f
=
s
->
end
-
(
c
->
sub
.
copy
.
dist
-
(
uInt
)(
q
-
s
->
window
));
#endif
while
(
f
<
s
->
window
)
/* modulo window size-"while" instead */
f
+=
s
->
end
-
s
->
window
;
/* of "if" handles invalid distances */
while
(
c
->
len
)
{
NEEDOUT
...
...
lib/Components/zlib/infcodes.h
View file @
8625e5e7
/* infcodes.h -- header to use infcodes.c
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
lib/Components/zlib/inffast.c
View file @
8625e5e7
/* inffast.c -- process literals and length/distance pairs fast
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
@@ -93,28 +93,41 @@ z_streamp z;
/* do the copy */
m
-=
c
;
if
((
uInt
)(
q
-
s
->
window
)
>=
d
)
/* offset before dest */
{
/* just copy */
r
=
q
-
d
;
*
q
++
=
*
r
++
;
c
--
;
/* minimum count is three, */
*
q
++
=
*
r
++
;
c
--
;
/* so unroll loop a little */
}
else
/* else offset after destination */
r
=
q
-
d
;
if
(
r
<
s
->
window
)
/* wrap if needed */
{
e
=
d
-
(
uInt
)(
q
-
s
->
window
);
/* bytes from offset to end */
r
=
s
->
end
-
e
;
/* pointer to offset */
if
(
c
>
e
)
/* if source crosses, */
do
{
r
+=
s
->
end
-
s
->
window
;
/* force pointer in window */
}
while
(
r
<
s
->
window
);
/* covers invalid distances */
e
=
s
->
end
-
r
;
if
(
c
>
e
)
{
c
-=
e
;
/* copy to end of window
*/
c
-=
e
;
/* wrapped copy
*/
do
{
*
q
++
=
*
r
++
;
*
q
++
=
*
r
++
;
}
while
(
--
e
);
r
=
s
->
window
;
/* copy rest from start of window */
r
=
s
->
window
;
do
{
*
q
++
=
*
r
++
;
}
while
(
--
c
);
}
else
/* normal copy */
{
*
q
++
=
*
r
++
;
c
--
;
*
q
++
=
*
r
++
;
c
--
;
do
{
*
q
++
=
*
r
++
;
}
while
(
--
c
);
}
}
else
/* normal copy */
{
*
q
++
=
*
r
++
;
c
--
;
*
q
++
=
*
r
++
;
c
--
;
do
{
*
q
++
=
*
r
++
;
}
while
(
--
c
);
}
do
{
/* copy all or what's left */
*
q
++
=
*
r
++
;
}
while
(
--
c
);
break
;
}
else
if
((
e
&
64
)
==
0
)
...
...
lib/Components/zlib/inffast.h
View file @
8625e5e7
/* inffast.h -- header to use inffast.c
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
lib/Components/zlib/inflate.c
View file @
8625e5e7
/* inflate.c -- zlib interface to inflate modules
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
lib/Components/zlib/inftrees.c
View file @
8625e5e7
/* inftrees.c -- generate Huffman trees for efficient decoding
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
@@ -11,7 +11,7 @@
#endif
const
char
inflate_copyright
[]
=
" inflate 1.1.
3 Copyright 1995-1998
Mark Adler "
;
" inflate 1.1.
4 Copyright 1995-2002
Mark Adler "
;
/*
If you use the zlib library in a product, an acknowledgment is welcome
in the documentation of your product. If for some reason you cannot
...
...
@@ -104,8 +104,7 @@ uIntf *v; /* working area: values in order of bit length */
/* Given a list of code lengths and a maximum table size, make a set of
tables to decode that set of codes. Return Z_OK on success, Z_BUF_ERROR
if the given code set is incomplete (the tables are still built in this
case), Z_DATA_ERROR if the input is invalid (an over-subscribed set of
lengths), or Z_MEM_ERROR if not enough memory. */
case), or Z_DATA_ERROR if the input is invalid. */
{
uInt
a
;
/* counter for codes of length k */
...
...
@@ -231,7 +230,7 @@ uIntf *v; /* working area: values in order of bit length */
/* allocate new table */
if
(
*
hn
+
z
>
MANY
)
/* (note: doesn't matter for fixed) */
return
Z_
MEM_ERROR
;
/* not enough memory
*/
return
Z_
DATA_ERROR
;
/* overflow of MANY
*/
u
[
h
]
=
q
=
hp
+
*
hn
;
*
hn
+=
z
;
...
...
lib/Components/zlib/inftrees.h
View file @
8625e5e7
/* inftrees.h -- header to use inftrees.c
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
lib/Components/zlib/infutil.c
View file @
8625e5e7
/* inflate_util.c -- data and routines common to blocks and codes
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
lib/Components/zlib/infutil.h
View file @
8625e5e7
/* infutil.h -- types and macros common to blocks and codes
* Copyright (C) 1995-
1998
Mark Adler
* Copyright (C) 1995-
2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
lib/Components/zlib/maketree.c
View file @
8625e5e7
/* maketree.c -- make inffixed.h table for decoding fixed codes
* Copyright (C) 199
8
Mark Adler
* Copyright (C) 199
5-2002
Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
lib/Components/zlib/trees.c
View file @
8625e5e7
/* trees.c -- output deflated data using Huffman coding
* Copyright (C) 1995-
1998
Jean-loup Gailly
* Copyright (C) 1995-
2002
Jean-loup Gailly
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
@@ -29,7 +29,7 @@
* Addison-Wesley, 1983. ISBN 0-201-06672-6.
*/
/* @(#) $Id: trees.c,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: trees.c,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
/* #define GEN_TREES_H */
...
...
lib/Components/zlib/uncompr.c
View file @
8625e5e7
/* uncompr.c -- decompress a memory buffer
* Copyright (C) 1995-
1998
Jean-loup Gailly.
* Copyright (C) 1995-
2002
Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id: uncompr.c,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: uncompr.c,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
#include "zlib.h"
...
...
lib/Components/zlib/zconf.h
View file @
8625e5e7
/* zconf.h -- configuration of the zlib compression library
* Copyright (C) 1995-
1998
Jean-loup Gailly.
* Copyright (C) 1995-
2002
Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id: zconf.h,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: zconf.h,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
#ifndef _ZCONF_H
#define _ZCONF_H
...
...
lib/Components/zlib/zlib.h
View file @
8625e5e7
/* zlib.h -- interface of the 'zlib' general purpose compression library
version 1.1.
3, July 9th, 1998
version 1.1.
4, March 11th, 2002
Copyright (C) 1995-
1998
Jean-loup Gailly and Mark Adler
Copyright (C) 1995-
2002
Jean-loup Gailly and Mark Adler
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
...
...
@@ -37,7 +37,7 @@
extern
"C"
{
#endif
#define ZLIB_VERSION "1.1.
3
"
#define ZLIB_VERSION "1.1.
4
"
/*
The 'zlib' compression library provides in-memory compression and
...
...
lib/Components/zlib/zutil.c
View file @
8625e5e7
/* zutil.c -- target dependent utility functions for the compression library
* Copyright (C) 1995-
1998
Jean-loup Gailly.
* Copyright (C) 1995-
2002
Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id: zutil.c,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: zutil.c,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
#include "zutil.h"
...
...
lib/Components/zlib/zutil.h
View file @
8625e5e7
/* zutil.h -- internal interface and configuration of the compression library
* Copyright (C) 1995-
1998
Jean-loup Gailly.
* Copyright (C) 1995-
2002
Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
...
...
@@ -8,7 +8,7 @@
subject to change. Applications should only use zlib.h.
*/
/* @(#) $Id: zutil.h,v 1.
2 2001/06/04 19:41:16
shane Exp $ */
/* @(#) $Id: zutil.h,v 1.
3 2002/03/11 22:22:12
shane Exp $ */
#ifndef _Z_UTIL_H
#define _Z_UTIL_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment