Mercurial > vba-linux
comparison src/win32/7zip/7z/CPP/7zip/Compress/RarCodecsRegister.cpp @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 // RarCodecsRegister.cpp | |
2 | |
3 #include "StdAfx.h" | |
4 | |
5 #include "../Common/RegisterCodec.h" | |
6 | |
7 #include "Rar1Decoder.h" | |
8 #include "Rar2Decoder.h" | |
9 #include "Rar3Decoder.h" | |
10 | |
11 #define CREATE_CODEC(x) static void *CreateCodec ## x() { return (void *)(ICompressCoder *)(new NCompress::NRar ## x::CDecoder); } | |
12 | |
13 CREATE_CODEC(1) | |
14 CREATE_CODEC(2) | |
15 CREATE_CODEC(3) | |
16 | |
17 #define RAR_CODEC(x, name) { CreateCodec ## x, 0, 0x040300 + x, L"Rar" name, 1, false } | |
18 | |
19 static CCodecInfo g_CodecsInfo[] = | |
20 { | |
21 RAR_CODEC(1, L"1"), | |
22 RAR_CODEC(2, L"2"), | |
23 RAR_CODEC(3, L"3"), | |
24 }; | |
25 | |
26 REGISTER_CODECS(Rar) |