Rev 1896 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1896 | Rev 3926 | ||
---|---|---|---|
Line 1... | Line 1... | ||
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, 2012 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 | */ |
Line 5... | Line 5... | ||
5 | 5 | ||
Line 6... | Line 6... | ||
6 | /* @(#) $Id$ */ |
6 | /* @(#) $Id$ */ |
- | 7 | ||
- | 8 | #include "zutil.h" |
|
- | 9 | #ifndef Z_SOLO |
|
Line 7... | Line 10... | ||
7 | 10 | # include "gzguts.h" |
|
8 | #include "zutil.h" |
11 | #endif |
9 | 12 | ||
Line 10... | Line 13... | ||
10 | #ifndef NO_DUMMY_DECL |
13 | #ifndef NO_DUMMY_DECL |
11 | struct internal_state {int dummy;}; /* for buggy compilers */ |
14 | struct internal_state {int dummy;}; /* for buggy compilers */ |
12 | #endif |
15 | #endif |
13 | 16 | ||
14 | const char * const z_errmsg[10] = { |
17 | z_const char * const z_errmsg[10] = { |
15 | "need dictionary", /* Z_NEED_DICT 2 */ |
18 | "need dictionary", /* Z_NEED_DICT 2 */ |
Line 83... | Line 86... | ||
83 | flags += 1L << 20; |
86 | flags += 1L << 20; |
84 | #endif |
87 | #endif |
85 | #ifdef FASTEST |
88 | #ifdef FASTEST |
86 | flags += 1L << 21; |
89 | flags += 1L << 21; |
87 | #endif |
90 | #endif |
88 | #ifdef STDC |
91 | #if defined(STDC) || defined(Z_HAVE_STDARG_H) |
89 | # ifdef NO_vsnprintf |
92 | # ifdef NO_vsnprintf |
90 | flags += 1L << 25; |
93 | flags += 1L << 25; |
91 | # ifdef HAS_vsprintf_void |
94 | # ifdef HAS_vsprintf_void |
92 | flags += 1L << 26; |
95 | flags += 1L << 26; |
93 | # endif |
96 | # endif |
Line 179... | Line 182... | ||
179 | *dest++ = 0; /* ??? to be unrolled */ |
182 | *dest++ = 0; /* ??? to be unrolled */ |
180 | } while (--len != 0); |
183 | } while (--len != 0); |
181 | } |
184 | } |
182 | #endif |
185 | #endif |
Line -... | Line 186... | ||
- | 186 | ||
Line 183... | Line 187... | ||
183 | 187 | #ifndef Z_SOLO |
|
Line 184... | Line 188... | ||
184 | 188 | ||
185 | #ifdef SYS16BIT |
189 | #ifdef SYS16BIT |
Line 314... | Line 318... | ||
314 | free(ptr); |
318 | free(ptr); |
315 | if (opaque) return; /* make compiler happy */ |
319 | if (opaque) return; /* make compiler happy */ |
316 | } |
320 | } |
Line 317... | Line 321... | ||
317 | 321 | ||
- | 322 | #endif /* MY_ZCALLOC */ |
|
- | 323 |