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

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

Issue 8806004: Update zlib to 1.2.5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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/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-2005 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: zconf.h,v 3.9 2005/08/04 19:14:14 tor%cs.brown.edu Exp $ */ 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 */
12 #include "mozzconf.h"
13
14 /* 11 /*
15 * If you *really* need a unique prefix for all types and library functions, 12 * 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. 13 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
14 * Even better than compiling with -DZ_PREFIX would be to use configure to set
15 * this permanently in zconf.h using "./configure --zprefix".
17 */ 16 */
18 #ifdef Z_PREFIX 17 #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */
18
19 /* all linked symbols */
20 # define _dist_code z__dist_code
21 # define _length_code z__length_code
22 # define _tr_align z__tr_align
23 # define _tr_flush_block z__tr_flush_block
24 # define _tr_init z__tr_init
25 # define _tr_stored_block z__tr_stored_block
26 # define _tr_tally z__tr_tally
27 # define adler32 z_adler32
28 # define adler32_combine z_adler32_combine
29 # define adler32_combine64 z_adler32_combine64
30 # define compress z_compress
31 # define compress2 z_compress2
32 # define compressBound z_compressBound
33 # define crc32 z_crc32
34 # define crc32_combine z_crc32_combine
35 # define crc32_combine64 z_crc32_combine64
36 # define deflate z_deflate
37 # define deflateBound z_deflateBound
38 # define deflateCopy z_deflateCopy
39 # define deflateEnd z_deflateEnd
40 # define deflateInit2_ z_deflateInit2_
19 # define deflateInit_ z_deflateInit_ 41 # define deflateInit_ z_deflateInit_
20 # define deflate z_deflate 42 # define deflateParams z_deflateParams
21 # define deflateEnd z_deflateEnd 43 # define deflatePrime z_deflatePrime
44 # define deflateReset z_deflateReset
45 # define deflateSetDictionary z_deflateSetDictionary
46 # define deflateSetHeader z_deflateSetHeader
47 # define deflateTune z_deflateTune
48 # define deflate_copyright z_deflate_copyright
49 # define get_crc_table z_get_crc_table
50 # define gz_error z_gz_error
51 # define gz_intmax z_gz_intmax
52 # define gz_strwinerror z_gz_strwinerror
53 # define gzbuffer z_gzbuffer
54 # define gzclearerr z_gzclearerr
55 # define gzclose z_gzclose
56 # define gzclose_r z_gzclose_r
57 # define gzclose_w z_gzclose_w
58 # define gzdirect z_gzdirect
59 # define gzdopen z_gzdopen
60 # define gzeof z_gzeof
61 # define gzerror z_gzerror
62 # define gzflush z_gzflush
63 # define gzgetc z_gzgetc
64 # define gzgets z_gzgets
65 # define gzoffset z_gzoffset
66 # define gzoffset64 z_gzoffset64
67 # define gzopen z_gzopen
68 # define gzopen64 z_gzopen64
69 # define gzprintf z_gzprintf
70 # define gzputc z_gzputc
71 # define gzputs z_gzputs
72 # define gzread z_gzread
73 # define gzrewind z_gzrewind
74 # define gzseek z_gzseek
75 # define gzseek64 z_gzseek64
76 # define gzsetparams z_gzsetparams
77 # define gztell z_gztell
78 # define gztell64 z_gztell64
79 # define gzungetc z_gzungetc
80 # define gzwrite z_gzwrite
81 # define inflate z_inflate
82 # define inflateBack z_inflateBack
83 # define inflateBackEnd z_inflateBackEnd
84 # define inflateBackInit_ z_inflateBackInit_
85 # define inflateCopy z_inflateCopy
86 # define inflateEnd z_inflateEnd
87 # define inflateGetHeader z_inflateGetHeader
88 # define inflateInit2_ z_inflateInit2_
22 # define inflateInit_ z_inflateInit_ 89 # define inflateInit_ z_inflateInit_
23 # define inflate z_inflate 90 # define inflateMark z_inflateMark
24 # define inflateEnd z_inflateEnd 91 # define inflatePrime z_inflatePrime
25 # define deflateInit2_ z_deflateInit2_ 92 # define inflateReset z_inflateReset
26 # define deflateSetDictionary z_deflateSetDictionary 93 # define inflateReset2 z_inflateReset2
27 # define deflateCopy z_deflateCopy
28 # define deflateReset z_deflateReset
29 # define deflateParams z_deflateParams
30 # define deflateBound z_deflateBound
31 # define deflatePrime z_deflatePrime
32 # define inflateInit2_ z_inflateInit2_
33 # define inflateSetDictionary z_inflateSetDictionary 94 # define inflateSetDictionary z_inflateSetDictionary
34 # define inflateSync z_inflateSync 95 # define inflateSync z_inflateSync
35 # define inflateSyncPoint z_inflateSyncPoint 96 # define inflateSyncPoint z_inflateSyncPoint
36 # define inflateCopy z_inflateCopy 97 # define inflateUndermine z_inflateUndermine
37 # define inflateReset z_inflateReset 98 # define inflate_copyright z_inflate_copyright
38 # define inflateBack z_inflateBack 99 # define inflate_fast z_inflate_fast
39 # define inflateBackEnd z_inflateBackEnd 100 # define inflate_table z_inflate_table
40 # define compress z_compress
41 # define compress2 z_compress2
42 # define compressBound z_compressBound
43 # define uncompress z_uncompress 101 # define uncompress z_uncompress
44 # define adler32 z_adler32
45 # define crc32 z_crc32
46 # define get_crc_table z_get_crc_table
47 # define zError z_zError 102 # define zError z_zError
103 # define zcalloc z_zcalloc
104 # define zcfree z_zcfree
105 # define zlibCompileFlags z_zlibCompileFlags
106 # define zlibVersion z_zlibVersion
48 107
108 /* all zlib typedefs in zlib.h and zconf.h */
109 # define Byte z_Byte
110 # define Bytef z_Bytef
49 # define alloc_func z_alloc_func 111 # define alloc_func z_alloc_func
112 # define charf z_charf
50 # define free_func z_free_func 113 # define free_func z_free_func
114 # define gzFile z_gzFile
115 # define gz_header z_gz_header
116 # define gz_headerp z_gz_headerp
51 # define in_func z_in_func 117 # define in_func z_in_func
118 # define intf z_intf
52 # define out_func z_out_func 119 # define out_func z_out_func
53 # define Byte z_Byte
54 # define uInt z_uInt 120 # define uInt z_uInt
121 # define uIntf z_uIntf
55 # define uLong z_uLong 122 # define uLong z_uLong
56 # define Bytef z_Bytef
57 # define charf z_charf
58 # define intf z_intf
59 # define uIntf z_uIntf
60 # define uLongf z_uLongf 123 # define uLongf z_uLongf
124 # define voidp z_voidp
125 # define voidpc z_voidpc
61 # define voidpf z_voidpf 126 # define voidpf z_voidpf
62 # define voidp z_voidp 127
128 /* all zlib structs in zlib.h and zconf.h */
129 # define gz_header_s z_gz_header_s
130 # define internal_state z_internal_state
131
63 #endif 132 #endif
64 133
65 #if defined(__MSDOS__) && !defined(MSDOS) 134 #if defined(__MSDOS__) && !defined(MSDOS)
66 # define MSDOS 135 # define MSDOS
67 #endif 136 #endif
68 #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2) 137 #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
69 # define OS2 138 # define OS2
70 #endif 139 #endif
71 #if defined(_WINDOWS) && !defined(WINDOWS) 140 #if defined(_WINDOWS) && !defined(WINDOWS)
72 # define WINDOWS 141 # define WINDOWS
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 #ifdef STDC 349 #ifdef STDC
281 typedef void const *voidpc; 350 typedef void const *voidpc;
282 typedef void FAR *voidpf; 351 typedef void FAR *voidpf;
283 typedef void *voidp; 352 typedef void *voidp;
284 #else 353 #else
285 typedef Byte const *voidpc; 354 typedef Byte const *voidpc;
286 typedef Byte FAR *voidpf; 355 typedef Byte FAR *voidpf;
287 typedef Byte *voidp; 356 typedef Byte *voidp;
288 #endif 357 #endif
289 358
290 #if 0 /* HAVE_UNISTD_H -- this line is updated by ./configure */ 359 #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
291 # include <sys/types.h> /* for off_t */ 360 # define Z_HAVE_UNISTD_H
292 # include <unistd.h> /* for SEEK_* and off_t */ 361 #endif
362
363 #ifdef STDC
364 # include <sys/types.h> /* for off_t */
365 #endif
366
367 /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
368 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
369 * though the former does not conform to the LFS document), but considering
370 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
371 * equivalently requesting no 64-bit operations
372 */
373 #if -_LARGEFILE64_SOURCE - -1 == 1
374 # undef _LARGEFILE64_SOURCE
375 #endif
376
377 #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
378 # include <unistd.h> /* for SEEK_* and off_t */
293 # ifdef VMS 379 # ifdef VMS
294 # include <unixio.h> /* for off_t */ 380 # include <unixio.h> /* for off_t */
295 # endif 381 # endif
296 # define z_off_t off_t 382 # ifndef z_off_t
383 # define z_off_t off_t
384 # endif
297 #endif 385 #endif
386
298 #ifndef SEEK_SET 387 #ifndef SEEK_SET
299 # define SEEK_SET 0 /* Seek from beginning of file. */ 388 # define SEEK_SET 0 /* Seek from beginning of file. */
300 # define SEEK_CUR 1 /* Seek from current position. */ 389 # define SEEK_CUR 1 /* Seek from current position. */
301 # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ 390 # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
302 #endif 391 #endif
392
303 #ifndef z_off_t 393 #ifndef z_off_t
304 # define z_off_t long 394 # define z_off_t long
305 #endif 395 #endif
306 396
397 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
398 # define z_off64_t off64_t
399 #else
400 # define z_off64_t z_off_t
401 #endif
402
307 #if defined(__OS400__) 403 #if defined(__OS400__)
308 # define NO_vsnprintf 404 # define NO_vsnprintf
309 #endif 405 #endif
310 406
311 #if defined(__MVS__) 407 #if defined(__MVS__)
312 # define NO_vsnprintf 408 # define NO_vsnprintf
313 # ifdef FAR
314 # undef FAR
315 # endif
316 #endif 409 #endif
317 410
318 /* MVS linker does not support external names larger than 8 bytes */ 411 /* MVS linker does not support external names larger than 8 bytes */
319 #if defined(__MVS__) 412 #if defined(__MVS__)
320 # pragma map(deflateInit_,"DEIN") 413 #pragma map(deflateInit_,"DEIN")
321 # pragma map(deflateInit2_,"DEIN2") 414 #pragma map(deflateInit2_,"DEIN2")
322 # pragma map(deflateEnd,"DEEND") 415 #pragma map(deflateEnd,"DEEND")
323 # pragma map(deflateBound,"DEBND") 416 #pragma map(deflateBound,"DEBND")
324 # pragma map(inflateInit_,"ININ") 417 #pragma map(inflateInit_,"ININ")
325 # pragma map(inflateInit2_,"ININ2") 418 #pragma map(inflateInit2_,"ININ2")
326 # pragma map(inflateEnd,"INEND") 419 #pragma map(inflateEnd,"INEND")
327 # pragma map(inflateSync,"INSY") 420 #pragma map(inflateSync,"INSY")
328 # pragma map(inflateSetDictionary,"INSEDI") 421 #pragma map(inflateSetDictionary,"INSEDI")
329 # pragma map(compressBound,"CMBND") 422 #pragma map(compressBound,"CMBND")
330 # pragma map(inflate_table,"INTABL") 423 #pragma map(inflate_table,"INTABL")
331 # pragma map(inflate_fast,"INFA") 424 #pragma map(inflate_fast,"INFA")
332 # pragma map(inflate_copyright,"INCOPY") 425 #pragma map(inflate_copyright,"INCOPY")
333 #endif 426 #endif
334 427
335 #endif /* ZCONF_H */ 428 #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