Mercurial > vba-linux
diff src/win32/7zip/7z/CPP/7zip/Compress/LzmaRegister.cpp @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Compress/LzmaRegister.cpp Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,20 @@ 1.4 +// LzmaRegister.cpp 1.5 + 1.6 +#include "StdAfx.h" 1.7 + 1.8 +#include "../Common/RegisterCodec.h" 1.9 + 1.10 +#include "LzmaDecoder.h" 1.11 + 1.12 +static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NLzma::CDecoder); } 1.13 +#ifndef EXTRACT_ONLY 1.14 +#include "LzmaEncoder.h" 1.15 +static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NLzma::CEncoder); } 1.16 +#else 1.17 +#define CreateCodecOut 0 1.18 +#endif 1.19 + 1.20 +static CCodecInfo g_CodecInfo = 1.21 + { CreateCodec, CreateCodecOut, 0x030101, L"LZMA", 1, false }; 1.22 + 1.23 +REGISTER_CODEC(LZMA)