Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add C implementations of Kauai decompressors #31

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions kauai/src/codkauai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ bool KCDC::_FDecode(void *pvSrc, long cbSrc, void *pvDst, long cbDst, long *pcbD

#else //! IN_80386

#include "kcdc_c.h"

*pcbDst = cbTot;
return fTrue;

#if 0 // BROKEN; KEPT FOR REFERENCE
long cb, dib, ibit, cbit;
register ulong luCur;
byte *pbT;
Expand Down Expand Up @@ -560,6 +566,7 @@ bool KCDC::_FDecode(void *pvSrc, long cbSrc, void *pvDst, long cbDst, long *pcbD

#undef _FTest
#undef _Advance
#endif // 0

#endif //! IN_80386

Expand Down Expand Up @@ -835,6 +842,12 @@ bool KCDC::_FDecode2(void *pvSrc, long cbSrc, void *pvDst, long cbDst, long *pcb

#else //! IN_80386

#include "kcd2_c.h"

*pcbDst = cbTot;
return fTrue;

#if 0 // BROKEN; KEPT FOR REFERENCE
long cb, dib, ibit, cbit;
register ulong luCur;
byte bT;
Expand Down Expand Up @@ -936,6 +949,8 @@ bool KCDC::_FDecode2(void *pvSrc, long cbSrc, void *pvDst, long cbDst, long *pcb
#undef _FTest
#undef _Advance

#endif // 0

#endif //! IN_80386

LFail:
Expand Down
Loading