Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: third_party/lzma/v4_65/files/CPP/7zip/Compress/BranchRegister.cpp

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // BranchRegister.cpp
2
3 #include "StdAfx.h"
4
5 #include "../Common/RegisterCodec.h"
6
7 #include "BranchMisc.h"
8
9 #define CREATE_CODEC(x) \
10 static void *CreateCodec ## x() { return (void *)(ICompressFilter *)(new C ## x ## _Decoder); } \
11 static void *CreateCodec ## x ## Out() { return (void *)(ICompressFilter *)(ne w C ## x ## _Encoder); }
12
13 CREATE_CODEC(BC_PPC)
14 CREATE_CODEC(BC_IA64)
15 CREATE_CODEC(BC_ARM)
16 CREATE_CODEC(BC_ARMT)
17 CREATE_CODEC(BC_SPARC)
18
19 #define METHOD_ITEM(x, id1, id2, name) { CreateCodec ## x, CreateCodec ## x ## O ut, 0x03030000 + (id1 * 256) + id2, name, 1, true }
20
21 static CCodecInfo g_CodecsInfo[] =
22 {
23 METHOD_ITEM(BC_PPC, 0x02, 0x05, L"PPC"),
24 METHOD_ITEM(BC_IA64, 0x04, 1, L"IA64"),
25 METHOD_ITEM(BC_ARM, 0x05, 1, L"ARM"),
26 METHOD_ITEM(BC_ARMT, 0x07, 1, L"ARMT"),
27 METHOD_ITEM(BC_SPARC, 0x08, 0x05, L"SPARC")
28 };
29
30 REGISTER_CODECS(Branch)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698