Code Coverage: vinyl-cache/lib/libvgz/zconf.h
 
82217aa4fc7094b3610340078afaf78cd95a8ec9
 
0
/* zconf.h -- configuration of the zlib compression library
1
 * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler
2
 * For conditions of distribution and use, see copyright notice in zlib.h
3
 */
4
5
/* @(#) $Id$ */
6
7
#ifndef ZCONF_H
8
#define ZCONF_H
9
10
/*
11
 * If you *really* need a unique prefix for all types and library functions,
12
 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
13
 * Even better than compiling with -DZ_PREFIX would be to use configure to set
14
 * this permanently in zconf.h using "./configure --zprefix".
15
 */
16
#ifdef Z_PREFIX     /* may be set to #if 1 by ./configure */
17
#  define Z_PREFIX_SET
18
19
/* all linked symbols and init macros */
20 321
#  define _dist_code            z__dist_code
21 321
#  define _length_code          z__length_code
22 0
#  define _tr_align             z__tr_align
23 3971
#  define _tr_flush_bits        z__tr_flush_bits
24 1428
#  define _tr_flush_block       z__tr_flush_block
25 334
#  define _tr_init              z__tr_init
26 1702
#  define _tr_stored_block      z__tr_stored_block
27
#  define _tr_tally             z__tr_tally
28 0
#  define adler32               z_adler32
29
#  define adler32_combine       z_adler32_combine
30
#  define adler32_combine64     z_adler32_combine64
31
#  define adler32_z             z_adler32_z
32
#  ifndef Z_SOLO
33
#    define compress              z_compress
34
#    define compress2             z_compress2
35
#    define compressBound         z_compressBound
36
#  endif
37 111935
#  define crc32                 z_crc32
38 1319
#  define crc32_combine         z_crc32_combine
39 1319
#  define crc32_combine64       z_crc32_combine64
40
#  define crc32_combine_gen     z_crc32_combine_gen
41 0
#  define crc32_combine_gen64   z_crc32_combine_gen64
42
#  define crc32_combine_op      z_crc32_combine_op
43 111818
#  define crc32_z               z_crc32_z
44 4565
#  define deflate               z_deflate
45
#  define deflateBound          z_deflateBound
46
#  define deflateCopy           z_deflateCopy
47 159
#  define deflateEnd            z_deflateEnd
48
#  define deflateGetDictionary  z_deflateGetDictionary
49
#  define deflateInit           z_deflateInit
50 160
#  define deflateInit2          z_deflateInit2
51 160
#  define deflateInit2_         z_deflateInit2_
52
#  define deflateInit_          z_deflateInit_
53
#  define deflateParams         z_deflateParams
54
#  define deflatePending        z_deflatePending
55
#  define deflatePrime          z_deflatePrime
56 334
#  define deflateReset          z_deflateReset
57 334
#  define deflateResetKeep      z_deflateResetKeep
58
#  define deflateSetDictionary  z_deflateSetDictionary
59
#  define deflateSetHeader      z_deflateSetHeader
60
#  define deflateTune           z_deflateTune
61
#  define deflateUsed           z_deflateUsed
62
#  define deflate_copyright     z_deflate_copyright
63
#  define get_crc_table         z_get_crc_table
64
#  ifndef Z_SOLO
65
#    define gz_error              z_gz_error
66
#    define gz_intmax             z_gz_intmax
67
#    define gz_strwinerror        z_gz_strwinerror
68
#    define gzbuffer              z_gzbuffer
69
#    define gzclearerr            z_gzclearerr
70
#    define gzclose               z_gzclose
71
#    define gzclose_r             z_gzclose_r
72
#    define gzclose_w             z_gzclose_w
73
#    define gzdirect              z_gzdirect
74
#    define gzdopen               z_gzdopen
75
#    define gzeof                 z_gzeof
76
#    define gzerror               z_gzerror
77
#    define gzflush               z_gzflush
78
#    define gzfread               z_gzfread
79
#    define gzfwrite              z_gzfwrite
80
#    define gzgetc                z_gzgetc
81
#    define gzgetc_               z_gzgetc_
82
#    define gzgets                z_gzgets
83
#    define gzoffset              z_gzoffset
84
#    define gzoffset64            z_gzoffset64
85
#    define gzopen                z_gzopen
86
#    define gzopen64              z_gzopen64
87
#    ifdef _WIN32
88
#      define gzopen_w              z_gzopen_w
89
#    endif
90
#    define gzprintf              z_gzprintf
91
#    define gzputc                z_gzputc
92
#    define gzputs                z_gzputs
93
#    define gzread                z_gzread
94
#    define gzrewind              z_gzrewind
95
#    define gzseek                z_gzseek
96
#    define gzseek64              z_gzseek64
97
#    define gzsetparams           z_gzsetparams
98
#    define gztell                z_gztell
99
#    define gztell64              z_gztell64
100
#    define gzungetc              z_gzungetc
101
#    define gzvprintf             z_gzvprintf
102
#    define gzwrite               z_gzwrite
103
#  endif
104 26796
#  define inflate               z_inflate
105
#  define inflateBack           z_inflateBack
106
#  define inflateBackEnd        z_inflateBackEnd
107
#  define inflateBackInit       z_inflateBackInit
108
#  define inflateBackInit_      z_inflateBackInit_
109
#  define inflateCodesUsed      z_inflateCodesUsed
110
#  define inflateCopy           z_inflateCopy
111 893
#  define inflateEnd            z_inflateEnd
112
#  define inflateGetDictionary  z_inflateGetDictionary
113
#  define inflateGetHeader      z_inflateGetHeader
114
#  define inflateInit           z_inflateInit
115
#  define inflateInit2          z_inflateInit2
116
#  define inflateInit2_         z_inflateInit2_
117
#  define inflateInit_          z_inflateInit_
118
#  define inflateMark           z_inflateMark
119
#  define inflatePrime          z_inflatePrime
120 937
#  define inflateReset          z_inflateReset
121 937
#  define inflateReset2         z_inflateReset2
122 937
#  define inflateResetKeep      z_inflateResetKeep
123
#  define inflateSetDictionary  z_inflateSetDictionary
124
#  define inflateSync           z_inflateSync
125
#  define inflateSyncPoint      z_inflateSyncPoint
126
#  define inflateUndermine      z_inflateUndermine
127
#  define inflateValidate       z_inflateValidate
128
#  define inflate_copyright     z_inflate_copyright
129 15251
#  define inflate_fast          z_inflate_fast
130 840
#  define inflate_table         z_inflate_table
131
#  ifndef Z_SOLO
132
#    define uncompress            z_uncompress
133
#    define uncompress2           z_uncompress2
134
#  endif
135
#  define zError                z_zError
136
#  ifndef Z_SOLO
137 1271
#    define zcalloc               z_zcalloc
138 1271
#    define zcfree                z_zcfree
139
#  endif
140
#  define zlibCompileFlags      z_zlibCompileFlags
141
#  define zlibVersion           z_zlibVersion
142
143
/* all zlib typedefs in zlib.h and zconf.h */
144
#  define Byte                  z_Byte
145
#  define Bytef                 z_Bytef
146
#  define alloc_func            z_alloc_func
147
#  define charf                 z_charf
148
#  define free_func             z_free_func
149
#  ifndef Z_SOLO
150
#    define gzFile                z_gzFile
151
#  endif
152
#  define gz_header             z_gz_header
153
#  define gz_headerp            z_gz_headerp
154
#  define in_func               z_in_func
155
#  define intf                  z_intf
156
#  define out_func              z_out_func
157 32365
#  define uInt                  z_uInt
158
#  define uIntf                 z_uIntf
159
#  define uLong                 z_uLong
160
#  define uLongf                z_uLongf
161
#  define voidp                 z_voidp
162
#  define voidpc                z_voidpc
163
#  define voidpf                z_voidpf
164
165
/* all zlib structs in zlib.h and zconf.h */
166
#  define gz_header_s           z_gz_header_s
167
#  define internal_state        z_internal_state
168
169
#endif
170
171
#if defined(__MSDOS__) && !defined(MSDOS)
172
#  define MSDOS
173
#endif
174
#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
175
#  define OS2
176
#endif
177
#if defined(_WINDOWS) && !defined(WINDOWS)
178
#  define WINDOWS
179
#endif
180
#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
181
#  ifndef WIN32
182
#    define WIN32
183
#  endif
184
#endif
185
#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
186
#  if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
187
#    ifndef SYS16BIT
188
#      define SYS16BIT
189
#    endif
190
#  endif
191
#endif
192
193
/*
194
 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
195
 * than 64k bytes at a time (needed on systems with 16-bit int).
196
 */
