Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
linux
Commits
aa12a7e3
Commit
aa12a7e3
authored
Jun 05, 2003
by
Jörn Engel
Committed by
Linus Torvalds
Jun 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] zlib cleanup: ZEXTERN
This one was just simple s/ZEXTERN/extern/g.
parent
a4f5516f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
29 deletions
+26
-29
include/linux/zconf.h
include/linux/zconf.h
+0
-3
include/linux/zlib.h
include/linux/zlib.h
+25
-25
lib/zlib_deflate/deflate.c
lib/zlib_deflate/deflate.c
+1
-1
No files found.
include/linux/zconf.h
View file @
aa12a7e3
...
...
@@ -45,9 +45,6 @@
#ifndef ZEXPORTVA
# define ZEXPORTVA
#endif
#ifndef ZEXTERN
# define ZEXTERN extern
#endif
typedef
unsigned
char
Byte
;
/* 8 bits */
typedef
unsigned
int
uInt
;
/* 16 bits or more */
...
...
include/linux/zlib.h
View file @
aa12a7e3
...
...
@@ -161,14 +161,14 @@ typedef z_stream *z_streamp;
/* basic functions */
ZEXTERN
const
char
*
ZEXPORT
zlib_zlibVersion
OF
((
void
));
extern
const
char
*
ZEXPORT
zlib_zlibVersion
OF
((
void
));
/* The application can compare zlibVersion and ZLIB_VERSION for consistency.
If the first character differs, the library code actually used is
not compatible with the zlib.h header file used by the application.
This check is automatically made by deflateInit and inflateInit.
*/
ZEXTERN
int
ZEXPORT
zlib_deflate_workspacesize
OF
((
void
));
extern
int
ZEXPORT
zlib_deflate_workspacesize
OF
((
void
));
/*
Returns the number of bytes that needs to be allocated for a per-
stream workspace. A pointer to this number of bytes should be
...
...
@@ -176,7 +176,7 @@ ZEXTERN int ZEXPORT zlib_deflate_workspacesize OF((void));
*/
/*
ZEXTERN
int ZEXPORT deflateInit OF((z_streamp strm, int level));
extern
int ZEXPORT deflateInit OF((z_streamp strm, int level));
Initializes the internal stream state for compression. The fields
zalloc, zfree and opaque must be initialized before by the caller.
...
...
@@ -198,7 +198,7 @@ ZEXTERN int ZEXPORT deflateInit OF((z_streamp strm, int level));
*/
ZEXTERN
int
ZEXPORT
zlib_deflate
OF
((
z_streamp
strm
,
int
flush
));
extern
int
ZEXPORT
zlib_deflate
OF
((
z_streamp
strm
,
int
flush
));
/*
deflate compresses as much data as possible, and stops when the input
buffer becomes empty or the output buffer becomes full. It may introduce some
...
...
@@ -276,7 +276,7 @@ ZEXTERN int ZEXPORT zlib_deflate OF((z_streamp strm, int flush));
*/
ZEXTERN
int
ZEXPORT
zlib_deflateEnd
OF
((
z_streamp
strm
));
extern
int
ZEXPORT
zlib_deflateEnd
OF
((
z_streamp
strm
));
/*
All dynamically allocated data structures for this stream are freed.
This function discards any unprocessed input and does not flush any
...
...
@@ -290,7 +290,7 @@ ZEXTERN int ZEXPORT zlib_deflateEnd OF((z_streamp strm));
*/
ZEXTERN
int
ZEXPORT
zlib_inflate_workspacesize
OF
((
void
));
extern
int
ZEXPORT
zlib_inflate_workspacesize
OF
((
void
));
/*
Returns the number of bytes that needs to be allocated for a per-
stream workspace. A pointer to this number of bytes should be
...
...
@@ -298,7 +298,7 @@ ZEXTERN int ZEXPORT zlib_inflate_workspacesize OF((void));
*/
/*
ZEXTERN
int ZEXPORT zlib_inflateInit OF((z_streamp strm));
extern
int ZEXPORT zlib_inflateInit OF((z_streamp strm));
Initializes the internal stream state for decompression. The fields
next_in, avail_in, and workspace must be initialized before by
...
...
@@ -318,7 +318,7 @@ ZEXTERN int ZEXPORT zlib_inflateInit OF((z_streamp strm));
*/
ZEXTERN
int
ZEXPORT
zlib_inflate
OF
((
z_streamp
strm
,
int
flush
));
extern
int
ZEXPORT
zlib_inflate
OF
((
z_streamp
strm
,
int
flush
));
/*
inflate decompresses as much data as possible, and stops when the input
buffer becomes empty or the output buffer becomes full. It may some
...
...
@@ -387,7 +387,7 @@ ZEXTERN int ZEXPORT zlib_inflate OF((z_streamp strm, int flush));
*/
ZEXTERN
int
ZEXPORT
zlib_inflateEnd
OF
((
z_streamp
strm
));
extern
int
ZEXPORT
zlib_inflateEnd
OF
((
z_streamp
strm
));
/*
All dynamically allocated data structures for this stream are freed.
This function discards any unprocessed input and does not flush any
...
...
@@ -405,7 +405,7 @@ ZEXTERN int ZEXPORT zlib_inflateEnd OF((z_streamp strm));
*/
/*
ZEXTERN
int ZEXPORT deflateInit2 OF((z_streamp strm,
extern
int ZEXPORT deflateInit2 OF((z_streamp strm,
int level,
int method,
int windowBits,
...
...
@@ -448,7 +448,7 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm,
not perform any compression: this will be done by deflate().
*/
ZEXTERN
int
ZEXPORT
zlib_deflateSetDictionary
OF
((
z_streamp
strm
,
extern
int
ZEXPORT
zlib_deflateSetDictionary
OF
((
z_streamp
strm
,
const
Byte
*
dictionary
,
uInt
dictLength
));
/*
...
...
@@ -484,7 +484,7 @@ ZEXTERN int ZEXPORT zlib_deflateSetDictionary OF((z_streamp strm,
perform any compression: this will be done by deflate().
*/
ZEXTERN
int
ZEXPORT
zlib_deflateCopy
OF
((
z_streamp
dest
,
extern
int
ZEXPORT
zlib_deflateCopy
OF
((
z_streamp
dest
,
z_streamp
source
));
/*
Sets the destination stream as a complete copy of the source stream.
...
...
@@ -502,7 +502,7 @@ ZEXTERN int ZEXPORT zlib_deflateCopy OF((z_streamp dest,
destination.
*/
ZEXTERN
int
ZEXPORT
zlib_deflateReset
OF
((
z_streamp
strm
));
extern
int
ZEXPORT
zlib_deflateReset
OF
((
z_streamp
strm
));
/*
This function is equivalent to deflateEnd followed by deflateInit,
but does not free and reallocate all the internal compression state.
...
...
@@ -513,7 +513,7 @@ ZEXTERN int ZEXPORT zlib_deflateReset OF((z_streamp strm));
stream state was inconsistent (such as zalloc or state being NULL).
*/
ZEXTERN
int
ZEXPORT
zlib_deflateParams
OF
((
z_streamp
strm
,
extern
int
ZEXPORT
zlib_deflateParams
OF
((
z_streamp
strm
,
int
level
,
int
strategy
));
/*
...
...
@@ -535,7 +535,7 @@ ZEXTERN int ZEXPORT zlib_deflateParams OF((z_streamp strm,
*/
/*
ZEXTERN
int ZEXPORT inflateInit2 OF((z_streamp strm,
extern
int ZEXPORT inflateInit2 OF((z_streamp strm,
int windowBits));
This is another version of inflateInit with an extra parameter. The
...
...
@@ -557,7 +557,7 @@ ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm,
modified, but next_out and avail_out are unchanged.)
*/
ZEXTERN
int
ZEXPORT
zlib_inflateSetDictionary
OF
((
z_streamp
strm
,
extern
int
ZEXPORT
zlib_inflateSetDictionary
OF
((
z_streamp
strm
,
const
Byte
*
dictionary
,
uInt
dictLength
));
/*
...
...
@@ -576,7 +576,7 @@ ZEXTERN int ZEXPORT zlib_inflateSetDictionary OF((z_streamp strm,
inflate().
*/
ZEXTERN
int
ZEXPORT
zlib_inflateSync
OF
((
z_streamp
strm
));
extern
int
ZEXPORT
zlib_inflateSync
OF
((
z_streamp
strm
));
/*
Skips invalid compressed data until a full flush point (see above the
description of deflate with Z_FULL_FLUSH) can be found, or until all
...
...
@@ -591,7 +591,7 @@ ZEXTERN int ZEXPORT zlib_inflateSync OF((z_streamp strm));
until success or end of the input data.
*/
ZEXTERN
int
ZEXPORT
zlib_inflateReset
OF
((
z_streamp
strm
));
extern
int
ZEXPORT
zlib_inflateReset
OF
((
z_streamp
strm
));
/*
This function is equivalent to inflateEnd followed by inflateInit,
but does not free and reallocate all the internal decompression state.
...
...
@@ -615,15 +615,15 @@ extern int ZEXPORT zlib_inflateIncomp OF((z_stream *strm));
/* deflateInit and inflateInit are macros to allow checking the zlib version
* and the compiler's view of z_stream:
*/
ZEXTERN
int
ZEXPORT
zlib_deflateInit_
OF
((
z_streamp
strm
,
int
level
,
extern
int
ZEXPORT
zlib_deflateInit_
OF
((
z_streamp
strm
,
int
level
,
const
char
*
version
,
int
stream_size
));
ZEXTERN
int
ZEXPORT
zlib_inflateInit_
OF
((
z_streamp
strm
,
extern
int
ZEXPORT
zlib_inflateInit_
OF
((
z_streamp
strm
,
const
char
*
version
,
int
stream_size
));
ZEXTERN
int
ZEXPORT
zlib_deflateInit2_
OF
((
z_streamp
strm
,
int
level
,
int
method
,
extern
int
ZEXPORT
zlib_deflateInit2_
OF
((
z_streamp
strm
,
int
level
,
int
method
,
int
windowBits
,
int
memLevel
,
int
strategy
,
const
char
*
version
,
int
stream_size
));
ZEXTERN
int
ZEXPORT
zlib_inflateInit2_
OF
((
z_streamp
strm
,
int
windowBits
,
extern
int
ZEXPORT
zlib_inflateInit2_
OF
((
z_streamp
strm
,
int
windowBits
,
const
char
*
version
,
int
stream_size
));
#define zlib_deflateInit(strm, level) \
zlib_deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream))
...
...
@@ -640,9 +640,9 @@ ZEXTERN int ZEXPORT zlib_inflateInit2_ OF((z_streamp strm, int windowBits,
struct
internal_state
{
int
dummy
;};
/* hack for buggy compilers */
#endif
ZEXTERN
const
char
*
ZEXPORT
zlib_zError
OF
((
int
err
));
ZEXTERN
int
ZEXPORT
zlib_inflateSyncPoint
OF
((
z_streamp
z
));
ZEXTERN
const
uLong
*
ZEXPORT
zlib_get_crc_table
OF
((
void
));
extern
const
char
*
ZEXPORT
zlib_zError
OF
((
int
err
));
extern
int
ZEXPORT
zlib_inflateSyncPoint
OF
((
z_streamp
z
));
extern
const
uLong
*
ZEXPORT
zlib_get_crc_table
OF
((
void
));
#ifdef __cplusplus
}
...
...
lib/zlib_deflate/deflate.c
View file @
aa12a7e3
...
...
@@ -1252,7 +1252,7 @@ local block_state deflate_slow(s, flush)
return
flush
==
Z_FINISH
?
finish_done
:
block_done
;
}
ZEXTERN
int
ZEXPORT
zlib_deflate_workspacesize
()
extern
int
ZEXPORT
zlib_deflate_workspacesize
()
{
return
sizeof
(
deflate_workspace
);
}
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