Index: third_party/lzma_sdk/LzmaLib.c |
diff --git a/third_party/lzma_sdk/LzmaLib.c b/third_party/lzma_sdk/LzmaLib.c |
index 02a511857c988a7b05a6d5cc69164887cd924ef9..706e9e58cd61c7f569255595568a74ee25f1d2c1 100644 |
--- a/third_party/lzma_sdk/LzmaLib.c |
+++ b/third_party/lzma_sdk/LzmaLib.c |
@@ -1,18 +1,12 @@ |
/* LzmaLib.c -- LZMA library wrapper |
-2008-08-05 |
-Igor Pavlov |
-Public domain */ |
+2015-06-13 : Igor Pavlov : Public domain */ |
-#include "LzmaEnc.h" |
-#include "LzmaDec.h" |
#include "Alloc.h" |
+#include "LzmaDec.h" |
+#include "LzmaEnc.h" |
#include "LzmaLib.h" |
-static void *SzAlloc(void *p, size_t size) { p = p; return MyAlloc(size); } |
-static void SzFree(void *p, void *address) { p = p; MyFree(address); } |
-static ISzAlloc g_Alloc = { SzAlloc, SzFree }; |
- |
-MY_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen, |
+MY_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen, |
unsigned char *outProps, size_t *outPropsSize, |
int level, /* 0 <= level <= 9, default = 5 */ |
unsigned dictSize, /* use (1 << N) or (3 << N). 4 KB < dictSize <= 128 MB */ |
@@ -38,7 +32,7 @@ MY_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned cha |
} |
-MY_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t *srcLen, |
+MY_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t *srcLen, |
const unsigned char *props, size_t propsSize) |
{ |
ELzmaStatus status; |