diff options
Diffstat (limited to 'CPP/7zip/Archive/Tar/TarRegister.cpp')
-rw-r--r-- | CPP/7zip/Archive/Tar/TarRegister.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/CPP/7zip/Archive/Tar/TarRegister.cpp b/CPP/7zip/Archive/Tar/TarRegister.cpp index 9e0f6f21..f7b256df 100644 --- a/CPP/7zip/Archive/Tar/TarRegister.cpp +++ b/CPP/7zip/Archive/Tar/TarRegister.cpp @@ -9,18 +9,15 @@ namespace NArchive { namespace NTar { -IMP_CreateArcIn -IMP_CreateArcOut +static const Byte k_Signature[] = { 'u', 's', 't', 'a', 'r' }; -static CArcInfo g_ArcInfo = - { "tar", "tar", 0, 0xEE, - 5, { 'u', 's', 't', 'a', 'r' }, +REGISTER_ARC_IO( + "tar", "tar", 0, 0xEE, + k_Signature, NFileHeader::kUstarMagic_Offset, NArcInfoFlags::kStartOpen | NArcInfoFlags::kSymLinks | NArcInfoFlags::kHardLinks, - REF_CreateArc_Pair, IsArc_Tar }; - -REGISTER_ARC(Tar) - + IsArc_Tar) + }} |