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

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

Issue 2079313002: Revert of Update Zlib to version 1.2.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « third_party/zlib/uncompr.c ('k') | third_party/zlib/zlib.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* zconf.h -- configuration of the zlib compression library 1 /* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-2013 Jean-loup Gailly. 2 * Copyright (C) 1995-2010 Jean-loup Gailly.
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
6 /* @(#) $Id$ */ 6 /* @(#) $Id$ */
7 7
8 #ifndef ZCONF_H 8 #ifndef ZCONF_H
9 #define ZCONF_H 9 #define ZCONF_H
10 10
11 /* This include does prefixing as below, but with an updated set of names */ 11 /* This include does prefixing as below, but with an updated set of names */
12 #include "mozzconf.h" 12 #include "mozzconf.h"
13 13
14 /* 14 /*
15 * If you *really* need a unique prefix for all types and library functions, 15 * If you *really* need a unique prefix for all types and library functions,
16 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it. 16 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
17 * Even better than compiling with -DZ_PREFIX would be to use configure to set 17 * Even better than compiling with -DZ_PREFIX would be to use configure to set
18 * this permanently in zconf.h using "./configure --zprefix". 18 * this permanently in zconf.h using "./configure --zprefix".
19 */ 19 */
20 #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ 20 #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */
21 # define Z_PREFIX_SET
22 21
23 /* all linked symbols */ 22 /* all linked symbols */
24 # define _dist_code z__dist_code 23 # define _dist_code z__dist_code
25 # define _length_code z__length_code 24 # define _length_code z__length_code
26 # define _tr_align z__tr_align 25 # define _tr_align z__tr_align
27 # define _tr_flush_bits z__tr_flush_bits
28 # define _tr_flush_block z__tr_flush_block 26 # define _tr_flush_block z__tr_flush_block
29 # define _tr_init z__tr_init 27 # define _tr_init z__tr_init
30 # define _tr_stored_block z__tr_stored_block 28 # define _tr_stored_block z__tr_stored_block
31 # define _tr_tally z__tr_tally 29 # define _tr_tally z__tr_tally
32 # define adler32 z_adler32 30 # define adler32 z_adler32
33 # define adler32_combine z_adler32_combine 31 # define adler32_combine z_adler32_combine
34 # define adler32_combine64 z_adler32_combine64 32 # define adler32_combine64 z_adler32_combine64
35 # ifndef Z_SOLO 33 # define compress z_compress
36 # define compress z_compress 34 # define compress2 z_compress2
37 # define compress2 z_compress2 35 # define compressBound z_compressBound
38 # define compressBound z_compressBound
39 # endif
40 # define crc32 z_crc32 36 # define crc32 z_crc32
41 # define crc32_combine z_crc32_combine 37 # define crc32_combine z_crc32_combine
42 # define crc32_combine64 z_crc32_combine64 38 # define crc32_combine64 z_crc32_combine64
43 # define deflate z_deflate 39 # define deflate z_deflate
44 # define deflateBound z_deflateBound 40 # define deflateBound z_deflateBound
45 # define deflateCopy z_deflateCopy 41 # define deflateCopy z_deflateCopy
46 # define deflateEnd z_deflateEnd 42 # define deflateEnd z_deflateEnd
47 # define deflateInit2_ z_deflateInit2_ 43 # define deflateInit2_ z_deflateInit2_
48 # define deflateInit_ z_deflateInit_ 44 # define deflateInit_ z_deflateInit_
49 # define deflateParams z_deflateParams 45 # define deflateParams z_deflateParams
50 # define deflatePending z_deflatePending
51 # define deflatePrime z_deflatePrime 46 # define deflatePrime z_deflatePrime
52 # define deflateReset z_deflateReset 47 # define deflateReset z_deflateReset
53 # define deflateResetKeep z_deflateResetKeep
54 # define deflateSetDictionary z_deflateSetDictionary 48 # define deflateSetDictionary z_deflateSetDictionary
55 # define deflateSetHeader z_deflateSetHeader 49 # define deflateSetHeader z_deflateSetHeader
56 # define deflateTune z_deflateTune 50 # define deflateTune z_deflateTune
57 # define deflate_copyright z_deflate_copyright 51 # define deflate_copyright z_deflate_copyright
58 # define get_crc_table z_get_crc_table 52 # define get_crc_table z_get_crc_table
59 # ifndef Z_SOLO 53 # define gz_error z_gz_error
60 # define gz_error z_gz_error 54 # define gz_intmax z_gz_intmax
61 # define gz_intmax z_gz_intmax 55 # define gz_strwinerror z_gz_strwinerror
62 # define gz_strwinerror z_gz_strwinerror 56 # define gzbuffer z_gzbuffer
63 # define gzbuffer z_gzbuffer 57 # define gzclearerr z_gzclearerr
64 # define gzclearerr z_gzclearerr 58 # define gzclose z_gzclose
65 # define gzclose z_gzclose 59 # define gzclose_r z_gzclose_r
66 # define gzclose_r z_gzclose_r 60 # define gzclose_w z_gzclose_w
67 # define gzclose_w z_gzclose_w 61 # define gzdirect z_gzdirect
68 # define gzdirect z_gzdirect 62 # define gzdopen z_gzdopen
69 # define gzdopen z_gzdopen 63 # define gzeof z_gzeof
70 # define gzeof z_gzeof 64 # define gzerror z_gzerror
71 # define gzerror z_gzerror 65 # define gzflush z_gzflush
72 # define gzflush z_gzflush 66 # define gzgetc z_gzgetc
73 # define gzgetc z_gzgetc 67 # define gzgets z_gzgets
74 # define gzgetc_ z_gzgetc_ 68 # define gzoffset z_gzoffset
75 # define gzgets z_gzgets 69 # define gzoffset64 z_gzoffset64
76 # define gzoffset z_gzoffset 70 # define gzopen z_gzopen
77 # define gzoffset64 z_gzoffset64 71 # define gzopen64 z_gzopen64
78 # define gzopen z_gzopen 72 # define gzprintf z_gzprintf
79 # define gzopen64 z_gzopen64 73 # define gzputc z_gzputc
80 # ifdef _WIN32 74 # define gzputs z_gzputs
81 # define gzopen_w z_gzopen_w 75 # define gzread z_gzread
82 # endif 76 # define gzrewind z_gzrewind
83 # define gzprintf z_gzprintf 77 # define gzseek z_gzseek
84 # define gzvprintf z_gzvprintf 78 # define gzseek64 z_gzseek64
85 # define gzputc z_gzputc 79 # define gzsetparams z_gzsetparams
86 # define gzputs z_gzputs 80 # define gztell z_gztell
87 # define gzread z_gzread 81 # define gztell64 z_gztell64
88 # define gzrewind z_gzrewind 82 # define gzungetc z_gzungetc
89 # define gzseek z_gzseek 83 # define gzwrite z_gzwrite
90 # define gzseek64 z_gzseek64
91 # define gzsetparams z_gzsetparams
92 # define gztell z_gztell
93 # define gztell64 z_gztell64
94 # define gzungetc z_gzungetc
95 # define gzwrite z_gzwrite
96 # endif
97 # define inflate z_inflate 84 # define inflate z_inflate
98 # define inflateBack z_inflateBack 85 # define inflateBack z_inflateBack
99 # define inflateBackEnd z_inflateBackEnd 86 # define inflateBackEnd z_inflateBackEnd
100 # define inflateBackInit_ z_inflateBackInit_ 87 # define inflateBackInit_ z_inflateBackInit_
101 # define inflateCopy z_inflateCopy 88 # define inflateCopy z_inflateCopy
102 # define inflateEnd z_inflateEnd 89 # define inflateEnd z_inflateEnd
103 # define inflateGetHeader z_inflateGetHeader 90 # define inflateGetHeader z_inflateGetHeader
104 # define inflateInit2_ z_inflateInit2_ 91 # define inflateInit2_ z_inflateInit2_
105 # define inflateInit_ z_inflateInit_ 92 # define inflateInit_ z_inflateInit_
106 # define inflateMark z_inflateMark 93 # define inflateMark z_inflateMark
107 # define inflatePrime z_inflatePrime 94 # define inflatePrime z_inflatePrime
108 # define inflateReset z_inflateReset 95 # define inflateReset z_inflateReset
109 # define inflateReset2 z_inflateReset2 96 # define inflateReset2 z_inflateReset2
110 # define inflateSetDictionary z_inflateSetDictionary 97 # define inflateSetDictionary z_inflateSetDictionary
111 # define inflateGetDictionary z_inflateGetDictionary
112 # define inflateSync z_inflateSync 98 # define inflateSync z_inflateSync
113 # define inflateSyncPoint z_inflateSyncPoint 99 # define inflateSyncPoint z_inflateSyncPoint
114 # define inflateUndermine z_inflateUndermine 100 # define inflateUndermine z_inflateUndermine
115 # define inflateResetKeep z_inflateResetKeep
116 # define inflate_copyright z_inflate_copyright 101 # define inflate_copyright z_inflate_copyright
117 # define inflate_fast z_inflate_fast 102 # define inflate_fast z_inflate_fast
118 # define inflate_table z_inflate_table 103 # define inflate_table z_inflate_table
119 # ifndef Z_SOLO 104 # define uncompress z_uncompress
120 # define uncompress z_uncompress
121 # endif
122 # define zError z_zError 105 # define zError z_zError
123 # ifndef Z_SOLO 106 # define zcalloc z_zcalloc
124 # define zcalloc z_zcalloc 107 # define zcfree z_zcfree
125 # define zcfree z_zcfree
126 # endif
127 # define zlibCompileFlags z_zlibCompileFlags 108 # define zlibCompileFlags z_zlibCompileFlags
128 # define zlibVersion z_zlibVersion 109 # define zlibVersion z_zlibVersion
129 110
130 /* all zlib typedefs in zlib.h and zconf.h */ 111 /* all zlib typedefs in zlib.h and zconf.h */
131 # define Byte z_Byte 112 # define Byte z_Byte
132 # define Bytef z_Bytef 113 # define Bytef z_Bytef
133 # define alloc_func z_alloc_func 114 # define alloc_func z_alloc_func
134 # define charf z_charf 115 # define charf z_charf
135 # define free_func z_free_func 116 # define free_func z_free_func
136 # ifndef Z_SOLO 117 # define gzFile z_gzFile
137 # define gzFile z_gzFile
138 # endif
139 # define gz_header z_gz_header 118 # define gz_header z_gz_header
140 # define gz_headerp z_gz_headerp 119 # define gz_headerp z_gz_headerp
141 # define in_func z_in_func 120 # define in_func z_in_func
142 # define intf z_intf 121 # define intf z_intf
143 # define out_func z_out_func 122 # define out_func z_out_func
144 # define uInt z_uInt 123 # define uInt z_uInt
145 # define uIntf z_uIntf 124 # define uIntf z_uIntf
146 # define uLong z_uLong 125 # define uLong z_uLong
147 # define uLongf z_uLongf 126 # define uLongf z_uLongf
148 # define voidp z_voidp 127 # define voidp z_voidp
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 #if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */ 193 #if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
215 # define STDC 194 # define STDC
216 #endif 195 #endif
217 196
218 #ifndef STDC 197 #ifndef STDC
219 # ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ 198 # ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
220 # define const /* note: need a more gentle solution here */ 199 # define const /* note: need a more gentle solution here */
221 # endif 200 # endif
222 #endif 201 #endif
223 202
224 #if defined(ZLIB_CONST) && !defined(z_const)
225 # define z_const const
226 #else
227 # define z_const
228 #endif
229
230 /* Some Mac compilers merge all .h files incorrectly: */ 203 /* Some Mac compilers merge all .h files incorrectly: */
231 #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__) 204 #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
232 # define NO_DUMMY_DECL 205 # define NO_DUMMY_DECL
233 #endif 206 #endif
234 207
235 /* Maximum value for memLevel in deflateInit2 */ 208 /* Maximum value for memLevel in deflateInit2 */
236 #ifndef MAX_MEM_LEVEL 209 #ifndef MAX_MEM_LEVEL
237 # ifdef MAXSEG_64K 210 # ifdef MAXSEG_64K
238 # define MAX_MEM_LEVEL 8 211 # define MAX_MEM_LEVEL 8
239 # else 212 # else
(...skipping 26 matching lines...) Expand all
266 /* Type declarations */ 239 /* Type declarations */
267 240
268 #ifndef OF /* function prototypes */ 241 #ifndef OF /* function prototypes */
269 # ifdef STDC 242 # ifdef STDC
270 # define OF(args) args 243 # define OF(args) args
271 # else 244 # else
272 # define OF(args) () 245 # define OF(args) ()
273 # endif 246 # endif
274 #endif 247 #endif
275 248
276 #ifndef Z_ARG /* function prototypes for stdarg */
277 # if defined(STDC) || defined(Z_HAVE_STDARG_H)
278 # define Z_ARG(args) args
279 # else
280 # define Z_ARG(args) ()
281 # endif
282 #endif
283
284 /* The following definitions for FAR are needed only for MSDOS mixed 249 /* The following definitions for FAR are needed only for MSDOS mixed
285 * model programming (small or medium model with some far allocations). 250 * model programming (small or medium model with some far allocations).
286 * This was tested only with MSC; for other MSDOS compilers you may have 251 * This was tested only with MSC; for other MSDOS compilers you may have
287 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model, 252 * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
288 * just define FAR to be empty. 253 * just define FAR to be empty.
289 */ 254 */
290 #ifdef SYS16BIT 255 #ifdef SYS16BIT
291 # if defined(M_I86SM) || defined(M_I86MM) 256 # if defined(M_I86SM) || defined(M_I86MM)
292 /* MSC small or medium model */ 257 /* MSC small or medium model */
293 # define SMALL_MEDIUM 258 # define SMALL_MEDIUM
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 #ifdef STDC 352 #ifdef STDC
388 typedef void const *voidpc; 353 typedef void const *voidpc;
389 typedef void FAR *voidpf; 354 typedef void FAR *voidpf;
390 typedef void *voidp; 355 typedef void *voidp;
391 #else 356 #else
392 typedef Byte const *voidpc; 357 typedef Byte const *voidpc;
393 typedef Byte FAR *voidpf; 358 typedef Byte FAR *voidpf;
394 typedef Byte *voidp; 359 typedef Byte *voidp;
395 #endif 360 #endif
396 361
397 #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
398 # include <limits.h>
399 # if (UINT_MAX == 0xffffffffUL)
400 # define Z_U4 unsigned
401 # elif (ULONG_MAX == 0xffffffffUL)
402 # define Z_U4 unsigned long
403 # elif (USHRT_MAX == 0xffffffffUL)
404 # define Z_U4 unsigned short
405 # endif
406 #endif
407
408 #ifdef Z_U4
409 typedef Z_U4 z_crc_t;
410 #else
411 typedef unsigned long z_crc_t;
412 #endif
413
414 #if !defined(_WIN32) 362 #if !defined(_WIN32)
415 # define Z_HAVE_UNISTD_H 363 # define Z_HAVE_UNISTD_H
416 #endif 364 #endif
417 365
418 #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
419 # define Z_HAVE_STDARG_H
420 #endif
421
422 #ifdef STDC 366 #ifdef STDC
423 # ifndef Z_SOLO 367 # include <sys/types.h> /* for off_t */
424 # include <sys/types.h> /* for off_t */
425 # endif
426 #endif
427
428 #if defined(STDC) || defined(Z_HAVE_STDARG_H)
429 # ifndef Z_SOLO
430 # include <stdarg.h> /* for va_list */
431 # endif
432 #endif
433
434 #ifdef _WIN32
435 # ifndef Z_SOLO
436 # include <stddef.h> /* for wchar_t */
437 # endif
438 #endif 368 #endif
439 369
440 /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and 370 /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
441 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even 371 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
442 * though the former does not conform to the LFS document), but considering 372 * though the former does not conform to the LFS document), but considering
443 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as 373 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
444 * equivalently requesting no 64-bit operations 374 * equivalently requesting no 64-bit operations
445 */ 375 */
446 #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 376 #if -_LARGEFILE64_SOURCE - -1 == 1
447 # undef _LARGEFILE64_SOURCE 377 # undef _LARGEFILE64_SOURCE
448 #endif 378 #endif
449 379
450 #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) 380 #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
451 # define Z_HAVE_UNISTD_H 381 # include <unistd.h> /* for SEEK_* and off_t */
452 #endif 382 # ifdef VMS
453 #ifndef Z_SOLO 383 # include <unixio.h> /* for off_t */
454 # if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) 384 # endif
455 # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ 385 # ifndef z_off_t
456 # ifdef VMS 386 # define z_off_t off_t
457 # include <unixio.h> /* for off_t */
458 # endif
459 # ifndef z_off_t
460 # define z_off_t off_t
461 # endif
462 # endif 387 # endif
463 #endif 388 #endif
464 389
465 #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 390 #ifndef SEEK_SET
466 # define Z_LFS64
467 #endif
468
469 #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
470 # define Z_LARGE64
471 #endif
472
473 #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
474 # define Z_WANT64
475 #endif
476
477 #if !defined(SEEK_SET) && !defined(Z_SOLO)
478 # define SEEK_SET 0 /* Seek from beginning of file. */ 391 # define SEEK_SET 0 /* Seek from beginning of file. */
479 # define SEEK_CUR 1 /* Seek from current position. */ 392 # define SEEK_CUR 1 /* Seek from current position. */
480 # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ 393 # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
481 #endif 394 #endif
482 395
483 #ifndef z_off_t 396 #ifndef z_off_t
484 # define z_off_t long 397 # define z_off_t long
485 #endif 398 #endif
486 399
487 #if !defined(_WIN32) && defined(Z_LARGE64) 400 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
488 # define z_off64_t off64_t 401 # define z_off64_t off64_t
489 #else 402 #else
490 # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) 403 # define z_off64_t z_off_t
491 # define z_off64_t __int64 404 #endif
492 # else 405
493 # define z_off64_t z_off_t 406 #if defined(__OS400__)
494 # endif 407 # define NO_vsnprintf
408 #endif
409
410 #if defined(__MVS__)
411 # define NO_vsnprintf
495 #endif 412 #endif
496 413
497 /* MVS linker does not support external names larger than 8 bytes */ 414 /* MVS linker does not support external names larger than 8 bytes */
498 #if defined(__MVS__) 415 #if defined(__MVS__)
499 #pragma map(deflateInit_,"DEIN") 416 #pragma map(deflateInit_,"DEIN")
500 #pragma map(deflateInit2_,"DEIN2") 417 #pragma map(deflateInit2_,"DEIN2")
501 #pragma map(deflateEnd,"DEEND") 418 #pragma map(deflateEnd,"DEEND")
502 #pragma map(deflateBound,"DEBND") 419 #pragma map(deflateBound,"DEBND")
503 #pragma map(inflateInit_,"ININ") 420 #pragma map(inflateInit_,"ININ")
504 #pragma map(inflateInit2_,"ININ2") 421 #pragma map(inflateInit2_,"ININ2")
505 #pragma map(inflateEnd,"INEND") 422 #pragma map(inflateEnd,"INEND")
506 #pragma map(inflateSync,"INSY") 423 #pragma map(inflateSync,"INSY")
507 #pragma map(inflateSetDictionary,"INSEDI") 424 #pragma map(inflateSetDictionary,"INSEDI")
508 #pragma map(compressBound,"CMBND") 425 #pragma map(compressBound,"CMBND")
509 #pragma map(inflate_table,"INTABL") 426 #pragma map(inflate_table,"INTABL")
510 #pragma map(inflate_fast,"INFA") 427 #pragma map(inflate_fast,"INFA")
511 #pragma map(inflate_copyright,"INCOPY") 428 #pragma map(inflate_copyright,"INCOPY")
512 #endif 429 #endif
513 430
514 #endif /* ZCONF_H */ 431 #endif /* ZCONF_H */
OLDNEW
« no previous file with comments | « third_party/zlib/uncompr.c ('k') | third_party/zlib/zlib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698