Deleted Added
full compact
zutil.c (206905) zutil.c (230837)
1/* zutil.c -- target dependent utility functions for the compression library
1/* zutil.c -- target dependent utility functions for the compression library
2 * Copyright (C) 1995-2005, 2010 Jean-loup Gailly.
2 * Copyright (C) 1995-2005, 2010, 2011 Jean-loup Gailly.
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6/* @(#) $Id$ */
7
8#include "zutil.h"
9
10#ifndef NO_DUMMY_DECL

--- 69 unchanged lines hidden (view full) ---

80 flags += 1L << 17;
81#endif
82#ifdef PKZIP_BUG_WORKAROUND
83 flags += 1L << 20;
84#endif
85#ifdef FASTEST
86 flags += 1L << 21;
87#endif
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6/* @(#) $Id$ */
7
8#include "zutil.h"
9
10#ifndef NO_DUMMY_DECL

--- 69 unchanged lines hidden (view full) ---

80 flags += 1L << 17;
81#endif
82#ifdef PKZIP_BUG_WORKAROUND
83 flags += 1L << 20;
84#endif
85#ifdef FASTEST
86 flags += 1L << 21;
87#endif
88#ifdef STDC
89# ifdef NO_vsnprintf
90 flags += 1L << 25;
91# ifdef HAS_vsprintf_void
92 flags += 1L << 26;
93# endif
94# else
95# ifdef HAS_vsnprintf_void
96 flags += 1L << 26;
97# endif
98# endif
88#ifdef Z_SOLO
89 return flags;
99#else
90#else
100 flags += 1L << 24;
101# ifdef NO_snprintf
102 flags += 1L << 25;
103# ifdef HAS_sprintf_void
104 flags += 1L << 26;
105# endif
106# else
107# ifdef HAS_snprintf_void
108 flags += 1L << 26;
109# endif
110# endif
91 return flags + gzflags();
111#endif
92#endif
112 return flags;
113}
114
115#ifdef DEBUG
116
117# ifndef verbose
118# define verbose 0
119# endif
120int ZLIB_INTERNAL z_verbose = verbose;

--- 55 unchanged lines hidden (view full) ---

176{
177 if (len == 0) return;
178 do {
179 *dest++ = 0; /* ??? to be unrolled */
180 } while (--len != 0);
181}
182#endif
183
93}
94
95#ifdef DEBUG
96
97# ifndef verbose
98# define verbose 0
99# endif
100int ZLIB_INTERNAL z_verbose = verbose;

--- 55 unchanged lines hidden (view full) ---

156{
157 if (len == 0) return;
158 do {
159 *dest++ = 0; /* ??? to be unrolled */
160 } while (--len != 0);
161}
162#endif
163
164#ifndef Z_SOLO
184
185#ifdef SYS16BIT
186
187#ifdef __TURBOC__
188/* Turbo C in 16-bit mode */
189
190# define MY_ZCALLOC
191

--- 119 unchanged lines hidden (view full) ---

311 voidpf opaque;
312 voidpf ptr;
313{
314 free(ptr);
315 if (opaque) return; /* make compiler happy */
316}
317
318#endif /* MY_ZCALLOC */
165
166#ifdef SYS16BIT
167
168#ifdef __TURBOC__
169/* Turbo C in 16-bit mode */
170
171# define MY_ZCALLOC
172

--- 119 unchanged lines hidden (view full) ---

292 voidpf opaque;
293 voidpf ptr;
294{
295 free(ptr);
296 if (opaque) return; /* make compiler happy */
297}
298
299#endif /* MY_ZCALLOC */
300
301#endif /* !Z_SOLO */