197
#ifdef SYS16BIT
198
#  define MAXSEG_64K
199
#endif
200
#ifdef MSDOS
201
#  define UNALIGNED_OK
202
#endif
203
204
#ifdef __STDC_VERSION__
205
#  ifndef STDC
206
#    define STDC
207
#  endif
208
#  if __STDC_VERSION__ >= 199901L
209
#    ifndef STDC99
210
#      define STDC99
211
#    endif
212
#  endif
213
#endif
214
#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
215
#  define STDC
216
#endif
217
#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
218
#  define STDC
219
#endif
220
#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
221
#  define STDC
222
#endif
223
#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
224
#  define STDC
225
#endif
226
227
#if defined(__OS400__) && !defined(STDC)    /* iSeries (formerly AS/400). */
228
#  define STDC
229
#endif
230
231
#ifndef STDC
232
#  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
233
#    define const       /* note: need a more gentle solution here */
234
#  endif
235
#endif
236
237
#ifndef z_const
238
#  ifdef ZLIB_CONST
239 57298
#    define z_const const
240
#  else
241
#    define z_const
242
#  endif
243
#endif
244
245
#ifdef Z_SOLO
246
#  ifdef _WIN64
247
     typedef unsigned long long z_size_t;
248
#  else
249
     typedef unsigned long z_size_t;
