Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pavlov <ipavlov@users.sourceforge.net>2010-10-04 04:00:00 +0400
committerKornel LesiƄski <kornel@geekhood.net>2016-05-28 02:16:04 +0300
commit2eb60a059819da595efb8e1de49f04c241f5b981 (patch)
treefe5423b6679c605b545b726cb875883ea9299b31 /CPP/7zip/Compress
parent044e4bb7413beb329edfa3ad27b492d819cdc811 (diff)
9.179.17
Diffstat (limited to 'CPP/7zip/Compress')
-rwxr-xr-xCPP/7zip/Compress/BZip2Decoder.cpp7
-rwxr-xr-xCPP/7zip/Compress/DeflateEncoder.cpp8
-rwxr-xr-xCPP/7zip/Compress/LzxDecoder.cpp2
-rwxr-xr-xCPP/7zip/Compress/Rar3Vm.cpp14
4 files changed, 17 insertions, 14 deletions
diff --git a/CPP/7zip/Compress/BZip2Decoder.cpp b/CPP/7zip/Compress/BZip2Decoder.cpp
index bc252d09..cb1f981a 100755
--- a/CPP/7zip/Compress/BZip2Decoder.cpp
+++ b/CPP/7zip/Compress/BZip2Decoder.cpp
@@ -10,8 +10,9 @@
namespace NCompress {
namespace NBZip2 {
-#define NO_INLINE MY_FAST_CALL
-
+#undef NO_INLINE
+#define NO_INLINE
+
static const UInt32 kNumThreadsMax = 4;
static const UInt32 kBufferSize = (1 << 17);
@@ -422,7 +423,7 @@ CDecoder::CDecoder()
m_States = 0;
m_NumThreadsPrev = 0;
NumThreads = 1;
- #endif;
+ #endif
_needInStreamInit = true;
}
diff --git a/CPP/7zip/Compress/DeflateEncoder.cpp b/CPP/7zip/Compress/DeflateEncoder.cpp
index 28906e8c..35a81cae 100755
--- a/CPP/7zip/Compress/DeflateEncoder.cpp
+++ b/CPP/7zip/Compress/DeflateEncoder.cpp
@@ -9,8 +9,10 @@
#include "DeflateEncoder.h"
-#if _MSC_VER >= 1300
-#define NO_INLINE __declspec(noinline)
+#undef NO_INLINE
+
+#ifdef _MSC_VER
+#define NO_INLINE MY_NO_INLINE
#else
#define NO_INLINE
#endif
@@ -580,7 +582,7 @@ NO_INLINE UInt32 Huffman_GetPrice(const UInt32 *freqs, const Byte *lens, UInt32
for (i = 0; i < num; i++)
price += lens[i] * freqs[i];
return price;
-};
+}
NO_INLINE UInt32 Huffman_GetPrice_Spec(const UInt32 *freqs, const Byte *lens, UInt32 num, const Byte *extraBits, UInt32 extraBase)
{
diff --git a/CPP/7zip/Compress/LzxDecoder.cpp b/CPP/7zip/Compress/LzxDecoder.cpp
index 6224bea5..d1027f1f 100755
--- a/CPP/7zip/Compress/LzxDecoder.cpp
+++ b/CPP/7zip/Compress/LzxDecoder.cpp
@@ -164,7 +164,7 @@ void CDecoder::ClearPrevLevels()
m_LastMainLevels[i] = 0;
for (i = 0; i < kNumLenSymbols; i++)
m_LastLenLevels[i] = 0;
-};
+}
HRESULT CDecoder::CodeSpec(UInt32 curSize)
diff --git a/CPP/7zip/Compress/Rar3Vm.cpp b/CPP/7zip/Compress/Rar3Vm.cpp
index 759dfbdb..74051dd7 100755
--- a/CPP/7zip/Compress/Rar3Vm.cpp
+++ b/CPP/7zip/Compress/Rar3Vm.cpp
@@ -778,13 +778,13 @@ struct StandardFilterSignature
}
kStdFilters[]=
{
- 53, 0xad576887, SF_E8,
- 57, 0x3cd7e57e, SF_E8E9,
- 120, 0x3769893f, SF_ITANIUM,
- 29, 0x0e06077d, SF_DELTA,
- 149, 0x1c2c5dc8, SF_RGB,
- 216, 0xbc85e701, SF_AUDIO,
- 40, 0x46b9c560, SF_UPCASE
+ { 53, 0xad576887, SF_E8 },
+ { 57, 0x3cd7e57e, SF_E8E9 },
+ { 120, 0x3769893f, SF_ITANIUM },
+ { 29, 0x0e06077d, SF_DELTA },
+ { 149, 0x1c2c5dc8, SF_RGB },
+ { 216, 0xbc85e701, SF_AUDIO },
+ { 40, 0x46b9c560, SF_UPCASE }
};
static int FindStandardFilter(const Byte *code, UInt32 codeSize)