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

version» Context lines:

pike.git/src/modules/Gz/zlibmod.c:239: Inside #if defined(Z_FIXED)
  #endif   #ifdef Z_FIXED    strategy != Z_FIXED &&   #endif    strategy != Z_HUFFMAN_ONLY)    {    Pike_error("Invalid compression strategy for gz_deflate->create()\n");    }    }    +  pop_n_elems(args); +     THIS->gz.zalloc=Z_NULL;    THIS->gz.zfree=Z_NULL;    THIS->gz.opaque=(void *)THIS;      /* mt_lock(& THIS->lock); */    do {    tmp=deflateInit2(&THIS->gz, THIS->level, Z_DEFLATED, wbits, 9, strategy );    if (tmp == Z_STREAM_ERROR) {    /* zlib 1.1.4's deflateInit2() only supports wbits 9..15 (not 8). */    if (wbits == -8) wbits = -9;
pike.git/src/modules/Gz/zlibmod.c:774:    {   /* mt_lock(& THIS->lock); */    inflateEnd(&THIS->gz);   /* mt_unlock(& THIS->lock); */    }          THIS->gz.zalloc=Z_NULL;    THIS->gz.zfree=Z_NULL;    THIS->gz.opaque=(void *)THIS; -  if( args && TYPEOF(Pike_sp[-1]) == PIKE_T_MAPPING) +  if(args && TYPEOF(Pike_sp[-1]) == PIKE_T_MAPPING)    {    struct mapping *m = Pike_sp[-1].u.mapping;    struct svalue *tmp;       if (GET_TYPE(STRING, "dictionary")) {    if (tmp->u.string->size_shift)    Pike_error("dictionary cannot be a wide string in "    "gz_inflate->create().\n");    THIS->dict = tmp->u.string;    add_ref(THIS->dict);
pike.git/src/modules/Gz/zlibmod.c:802:    {    if( args && TYPEOF(Pike_sp[-1]) == PIKE_T_INT )    {    tmp=inflateInit2(& THIS->gz, Pike_sp[-1].u.integer);    }    else    {    tmp=inflateInit( &THIS->gz );    }    } +  pop_n_elems(args);      /* mt_lock(& THIS->lock); */   /* mt_unlock(& THIS->lock); */    switch(tmp)    {    case Z_OK:   #if 0 /* this apparently works with newer zlibs only. */    if (THIS->dict) {    int err;