250
#  endif
251
#else
252
#  define z_longlong long long
253
#  if defined(NO_SIZE_T)
254
     typedef unsigned NO_SIZE_T z_size_t;
255
#  elif defined(STDC)
256
#    include <stddef.h>
257
     typedef size_t z_size_t;
258
#  else
259
     typedef unsigned long z_size_t;
260
#  endif
261
#  undef z_longlong
262
#endif
263
264
/* Maximum value for memLevel in deflateInit2 */
265
#ifndef MAX_MEM_LEVEL
266
#  ifdef MAXSEG_64K
267
#    define MAX_MEM_LEVEL 8
268
#  else
269 668
#    define MAX_MEM_LEVEL 9
270
#  endif
271
#endif
272
273
/* Maximum value for windowBits in deflateInit2 and inflateInit2.
274
 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
275
 * created by gzip. (Files created by minigzip can still be extracted by
276
 * gzip.)
277
 */
278
#ifndef MAX_WBITS
279
#  define MAX_WBITS   15 /* 32K LZ77 window */
280
#endif
281
282
/* The memory requirements for deflate are (in bytes):
283
            (1 << (windowBits+2)) +  (1 << (memLevel+9))
284
 that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
285
 plus a few kilobytes for small objects. For example, if you want to reduce
286
 the default memory requirements from 256K to 128K, compile with
287
     make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
288
 Of course this will generally degrade compression (there's no free lunch).
289
290
   The memory requirements for inflate are (in bytes) 1 << windowBits
291
 that is, 32K for windowBits=15 (default value) plus about 7 kilobytes
292
 for small objects.
293
*/
294
295
                        /* Type declarations */
296
297
#ifndef OF /* function prototypes */
298
#  ifdef STDC
299
#    define OF(args)  args
300
#  else
301
#    define OF(args)  ()
302
#  endif
303
#endif
304
305
/* The following definitions for FAR are needed only for MSDOS mixed
306
 * model programming (small or medium model with some far allocations).
307
 * This was tested only with MSC; for other MSDOS compilers you may have
308
 * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
309
 * just define FAR to be empty.
310
 */
