Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: third_party/zlib/zlib.h

Issue 10874087: Merge 151720 - net: workaround compression leaks (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/zlib/mixed-source.patch ('k') | third_party/zlib/zlib.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* zlib.h -- interface of the 'zlib' general purpose compression library 1 /* zlib.h -- interface of the 'zlib' general purpose compression library
2 version 1.2.5, April 19th, 2010 2 version 1.2.5, April 19th, 2010
3 3
4 Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler 4 Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
5 5
6 This software is provided 'as-is', without any express or implied 6 This software is provided 'as-is', without any express or implied
7 warranty. In no event will the authors be held liable for any damages 7 warranty. In no event will the authors be held liable for any damages
8 arising from the use of this software. 8 arising from the use of this software.
9 9
10 Permission is granted to anyone to use this software for any purpose, 10 Permission is granted to anyone to use this software for any purpose,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 char *msg; /* last error message, NULL if no error */ 94 char *msg; /* last error message, NULL if no error */
95 struct internal_state FAR *state; /* not visible by applications */ 95 struct internal_state FAR *state; /* not visible by applications */
96 96
97 alloc_func zalloc; /* used to allocate the internal state */ 97 alloc_func zalloc; /* used to allocate the internal state */
98 free_func zfree; /* used to free the internal state */ 98 free_func zfree; /* used to free the internal state */
99 voidpf opaque; /* private data object passed to zalloc and zfree */ 99 voidpf opaque; /* private data object passed to zalloc and zfree */
100 100
101 int data_type; /* best guess about the data type: binary or text */ 101 int data_type; /* best guess about the data type: binary or text */
102 uLong adler; /* adler32 value of the uncompressed data */ 102 uLong adler; /* adler32 value of the uncompressed data */
103 uLong reserved; /* reserved for future use */ 103 uLong reserved; /* reserved for future use */
104 int clas;
104 } z_stream; 105 } z_stream;
105 106
106 typedef z_stream FAR *z_streamp; 107 typedef z_stream FAR *z_streamp;
107 108
108 /* 109 /*
109 gzip header information passed to and from zlib routines. See RFC 1952 110 gzip header information passed to and from zlib routines. See RFC 1952
110 for more details on the meanings of these fields. 111 for more details on the meanings of these fields.
111 */ 112 */
112 typedef struct gz_header_s { 113 typedef struct gz_header_s {
113 int text; /* true if compressed data believed to be text */ 114 int text; /* true if compressed data believed to be text */
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 #define Z_TEXT 1 201 #define Z_TEXT 1
201 #define Z_ASCII Z_TEXT /* for compatibility with 1.2.2 and earlier */ 202 #define Z_ASCII Z_TEXT /* for compatibility with 1.2.2 and earlier */
202 #define Z_UNKNOWN 2 203 #define Z_UNKNOWN 2
203 /* Possible values of the data_type field (though see inflate()) */ 204 /* Possible values of the data_type field (though see inflate()) */
204 205
205 #define Z_DEFLATED 8 206 #define Z_DEFLATED 8
206 /* The deflate compression method (the only one supported in this version) */ 207 /* The deflate compression method (the only one supported in this version) */
207 208
208 #define Z_NULL 0 /* for initializing zalloc, zfree, opaque */ 209 #define Z_NULL 0 /* for initializing zalloc, zfree, opaque */
209 210
211 #define Z_CLASS_STANDARD 0
212 #define Z_CLASS_COOKIE 1
213 #define Z_CLASS_HUFFMAN_ONLY 2
214
210 #define zlib_version zlibVersion() 215 #define zlib_version zlibVersion()
211 /* for compatibility with versions < 1.0.2 */ 216 /* for compatibility with versions < 1.0.2 */
212 217
213 218
214 /* basic functions */ 219 /* basic functions */
215 220
216 ZEXTERN const char * ZEXPORT zlibVersion OF((void)); 221 ZEXTERN const char * ZEXPORT zlibVersion OF((void));
217 /* The application can compare zlibVersion and ZLIB_VERSION for consistency. 222 /* The application can compare zlibVersion and ZLIB_VERSION for consistency.
218 If the first character differs, the library code actually used is not 223 If the first character differs, the library code actually used is not
219 compatible with the zlib.h header file used by the application. This check 224 compatible with the zlib.h header file used by the application. This check
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 # define adler32_combine adler32_combine64 1585 # define adler32_combine adler32_combine64
1581 # define crc32_combine crc32_combine64 1586 # define crc32_combine crc32_combine64
1582 # endif 1587 # endif
1583 # ifdef _LARGEFILE64_SOURCE 1588 # ifdef _LARGEFILE64_SOURCE
1584 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 1589 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
1585 ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); 1590 ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
1586 ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile)); 1591 ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
1587 ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); 1592 ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
1588 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); 1593 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
1589 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); 1594 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
1595 # else
1596 ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
1597 ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int));
1598 ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
1599 ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
1600 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1601 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1590 # endif 1602 # endif
1591 #else 1603 #else
1592 ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *)); 1604 ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
1593 ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int)); 1605 ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int));
1594 ZEXTERN z_off_t ZEXPORT gztell OF((gzFile)); 1606 ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
1595 ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile)); 1607 ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
1596 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t)); 1608 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1597 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); 1609 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1598 #endif 1610 #endif
1599 1611
1600 /* hack for buggy compilers */ 1612 /* hack for buggy compilers */
1601 #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL) 1613 #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
1602 struct internal_state {int dummy;}; 1614 struct internal_state {int dummy;};
1603 #endif 1615 #endif
1604 1616
1605 /* undocumented functions */ 1617 /* undocumented functions */
1606 ZEXTERN const char * ZEXPORT zError OF((int)); 1618 ZEXTERN const char * ZEXPORT zError OF((int));
1607 ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp)); 1619 ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp));
1608 ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void)); 1620 ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void));
1609 ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int)); 1621 ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int));
1610 1622
1611 #ifdef __cplusplus 1623 #ifdef __cplusplus
1612 } 1624 }
1613 #endif 1625 #endif
1614 1626
1615 #endif /* ZLIB_H */ 1627 #endif /* ZLIB_H */
OLDNEW
« no previous file with comments | « third_party/zlib/mixed-source.patch ('k') | third_party/zlib/zlib.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698