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.19 1998/03/24 22:16:09 grubba Exp $"); + RCSID("$Id: zlibmod.c,v 1.20 1998/04/29 23:17:24 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:59:    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; +  THIS->gz.opaque=(void *)THIS;       pop_n_elems(args);   /* mt_lock(& THIS->lock); */    level=deflateInit(&THIS->gz, level);   /* mt_unlock(& THIS->lock); */    switch(level)    {    case Z_OK:    return;   
pike.git/src/modules/Gz/zlibmod.c:192:    push_string(low_free_buf(&buf));   }         static void init_gz_deflate(struct object *o)   {    mt_init(& THIS->lock);    MEMSET(& THIS->gz, 0, sizeof(THIS->gz));    THIS->gz.zalloc=Z_NULL;    THIS->gz.zfree=Z_NULL; -  THIS->gz.opaque=THIS; +  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); */   }   
pike.git/src/modules/Gz/zlibmod.c:219:    if(THIS->gz.state)    {   /* mt_lock(& THIS->lock); */    inflateEnd(&THIS->gz);   /* mt_unlock(& THIS->lock); */    }          THIS->gz.zalloc=Z_NULL;    THIS->gz.zfree=Z_NULL; -  THIS->gz.opaque=THIS; +  THIS->gz.opaque=(void *)THIS;       pop_n_elems(args);   /* mt_lock(& THIS->lock); */    tmp=inflateInit(& THIS->gz);   /* mt_unlock(& THIS->lock); */    switch(tmp)    {    case Z_OK:    return;