1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/jar/jzconf.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,189 @@ 1.4 +/* zconf.h -- configuration of the zlib compression library 1.5 + * Copyright (C) 1995-1996 Jean-loup Gailly. 1.6 + * For conditions of distribution and use, see copyright notice in zlib.h 1.7 + */ 1.8 +/* This file was modified since it was taken from the zlib distribution */ 1.9 + 1.10 +#ifndef _ZCONF_H 1.11 +#define _ZCONF_H 1.12 + 1.13 +/* 1.14 + * If you *really* need a unique prefix for all types and library functions, 1.15 + * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it. 1.16 + */ 1.17 +#ifdef Z_PREFIX 1.18 +# define deflateInit_ z_deflateInit_ 1.19 +# define deflate z_deflate 1.20 +# define deflateEnd z_deflateEnd 1.21 +# define inflateInit_ z_inflateInit_ 1.22 +# define inflate z_inflate 1.23 +# define inflateEnd z_inflateEnd 1.24 +# define deflateInit2_ z_deflateInit2_ 1.25 +# define deflateSetDictionary z_deflateSetDictionary 1.26 +# define deflateCopy z_deflateCopy 1.27 +# define deflateReset z_deflateReset 1.28 +# define deflateParams z_deflateParams 1.29 +# define inflateInit2_ z_inflateInit2_ 1.30 +# define inflateSetDictionary z_inflateSetDictionary 1.31 +# define inflateSync z_inflateSync 1.32 +# define inflateReset z_inflateReset 1.33 +# define compress z_compress 1.34 +# define uncompress z_uncompress 1.35 +# define adler32 z_adler32 1.36 +# define crc32 z_crc32 1.37 +# define get_crc_table z_get_crc_table 1.38 + 1.39 +# define Byte z_Byte 1.40 +# define uInt z_uInt 1.41 +# define uLong z_uLong 1.42 +# define Bytef z_Bytef 1.43 +# define charf z_charf 1.44 +# define intf z_intf 1.45 +# define uIntf z_uIntf 1.46 +# define uLongf z_uLongf 1.47 +# define voidpf z_voidpf 1.48 +# define voidp z_voidp 1.49 +#endif 1.50 + 1.51 +#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) 1.52 +# define WIN32 1.53 +#endif 1.54 +#if defined(__GNUC__) || defined(WIN32) || defined(__386__) || defined(i386) 1.55 +# ifndef __32BIT__ 1.56 +# define __32BIT__ 1.57 +# endif 1.58 +#endif 1.59 +#if defined(__MSDOS__) && !defined(MSDOS) 1.60 +# define MSDOS 1.61 +#endif 1.62 + 1.63 +/* 1.64 + * Compile with -DMAXSEG_64K if the alloc function cannot allocate more 1.65 + * than 64k bytes at a time (needed on systems with 16-bit int). 1.66 + */ 1.67 +#if defined(MSDOS) && !defined(__32BIT__) 1.68 +# define MAXSEG_64K 1.69 +#endif 1.70 +#ifdef MSDOS 1.71 +# define UNALIGNED_OK 1.72 +#endif 1.73 + 1.74 +#if (defined(MSDOS) || defined(_WINDOWS) || defined(WIN32) || defined(XP_OS2)) && !defined(STDC) 1.75 +# define STDC 1.76 +#endif 1.77 +#if (defined(__STDC__) || defined(__cplusplus)) && !defined(STDC) 1.78 +# define STDC 1.79 +#endif 1.80 + 1.81 +#ifndef STDC 1.82 +# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ 1.83 +# define const 1.84 +# endif 1.85 +#endif 1.86 + 1.87 +/* Some Mac compilers merge all .h files incorrectly: */ 1.88 +#if defined(__MWERKS__) || defined(applec) ||defined(THINK_C) ||defined(__SC__) 1.89 +# define NO_DUMMY_DECL 1.90 +#endif 1.91 + 1.92 +/* Maximum value for memLevel in deflateInit2 */ 1.93 +#ifndef MAX_MEM_LEVEL 1.94 +# ifdef MAXSEG_64K 1.95 +# define MAX_MEM_LEVEL 8 1.96 +# else 1.97 +# define MAX_MEM_LEVEL 9 1.98 +# endif 1.99 +#endif 1.100 + 1.101 +/* Maximum value for windowBits in deflateInit2 and inflateInit2 */ 1.102 +#ifndef MAX_WBITS 1.103 +# define MAX_WBITS 15 /* 32K LZ77 window */ 1.104 +#endif 1.105 + 1.106 +/* The memory requirements for deflate are (in bytes): 1.107 + 1 << (windowBits+2) + 1 << (memLevel+9) 1.108 + that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values) 1.109 + plus a few kilobytes for small objects. For example, if you want to reduce 1.110 + the default memory requirements from 256K to 128K, compile with 1.111 + make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7" 1.112 + Of course this will generally degrade compression (there's no free lunch). 1.113 + 1.114 + The memory requirements for inflate are (in bytes) 1 << windowBits 1.115 + that is, 32K for windowBits=15 (default value) plus a few kilobytes 1.116 + for small objects. 1.117 +*/ 1.118 + 1.119 + /* Type declarations */ 1.120 + 1.121 +#ifndef OF /* function prototypes */ 1.122 +# ifdef STDC 1.123 +# define OF(args) args 1.124 +# else 1.125 +# define OF(args) () 1.126 +# endif 1.127 +#endif 1.128 + 1.129 +/* The following definitions for FAR are needed only for MSDOS mixed 1.130 + * model programming (small or medium model with some far allocations). 1.131 + * This was tested only with MSC; for other MSDOS compilers you may have 1.132 + * to define NO_MEMCPY in zutil.h. If you don't need the mixed model, 1.133 + * just define FAR to be empty. 1.134 + */ 1.135 +#if (defined(M_I86SM) || defined(M_I86MM)) && !defined(__32BIT__) 1.136 + /* MSC small or medium model */ 1.137 +# define SMALL_MEDIUM 1.138 +# ifdef _MSC_VER 1.139 +# define FAR __far 1.140 +# else 1.141 +# define FAR far 1.142 +# endif 1.143 +#endif 1.144 +#if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__)) 1.145 +# ifndef __32BIT__ 1.146 +# define SMALL_MEDIUM 1.147 +# define FAR __far 1.148 +# endif 1.149 +#endif 1.150 +#ifndef FAR 1.151 +# define FAR 1.152 +#endif 1.153 + 1.154 +typedef unsigned char Byte; /* 8 bits */ 1.155 +typedef unsigned int uInt; /* 16 bits or more */ 1.156 +typedef unsigned long uLong; /* 32 bits or more */ 1.157 + 1.158 +#if defined(__BORLANDC__) && defined(SMALL_MEDIUM) 1.159 + /* Borland C/C++ ignores FAR inside typedef */ 1.160 +# define Bytef Byte FAR 1.161 +#else 1.162 + typedef Byte FAR Bytef; 1.163 +#endif 1.164 +typedef char FAR charf; 1.165 +typedef int FAR intf; 1.166 +typedef uInt FAR uIntf; 1.167 +typedef uLong FAR uLongf; 1.168 + 1.169 +#ifdef STDC 1.170 + typedef void FAR *voidpf; 1.171 + typedef void *voidp; 1.172 +#else 1.173 + typedef Byte FAR *voidpf; 1.174 + typedef Byte *voidp; 1.175 +#endif 1.176 + 1.177 +#ifdef MOZILLA_CLIENT 1.178 +#include "prtypes.h" 1.179 +#else 1.180 +/* Compile with -DZLIB_DLL for Windows DLL support */ 1.181 +#if (defined(_WINDOWS) || defined(WINDOWS)) && defined(ZLIB_DLL) 1.182 +# include <windows.h> 1.183 +# define EXPORT WINAPI 1.184 +#else 1.185 +# define EXPORT 1.186 +#endif 1.187 + 1.188 +#define PR_PUBLIC_API(type) type 1.189 + 1.190 +#endif /* MOZILLA_CLIENT */ 1.191 + 1.192 +#endif /* _ZCONF_H */