if (pData->bDisplaying)
READ_CHUNK (read_ordr){#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_READ_ORDR, MNG_LC_START)#endif                                       /* sequence checks */  if ((!pData->bHasMHDR) || (!pData->bHasDHDR))    MNG_ERROR (pData, MNG_SEQUENCEERROR)                                       /* check length */  if ((iRawlen < 5) || ((iRawlen % 5) != 0))    MNG_ERROR (pData, MNG_INVALIDLENGTH)#ifdef MNG_SUPPORT_DISPLAY  if (pData->bDisplaying)  {    /* TODO: something !!! */  }#endif /* MNG_SUPPORT_DISPLAY */#ifdef MNG_STORE_CHUNKS  if (pData->bStorechunks)  {                                    /* initialize storage */    mng_retcode iRetcode = ((mng_chunk_headerp)pHeader)->fCreate (pData, pHeader, ppChunk);    if (iRetcode)                      /* on error bail out */      return iRetcode;                                       /* store the fields */    ((mng_ordrp)*ppChunk)->iCount = iRawlen / 5;    if (iRawlen)    {      mng_uint32      iX;      mng_ordr_entryp pEntry;      mng_uint8p      pTemp = pRawdata;            MNG_ALLOC (pData, pEntry, iRawlen)      ((mng_ordrp)*ppChunk)->pEntries = pEntry;      for (iX = 0; iX < iRawlen / 5; iX++)      {        pEntry->iChunkname = mng_get_uint32 (pTemp);        pEntry->iOrdertype = *(pTemp+4);        pTemp += 5;        pEntry++;      }    }  }#endif /* MNG_STORE_CHUNKS */#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_READ_ORDR, MNG_LC_END)#endif  return MNG_NOERROR;                  /* done */}