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.23 2001/02/08 19:09:18 hubbe Exp $"); + RCSID("$Id: zlibmod.c,v 1.24 2001/02/15 18:13:16 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:114:    THREADS_ALLOW();    ret=deflate(& this->gz, flush);    THREADS_DISALLOW();    if ((ret != Z_BUF_ERROR) || (this->gz.avail_out > MAX_BUF)) {    break;    }    low_make_buf_space(BUF, buf);    this->gz.avail_out += BUF;    }    low_make_buf_space(-this->gz.avail_out,buf); +  if(ret == Z_BUF_ERROR) ret=Z_OK;    if(ret != Z_OK)    {    fail=ret;    break;    }    } while(!this->gz.avail_out || flush==Z_FINISH || this->gz.avail_in);    }       mt_unlock(& this->lock);    return fail;