Go to the documentation of this file.
21 "insufficient memory",
23 "incompatible version",
37 switch (
sizeof(
uInt)) {
39 case 4:
flags += 1;
break;
40 case 8:
flags += 2;
break;
43 switch (
sizeof(
uLong)) {
45 case 4:
flags += 1 << 2;
break;
46 case 8:
flags += 2 << 2;
break;
47 default:
flags += 3 << 2;
51 case 4:
flags += 1 << 4;
break;
52 case 8:
flags += 2 << 4;
break;
53 default:
flags += 3 << 4;
57 case 4:
flags += 1 << 6;
break;
58 case 8:
flags += 2 << 6;
break;
59 default:
flags += 3 << 6;
64 #if defined(ASMV) || defined(ASMINF)
73 #ifdef DYNAMIC_CRC_TABLE
82 #ifdef PKZIP_BUG_WORKAROUND
91 # ifdef HAS_vsprintf_void
95 # ifdef HAS_vsnprintf_void
103 # ifdef HAS_sprintf_void
107 # ifdef HAS_snprintf_void
125 fprintf(stderr,
"%s\n", m);
139 #if defined(_WIN32_WCE)
154 if (len == 0)
return;
157 }
while (--len != 0);
167 for (j = 0; j < len; j++) {
168 if (
s1[j] !=
s2[j])
return 2*(
s1[j] >
s2[j])-1;
177 if (len == 0)
return;
180 }
while (--len != 0);
201 local int next_ptr = 0;
203 typedef struct ptr_table_s {
208 local ptr_table table[MAX_PTR];
224 if (bsize < 65520L) {
225 buf = farmalloc(bsize);
228 buf = farmalloc(bsize + 16L);
230 if (
buf == NULL || next_ptr >= MAX_PTR)
return NULL;
231 table[next_ptr].org_ptr =
buf;
236 table[next_ptr++].new_ptr =
buf;
248 for (
n = 0;
n < next_ptr;
n++) {
249 if (
ptr != table[
n].new_ptr)
continue;
251 farfree(table[
n].org_ptr);
252 while (++
n < next_ptr) {
253 table[
n-1] = table[
n];
259 Assert(0,
"zcfree: ptr not found");
270 #if (!defined(_MSC_VER) || (_MSC_VER <= 600))
271 # define _halloc halloc
272 # define _hfree hfree
277 if (opaque) opaque = 0;
278 return _halloc((
long)items,
size);
283 if (opaque) opaque = 0;
#define Assert(cond, msg)
void zcfree(voidpf opaque, voidpf ptr)
const char *ZEXPORT zlibVersion()
const char *const z_errmsg[10]
voidpf zcalloc(voidpf opaque, unsigned items, unsigned size)
voidp malloc OF((uInt size))
uLong ZEXPORT zlibCompileFlags()
void zmemzero(Bytef *dest, uInt len)
const char *ZEXPORT zError(int err)
int zmemcmp(Bytef *s1, const Bytef *s2, uInt len) const
void zmemcpy(Bytef *dest, const Bytef *source, uInt len)
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:04