pike.git
/
src
/
modules
/
Gz
/
zlibmod.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/Gz/zlibmod.c:1:
/*\ ||| This file a part of Pike, and is copyright by Fredrik Hubinette ||| Pike is distributed as GPL (General Public License) ||| See the files COPYING and DISCLAIMER for more information. \*/ /**/ #include "global.h"
-
RCSID("$Id: zlibmod.c,v 1.
29
2000/
07
/
28
07
:
12
:
19
hubbe
Exp $");
+
RCSID("$Id: zlibmod.c,v 1.
30
2000/
08
/
08
10
:
41
:
46
grubba
Exp $");
#include "zlib_machine.h" #if !defined(HAVE_LIBZ) && !defined(HAVE_LIBGZ) #undef HAVE_ZLIB_H #endif #ifdef HAVE_ZLIB_H #include "interpret.h"
pike.git/src/modules/Gz/zlibmod.c:163:
break; default: error("Argument 2 to gz_deflate->deflate() out of range.\n"); } }else{ flush=Z_FINISH; } this->gz.next_in=(Bytef *)data->str;
-
this->gz.avail_in=data->len;
+
this->gz.avail_in
=
DO_NOT_WARN(
data->len
)
;
initialize_buf(&buf); fail=do_deflate(&buf,this,flush); pop_n_elems(args); if(fail != Z_OK && fail != Z_STREAM_END) { free(buf.s.str); if(THIS->gz.msg)
pike.git/src/modules/Gz/zlibmod.c:293:
if(args<1) error("Too few arguments to gz_inflate->inflate()\n"); if(sp[-args].type != T_STRING) error("Bad argument 1 to gz_inflate->inflate()\n"); data=sp[-args].u.string; this->gz.next_in=(Bytef *)data->str;
-
this->gz.avail_in=data->len;
+
this->gz.avail_in
=
DO_NOT_WARN(
data->len
)
;
initialize_buf(&buf); fail=do_inflate(&buf,this,Z_PARTIAL_FLUSH); pop_n_elems(args); if(fail != Z_OK && fail != Z_STREAM_END) { free(buf.s.str); if(THIS->gz.msg)
pike.git/src/modules/Gz/zlibmod.c:353:
if (args>1) { if (sp[1-args].type!=T_INT) error("Gz.crc32: illegal argument 2 (expected integer)\n"); else crc=(unsigned INT32)sp[1-args].u.integer; } else crc=0; crc=crc32(crc, (unsigned char*)sp[-args].u.string->str,
-
sp[-args].u.string->len);
+
DO_NOT_WARN(
sp[-args].u.string->len)
)
;
pop_n_elems(args); push_int((INT32)crc); } #endif void pike_module_exit(void) {}