lzma/7zDecode.c
changeset 775 a8cc6b8a8e9c
parent 774 916c2e81e77f
child 780 8d029fecde3a
equal deleted inserted replaced
774:916c2e81e77f 775:a8cc6b8a8e9c
     1 /* 7zDecode.c */
     1 /* 7zDecode.c */
     2 
     2 
     3 #include "7zDecode.h"
     3 #include "7zDecode.h"
     4 #include "LzmaStateDecode.h" // NOTE : Modified to use LzmaStateDecode(.c,.h) instead of LzmaDecode(.c,.h) and hardcoded _SZ_ONE_DIRECTORY behaviour
     4 #include "LzmaStateDecode.h" /* NOTE : Modified to use LzmaStateDecode(.c,.h) instead of LzmaDecode(.c,.h) and hardcoded _SZ_ONE_DIRECTORY behaviour */
     5 
     5 
     6 CMethodID k_Copy = { { 0x0 }, 1 };
     6 CMethodID k_Copy = { { 0x0 }, 1 };
     7 CMethodID k_LZMA = { { 0x3, 0x1, 0x1 }, 3 };
     7 CMethodID k_LZMA = { { 0x3, 0x1, 0x1 }, 3 };
     8 
     8 
     9 #ifdef _LZMA_IN_CB
     9 #ifdef _LZMA_IN_CB
   129         &lzmaCallback.InCallback,
   129         &lzmaCallback.InCallback,
   130         #else
   130         #else
   131         inBuffer, (size_t)inSize, &inProcessed,
   131         inBuffer, (size_t)inSize, &inProcessed,
   132         #endif
   132         #endif
   133         outBuffer, (size_t)outSize, &outSizeProcessedLoc,
   133         outBuffer, (size_t)outSize, &outSizeProcessedLoc,
   134 	1); // NOTE : Added by Dennis Schridde to make SzDecode be compatible with LzmaStateDecode(.c,.h)
   134 	1); /* NOTE : Added by Dennis Schridde to make SzDecode be compatible with LzmaStateDecode(.c,.h) */
   135     *outSizeProcessed = (size_t)outSizeProcessedLoc;
   135     *outSizeProcessed = (size_t)outSizeProcessedLoc;
   136     allocMain->Free(state.Probs);
   136     allocMain->Free(state.Probs);
   137     #ifdef _LZMA_OUT_READ
   137     #ifdef _LZMA_OUT_READ
   138     allocMain->Free(state.Dictionary);
   138     allocMain->Free(state.Dictionary);
   139     #endif
   139     #endif