Mercurial > vba-linux
annotate src/win32/7zip/7z/CPP/7zip/Archive/GZip/GZipRegister.cpp @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
rev | line source |
---|---|
rlm@1 | 1 // GZipRegister.cpp |
rlm@1 | 2 |
rlm@1 | 3 #include "StdAfx.h" |
rlm@1 | 4 |
rlm@1 | 5 #include "../../Common/RegisterArc.h" |
rlm@1 | 6 |
rlm@1 | 7 #include "GZipHandler.h" |
rlm@1 | 8 static IInArchive *CreateArc() { return new NArchive::NGZip::CHandler; } |
rlm@1 | 9 #ifndef EXTRACT_ONLY |
rlm@1 | 10 static IOutArchive *CreateArcOut() { return new NArchive::NGZip::CHandler; } |
rlm@1 | 11 #else |
rlm@1 | 12 #define CreateArcOut 0 |
rlm@1 | 13 #endif |
rlm@1 | 14 |
rlm@1 | 15 static CArcInfo g_ArcInfo = |
rlm@1 | 16 { L"GZip", L"gz gzip tgz tpz", L"* * .tar .tar", 0xEF, { 0x1F, 0x8B, 8 }, 3, true, CreateArc, CreateArcOut }; |
rlm@1 | 17 |
rlm@1 | 18 REGISTER_ARC(GZip) |