pike.git / src / modules / Gz / zlibmod.c

version» Context lines:

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.8 1997/05/19 22:49:09 hubbe Exp $"); + RCSID("$Id: zlibmod.c,v 1.9 1997/07/19 20:29:59 hubbe 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:48:    {    mt_lock(& THIS->lock);    deflateEnd(&THIS->gz);    mt_unlock(& THIS->lock);    }       if(args)    {    if(sp[-args].type != T_INT)    error("Bad argument 1 to gz->create()\n"); -  if(sp[-args].u.integer < Z_NO_COMPRESSION || -  sp[-args].u.integer > Z_BEST_COMPRESSION) +  level=sp[-args].u.integer; +  if(level < Z_NO_COMPRESSION || +  level > Z_BEST_COMPRESSION)    {    error("Compression level out of range for gz_deflate->create()\n");    }    }       THIS->gz.zalloc=Z_NULL;    THIS->gz.zfree=Z_NULL;    THIS->gz.opaque=THIS;       pop_n_elems(args);