311
#ifdef SYS16BIT
312
#  if defined(M_I86SM) || defined(M_I86MM)
313
     /* MSC small or medium model */
314
#    define SMALL_MEDIUM
315
#    ifdef _MSC_VER
316
#      define FAR _far
317
#    else
318
#      define FAR far
319
#    endif
320
#  endif
321
#  if (defined(__SMALL__) || defined(__MEDIUM__))
322
     /* Turbo C small or medium model */
323
#    define SMALL_MEDIUM
324
#    ifdef __BORLANDC__
325
#      define FAR _far
326
#    else
327
#      define FAR far
328
#    endif
329
#  endif
330
#endif
331
332
#if defined(WINDOWS) || defined(WIN32)
333
   /* If building or using zlib as a DLL, define ZLIB_DLL.
334
    * This is not mandatory, but it offers a little performance increase.
335
    */
336
#  ifdef ZLIB_DLL
337
#    if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
338
#      ifdef ZLIB_INTERNAL
339
#        define ZEXTERN extern __declspec(dllexport)
340
#      else
341
#        define ZEXTERN extern __declspec(dllimport)
342
#      endif
343
#    endif
344
#  endif  /* ZLIB_DLL */
345
   /* If building or using zlib with the WINAPI/WINAPIV calling convention,
346
    * define ZLIB_WINAPI.
347
    * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
348
    */
349
#  ifdef ZLIB_WINAPI
350
#    ifdef FAR
351
#      undef FAR
352
#    endif
353
#    ifndef WIN32_LEAN_AND_MEAN
354
#      define WIN32_LEAN_AND_MEAN
355
#    endif
356
#    include <windows.h>
357
     /* No need for _export, use ZLIB.DEF instead. */
358
     /* For complete Windows compatibility, use WINAPI, not __stdcall. */
359
#    define ZEXPORT WINAPI
360
#    ifdef WIN32
361
#      define ZEXPORTVA WINAPIV
362
#    else
363
#      define ZEXPORTVA FAR CDECL
364
#    endif
365
#  endif
366
#endif
367
368
#if defined (__BEOS__)
369
#  ifdef ZLIB_DLL
370
#    ifdef ZLIB_INTERNAL
371
#      define ZEXPORT   __declspec(dllexport)
372
#      define ZEXPORTVA __declspec(dllexport)
373
#    else
374
#      define ZEXPORT   __declspec(dllimport)
375
#      define ZEXPORTVA __declspec(dllimport)
376
#    endif
377
#  endif
378
#endif
379
380
#ifndef ZEXTERN
381
#  define ZEXTERN extern
382
#endif
383
#ifndef ZEXPORT
384
#  define ZEXPORT
385
#endif
386
#ifndef ZEXPORTVA
387
#  define ZEXPORTVA
388
#endif
389
390
#ifndef FAR
391
#  define FAR
392
#endif
393
394
#if !defined(__MACTYPES__)
395
typedef unsigned char  Byte;  /* 8 bits */
396
#endif
397
typedef unsigned int   uInt;  /* 16 bits or more */
398
typedef unsigned long  uLong; /* 32 bits or more */
399
400
#ifdef SMALL_MEDIUM
401
   /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
402
#  define Bytef Byte FAR
403
#else
404
   typedef Byte  FAR Bytef;
405
#endif
406
typedef char  FAR charf;
407
typedef int   FAR intf;
408
typedef uInt  FAR uIntf;
409
typedef uLong FAR uLongf;
410
411
#ifdef STDC
412
   typedef void const *voidpc;
413
   typedef void FAR   *voidpf;
414
   typedef void       *voidp;
415
#else
416
   typedef Byte const *voidpc;
417
   typedef Byte FAR   *voidpf;
418
   typedef Byte       *voidp;
