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.21 1998/05/07 23:51:43 hubbe Exp $"); + RCSID("$Id: zlibmod.c,v 1.22 1999/06/10 20:08:47 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:202:    THIS->gz.zfree=Z_NULL;    THIS->gz.opaque=(void *)THIS;    deflateInit(& THIS->gz, Z_DEFAULT_COMPRESSION);   }      static void exit_gz_deflate(struct object *o)   {   /* mt_lock(& THIS->lock); */    deflateEnd(&THIS->gz);   /* mt_unlock(& THIS->lock); */ +  mt_destroy( & THIS->lock );   }      /*******************************************************************/         static void gz_inflate_create(INT32 args)   {    int tmp;    if(THIS->gz.state)    {
pike.git/src/modules/Gz/zlibmod.c:335:    THIS->gz.opaque=0;    inflateInit(&THIS->gz);    inflateEnd(&THIS->gz);   }      static void exit_gz_inflate(struct object *o)   {   /* mt_lock(& THIS->lock); */    inflateEnd(& THIS->gz);   /* mt_unlock(& THIS->lock); */ +  mt_destroy( & THIS->lock );   }         static void gz_crc32(INT32 args)   {    unsigned INT32 crc;    if (!args ||    sp[-args].type!=T_STRING)    error("Gz.crc32: illegal or missing argument 1 (expected string)\n");