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

version» Context lines:

pike.git/src/modules/Gz/zlibmod.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: zlibmod.c,v 1.65 2003/09/10 15:21:58 mast Exp $ + || $Id: zlibmod.c,v 1.66 2004/03/19 14:36:24 nilsson Exp $   */      #include "global.h" - RCSID("$Id: zlibmod.c,v 1.65 2003/09/10 15:21:58 mast Exp $"); + RCSID("$Id: zlibmod.c,v 1.66 2004/03/19 14:36:24 nilsson Exp $");      #include "zlib_machine.h"   #include "module.h"      #if !defined(HAVE_LIBZ) && !defined(HAVE_LIBGZ)   #undef HAVE_ZLIB_H   #endif      #ifdef HAVE_ZLIB_H   
pike.git/src/modules/Gz/zlibmod.c:175:    int ret=0;       THREADS_ALLOW();    mt_lock(& this->lock);    THREADS_DISALLOW();    if(!this->gz.state)    ret=Z_STREAM_ERROR;    else    do    { -  this->gz.next_out=low_make_buf_space( +  this->gz.next_out=(Bytef *)low_make_buf_space(    /* recommended by the zlib people */    (this->gz.avail_out =    this->gz.avail_in ?    this->gz.avail_in+this->gz.avail_in/1000+42 :    4096),    buf);       THREADS_ALLOW();    ret=deflate(& this->gz, flush);    THREADS_DISALLOW();
pike.git/src/modules/Gz/zlibmod.c:524:       push_string(low_free_buf(&buf));       if(fail == Z_STREAM_END)    {    struct pike_string *old_epilogue = this->epilogue;    if(old_epilogue) {    push_string(old_epilogue);    this->epilogue = NULL;    } -  push_string(make_shared_binary_string(this->gz.next_in, +  push_string(make_shared_binary_string((const char *)this->gz.next_in,    this->gz.avail_in));    if(old_epilogue)    f_add(2);    if(sp[-1].type == PIKE_T_STRING)    this->epilogue = (--sp)->u.string;    else    pop_stack();    }       if(fail != Z_STREAM_END && fail!=Z_OK && !sp[-1].u.string->len)