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:
Diffstat (limited to 'CPP/7zip/Archive/Zip/ZipRegister.cpp')
-rw-r--r--CPP/7zip/Archive/Zip/ZipRegister.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/CPP/7zip/Archive/Zip/ZipRegister.cpp b/CPP/7zip/Archive/Zip/ZipRegister.cpp
index 545e76c6..2be783e6 100644
--- a/CPP/7zip/Archive/Zip/ZipRegister.cpp
+++ b/CPP/7zip/Archive/Zip/ZipRegister.cpp
@@ -9,23 +9,18 @@
namespace NArchive {
namespace NZip {
-IMP_CreateArcIn
-IMP_CreateArcOut
-
-static CArcInfo g_ArcInfo =
- { "zip", "zip zipx jar xpi odt ods docx xlsx epub", 0, 1,
- 3 + 4 + 4 + 6,
- {
+static const Byte k_Signature[] = {
4, 0x50, 0x4B, 0x03, 0x04,
4, 0x50, 0x4B, 0x05, 0x06,
- 6, 0x50, 0x4B, 0x30, 0x30, 0x50, 0x4B,
- },
+ 6, 0x50, 0x4B, 0x30, 0x30, 0x50, 0x4B };
+
+REGISTER_ARC_IO(
+ "zip", "zip zipx jar xpi odt ods docx xlsx epub", 0, 1,
+ k_Signature,
0,
NArcInfoFlags::kFindSignature |
NArcInfoFlags::kMultiSignature |
NArcInfoFlags::kUseGlobalOffset,
- REF_CreateArc_Pair, IsArc_Zip };
-
-REGISTER_ARC(Zip)
-
+ IsArc_Zip)
+
}}