Cosmetic changes.

This commit is contained in:
Markus F.X.J. Oberhumer
2006-09-03 19:13:35 +02:00
parent 57df7601d9
commit 631a1a4ddc
+15 -6
View File
@@ -29,20 +29,25 @@
// //
**************************************************************************/ **************************************************************************/
#define ACC_LIBC_NAKED #define ACC_LIBC_NAKED 1
#define ACC_OS_FREESTANDING #define ACC_OS_FREESTANDING 1
#include "miniacc.h" #include "miniacc.h"
#if 0
#undef _LZMA_IN_CB #undef _LZMA_IN_CB
#undef _LZMA_OUT_READ #undef _LZMA_OUT_READ
#undef _LZMA_PROB32 #undef _LZMA_PROB32
#undef _LZMA_LOC_OPT #undef _LZMA_LOC_OPT
#endif
#if 0 #if 0
#include "C/7zip/Compress/LZMA_C/LzmaDecode.h" #include "C/7zip/Compress/LZMA_C/LzmaDecode.h"
#include "C/7zip/Compress/LZMA_C/LzmaDecode.c" #if (ACC_ABI_LP64)
#else
ACC_COMPILE_TIME_ASSERT_HEADER(sizeof(CLzmaDecoderState) == 16) ACC_COMPILE_TIME_ASSERT_HEADER(sizeof(CLzmaDecoderState) == 16)
#endif
#include "C/7zip/Compress/LZMA_C/LzmaDecode.c"
#else #else
@@ -53,10 +58,14 @@ ACC_COMPILE_TIME_ASSERT_HEADER(sizeof(CLzmaDecoderState) == 16)
#undef LzmaDecode #undef LzmaDecode
typedef struct { typedef struct {
struct { unsigned char lc, lp, pb, dummy; } Properties; struct { unsigned char lc, lp, pb, dummy; } Properties;
CProb Probs[6]; #ifdef _LZMA_PROB32
// CProb *Probs; CProb Probs[8191];
#else
CProb Probs[16382];
#endif
} CLzmaDecoderState; } CLzmaDecoderState;
ACC_COMPILE_TIME_ASSERT_HEADER(sizeof(CLzmaDecoderState) == 16) ACC_COMPILE_TIME_ASSERT_HEADER(sizeof(CLzmaDecoderState) == 32768)
#define CLzmaDecoderState const CLzmaDecoderState #define CLzmaDecoderState const CLzmaDecoderState
#include "C/7zip/Compress/LZMA_C/LzmaDecode.c" #include "C/7zip/Compress/LZMA_C/LzmaDecode.c"