pike.git/
src/
modules/
zlibmod/
zlibmod.c
Branch:
Tag:
Non-build tags
All tags
No tags
1996-11-23
1996-11-23 00:09:58 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
22103b96af37a8e7a4a3782c1ae660f02dd1a177 (
13
lines) (+
7
/-
6
)
[
Show
|
Annotate
]
Branch:
7.9
zlibmod now works
Rev: src/modules/zlibmod/testsuite.in:1.3
Rev: src/modules/zlibmod/zlibmod.c:1.2
4:
||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h"
-
RCSID("$Id: zlibmod.c,v 1.
1
1996/11/
16
05
:
17
:
15
hubbe Exp $");
+
RCSID("$Id: zlibmod.c,v 1.
2
1996/11/
23
00
:
09
:
58
hubbe Exp $");
#include "zlib_machine.h" #include "types.h"
159:
error("Argument 2 to gz_deflate->deflate() out of range.\n"); } }else{
-
flush=Z_
NO_FLUSH
;
+
flush=Z_
FINISH
;
} this->gz.next_in=(Bytef *)data->str;
203:
static void gz_inflate_create(INT32 args) {
-
int
level
;
+
int
tmp
;
if(THIS->gz.state) { mt_lock(this->lock);
218:
pop_n_elems(args); mt_lock(THIS->lock);
-
level
=inflateInit(& THIS->gz);
+
tmp
=inflateInit(& THIS->gz);
mt_unlock(THIS->lock);
-
switch(
level
)
+
switch(
tmp
)
{ case Z_OK: return;
305:
error("Error in gz_inflate->inflate(): %d\n",fail); } push_string(low_free_buf(&buf));
-
if(fail =
=
Z_STREAM_END && !sp[-1].u.string->len)
+
if(fail
!
= Z_STREAM_END &&
fail
!
=Z_OK && !
sp[-1].u.string->len)
{ pop_stack(); push_int(0);