uInt        iZrslt;
int         iZrslt;
mng_retcode mngzlib_inflaterows (mng_datap  pData,                                 mng_uint32 iInlen,                                 mng_uint8p pIndata){  uInt        iZrslt;  mng_retcode iRslt;  mng_ptr     pSwap;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_ZLIB_INFLATEROWS, MNG_LC_START)#endif  pData->sZlib.next_in   = pIndata;    /* let zlib know where to get stuff */  pData->sZlib.avail_in  = (uInt)iInlen;  if (pData->sZlib.next_out == 0)      /* initialize output variables ? */  {                                    /* let zlib know where to store stuff */    pData->sZlib.next_out  = pData->pWorkrow;    pData->sZlib.avail_out = (uInt)(pData->iRowsize + 1);  }  do  {                                    /* now inflate a row */    iZrslt = inflate (&pData->sZlib, Z_SYNC_FLUSH);                                       /* produced a full row ? */    if (((iZrslt == Z_OK) || (iZrslt == Z_STREAM_END)) &&        (pData->sZlib.avail_out == 0))    {                                   /* shouldn't we be at the end ? */      if (pData->iRow >= (mng_int32)pData->iDataheight)/*        MNG_ERROR (pData, MNG_TOOMUCHIDAT) */ ;      else      {                                 /* filter the row if necessary */        if (pData->pWorkrow[0])          iRslt = filter_a_row (pData);        else          iRslt = MNG_NOERROR;        if (!iRslt)        {#ifdef MNG_INCLUDE_JNG          if (pData->bHasJHDR)         /* is JNG alpha-channel ? */          {                            /* just store in object ? */            if ((!iRslt) && (pData->fStorerow))              iRslt = ((mng_storerow)pData->fStorerow)     (pData);          }          else#endif /* MNG_INCLUDE_JNG */          {                            /* process this row */            if ((!iRslt) && (pData->fProcessrow))              iRslt = ((mng_processrow)pData->fProcessrow) (pData);                                       /* store in object ? */            if ((!iRslt) && (pData->fStorerow))              iRslt = ((mng_storerow)pData->fStorerow)     (pData);                                       /* color correction ? */            if ((!iRslt) && (pData->fCorrectrow))              iRslt = ((mng_correctrow)pData->fCorrectrow) (pData);                                       /* slap onto canvas ? */            if ((!iRslt) && (pData->fDisplayrow))            {              iRslt = ((mng_displayrow)pData->fDisplayrow) (pData);              if (!iRslt)              /* check progressive display refresh */                iRslt = display_progressive_check (pData);            }          }        }        if (iRslt)                     /* on error bail out */          MNG_ERROR (pData, iRslt);                                       /* swap row-pointers */        pSwap           = pData->pWorkrow;        pData->pWorkrow = pData->pPrevrow;        pData->pPrevrow = pSwap;       /* so prev points to the processed row! */        iRslt = next_row (pData);      /* adjust variables for next row */        if (iRslt)                     /* on error bail out */          MNG_ERROR (pData, iRslt);      }                                       /* let zlib know where to store next output */      pData->sZlib.next_out  = pData->pWorkrow;      pData->sZlib.avail_out = (uInt)(pData->iRowsize + 1);    }  }                                    /* until some error or EOI */  while ((iZrslt == Z_OK) && (pData->sZlib.avail_in > 0));                                       /* on error bail out */  if ((iZrslt != Z_OK) && (iZrslt != Z_STREAM_END))    MNG_ERRORZ (pData, (mng_uint32)iZrslt)#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_ZLIB_INFLATEROWS, MNG_LC_END)#endif  return MNG_NOERROR;}