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

version» Context lines:

pike.git/src/modules/Gz/zlibmod.c:838:   #endif       do    {    char *loc;    int ret;    loc=low_make_buf_space(BUF,buf);    THREADS_ALLOW();    this->gz.next_out=(Bytef *)loc;    this->gz.avail_out=BUF; - #if 0 -  fprintf(stderr,"INFLATE[%d]: avail_out=%7d avail_in=%7d flush=%d\n", -  fnord, -  this->gz.avail_out, -  this->gz.avail_in, -  flush); -  fprintf(stderr,"INFLATE[%d]: mode=%d\n",fnord, -  this->gz.state ? *(int *)(this->gz.state) : -1); - #endif +        ret=inflate(& this->gz, flush); - #if 0 -  fprintf(stderr,"Result [%d]: avail_out=%7d avail_in=%7d ret=%d\n", -  fnord, -  this->gz.avail_out, -  this->gz.avail_in, -  ret); - #endif +        THREADS_DISALLOW();    low_make_buf_space(-((ptrdiff_t)this->gz.avail_out), buf);       if(ret == Z_BUF_ERROR) ret=Z_OK;       if (ret == Z_NEED_DICT && this->dict)    ret = inflateSetDictionary(&this->gz,    (const Bytef*)this->dict->str,    this->dict->len);