diff options
Diffstat (limited to 'experimental/tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c')
-rw-r--r-- | experimental/tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/experimental/tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c b/experimental/tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c index c7dc233c4..1a9606a34 100644 --- a/experimental/tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c +++ b/experimental/tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c @@ -321,7 +321,7 @@ void mng_put_uint16 (mng_uint8p pBuf, /* ************************************************************************** */ -mng_uint8p tqfind_null (mng_uint8p pIn) +mng_uint8p find_null (mng_uint8p pIn) { mng_uint8p pOut = pIn; @@ -1705,7 +1705,7 @@ READ_CHUNK (read_iccp) MNG_ERROR (pData, MNG_INVALIDLENGTH) } - pTemp = tqfind_null (pRawdata); /* tqfind null-separator */ + pTemp = find_null (pRawdata); /* find null-separator */ /* not found inside input-data ? */ if ((pTemp - pRawdata) > (mng_int32)iRawlen) MNG_ERROR (pData, MNG_NULLNOTFOUND) @@ -1834,8 +1834,8 @@ READ_CHUNK (read_iccp) if (iRawlen) /* not empty ? */ { if (!pBuf) /* hasn't been unpuzzled it yet ? */ - { /* tqfind null-separator */ - pTemp = tqfind_null (pRawdata); + { /* find null-separator */ + pTemp = find_null (pRawdata); /* not found inside input-data ? */ if ((pTemp - pRawdata) > (mng_int32)iRawlen) MNG_ERROR (pData, MNG_NULLNOTFOUND) @@ -1909,7 +1909,7 @@ READ_CHUNK (read_text) if (iRawlen < 2) /* length must be at least 2 */ MNG_ERROR (pData, MNG_INVALIDLENGTH) - pTemp = tqfind_null (pRawdata); /* tqfind the null separator */ + pTemp = find_null (pRawdata); /* find the null separator */ /* not found inside input-data ? */ if ((pTemp - pRawdata) > (mng_int32)iRawlen) MNG_ERROR (pData, MNG_NULLNOTFOUND) @@ -2008,7 +2008,7 @@ READ_CHUNK (read_ztxt) if (iRawlen < 3) /* length must be at least 3 */ MNG_ERROR (pData, MNG_INVALIDLENGTH) - pTemp = tqfind_null (pRawdata); /* tqfind the null separator */ + pTemp = find_null (pRawdata); /* find the null separator */ /* not found inside input-data ? */ if ((pTemp - pRawdata) > (mng_int32)iRawlen) MNG_ERROR (pData, MNG_NULLNOTFOUND) @@ -2150,9 +2150,9 @@ READ_CHUNK (read_itxt) if (iRawlen < 6) /* length must be at least 6 */ MNG_ERROR (pData, MNG_INVALIDLENGTH) - pNull1 = tqfind_null (pRawdata); /* tqfind the null separators */ - pNull2 = tqfind_null (pNull1+3); - pNull3 = tqfind_null (pNull2+1); + pNull1 = find_null (pRawdata); /* find the null separators */ + pNull2 = find_null (pNull1+3); + pNull3 = find_null (pNull2+1); /* not found inside input-data ? */ if (((pNull1 - pRawdata) > (mng_int32)iRawlen) || ((pNull2 - pRawdata) > (mng_int32)iRawlen) || @@ -2718,7 +2718,7 @@ READ_CHUNK (read_splt) if (iRawlen) { - pTemp = tqfind_null (pRawdata); /* tqfind null-separator */ + pTemp = find_null (pRawdata); /* find null-separator */ /* not found inside input-data ? */ if ((pTemp - pRawdata) > (mng_int32)iRawlen) MNG_ERROR (pData, MNG_NULLNOTFOUND) @@ -3943,7 +3943,7 @@ READ_CHUNK (read_fram) } else { - pTemp = tqfind_null (pRawdata+1); /* tqfind null-separator */ + pTemp = find_null (pRawdata+1); /* find null-separator */ /* not found inside input-data ? */ if ((pTemp - pRawdata) > (mng_int32)iRawlen) MNG_ERROR (pData, MNG_NULLNOTFOUND) @@ -4638,7 +4638,7 @@ READ_CHUNK (read_save) } } - pNull = tqfind_null (pTemp); /* get the name length */ + pNull = find_null (pTemp); /* get the name length */ if ((pNull - pRawdata) > (mng_int32)iRawlen) { @@ -4956,8 +4956,8 @@ mng_bool CheckKeyword (mng_datap pData, bOke = pData->fProcessneed ((mng_handle)pData, (mng_pchar)pKeyword); if (!bOke) - { /* tqfind the keyword length */ - mng_uint8p pNull = tqfind_null (pKeyword); + { /* find the keyword length */ + mng_uint8p pNull = find_null (pKeyword); if (pNull - pKeyword == 4) /* test a chunk ? */ { /* get the chunk-id */ @@ -5045,13 +5045,13 @@ READ_CHUNK (read_need) MNG_COPY (zKeywords, pRawdata, iRawlen) pTemp = (mng_uint8p)zKeywords; - pNull = tqfind_null (pTemp); + pNull = find_null (pTemp); while ((bOke) && (pNull < (mng_uint8p)zKeywords + iRawlen)) { bOke = CheckKeyword (pData, pTemp); pTemp = pNull + 1; - pNull = tqfind_null (pTemp); + pNull = find_null (pTemp); } if (bOke) |