419
#endif
420
421
#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
422
#  include <limits.h>
423
#  if (UINT_MAX == 0xffffffffUL)
424
#    define Z_U4 unsigned
425
#  elif (ULONG_MAX == 0xffffffffUL)
426
#    define Z_U4 unsigned long
427
#  elif (USHRT_MAX == 0xffffffffUL)
428
#    define Z_U4 unsigned short
429
#  endif
430
#endif
431
432
#ifdef Z_U4
433
   typedef Z_U4 z_crc_t;
434
#else
435
   typedef unsigned long z_crc_t;
436
#endif
437
438
#if HAVE_UNISTD_H-0    /* may be set to #if 1 by ./configure */
439
#  define Z_HAVE_UNISTD_H
440
#endif
441
442
#if HAVE_STDARG_H-0    /* may be set to #if 1 by ./configure */
443
#  define Z_HAVE_STDARG_H
444
#endif
445
446
#ifdef STDC
447
#  ifndef Z_SOLO
448
#    include <sys/types.h>      /* for off_t */
449
#  endif
450
#endif
451
452
#if defined(STDC) || defined(Z_HAVE_STDARG_H)
453
#  ifndef Z_SOLO
454
#    include <stdarg.h>         /* for va_list */
455
#  endif
456
#endif
457
458
#ifdef _WIN32
459
#  ifndef Z_SOLO
460
#    include <stddef.h>         /* for wchar_t */
461
#  endif
462
#endif
463
464
/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
465
 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
466
 * though the former does not conform to the LFS document), but considering
467
 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
468
 * equivalently requesting no 64-bit operations
469
 */
470
#if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
471
#  undef _LARGEFILE64_SOURCE
472
#endif
473
474
#ifndef Z_HAVE_UNISTD_H
475
#  if defined(__WATCOMC__) || defined(__GO32__) || \
476
      (defined(_LARGEFILE64_SOURCE) && !defined(_WIN32))
477
#    define Z_HAVE_UNISTD_H
478
#  endif
479
#endif
480
#ifndef Z_SOLO
481
#  if defined(Z_HAVE_UNISTD_H)
482
#    include <unistd.h>         /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
483
#    ifdef VMS
484
#      include <unixio.h>       /* for off_t */
485
#    endif
486
#    ifndef z_off_t
487
#      define z_off_t off_t
488
#    endif
489
#  endif
490
#endif
491
492
#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
493
#  define Z_LFS64
494
#endif
495
496
#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
497
#  define Z_LARGE64
498
#endif
499
500
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
501
#  define Z_WANT64
502
#endif
503
504
#if !defined(SEEK_SET) && !defined(Z_SOLO)
505
#  define SEEK_SET        0       /* Seek from beginning of file.  */
506
#  define SEEK_CUR        1       /* Seek from current position.  */
507
#  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
508
#endif
509
510
#ifndef z_off_t
511
#  define z_off_t long long
512
#endif
513
514
#if !defined(_WIN32) && defined(Z_LARGE64)
515
#  define z_off64_t off64_t
516
#elif defined(__MINGW32__)
517
#  define z_off64_t long long
518
#elif defined(_WIN32) && !defined(__GNUC__)
519
#  define z_off64_t __int64
520
#elif defined(__GO32__)
521
#  define z_off64_t offset_t
522
#else
523
#  define z_off64_t z_off_t
524
#endif
525
526
/* MVS linker does not support external names larger than 8 bytes */
527
#if defined(__MVS__)
528
  #pragma map(deflateInit_,"DEIN")
529
  #pragma map(deflateInit2_,"DEIN2")
530
  #pragma map(deflateEnd,"DEEND")
531
  #pragma map(deflateBound,"DEBND")
532
  #pragma map(inflateInit_,"ININ")
533
  #pragma map(inflateInit2_,"ININ2")
534
  #pragma map(inflateEnd,"INEND")
535
  #pragma map(inflateSync,"INSY")
536
  #pragma map(inflateSetDictionary,"INSEDI")
537
  #pragma map(compressBound,"CMBND")
538
  #pragma map(inflate_table,"INTABL")
539
  #pragma map(inflate_fast,"INFA")
540
  #pragma map(inflate_copyright,"INCOPY")
541
#endif
542
543
#endif /* ZCONF_H */