"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "CPP/Common/CrcReg.cpp" between
p7zip_15.14.1_src_all.tar.gz and p7zip_16.02_src_all.tar.gz

About: p7zip is a command-line file archiver with a high compression ratio (a port of the Windows program 7za.exe).

CrcReg.cpp  (p7zip_15.14.1_src_all):CrcReg.cpp  (p7zip_16.02_src_all)
skipping to change at line 37 skipping to change at line 37
public CMyUnknownImp public CMyUnknownImp
{ {
UInt32 _crc; UInt32 _crc;
CRC_FUNC _updateFunc; CRC_FUNC _updateFunc;
Byte mtDummy[1 << 7]; Byte mtDummy[1 << 7];
bool SetFunctions(UInt32 tSize); bool SetFunctions(UInt32 tSize);
public: public:
CCrcHasher(): _crc(CRC_INIT_VAL) { SetFunctions(0); } CCrcHasher(): _crc(CRC_INIT_VAL) { SetFunctions(0); }
MY_UNKNOWN_IMP1(ICompressSetCoderProperties) MY_UNKNOWN_IMP2(IHasher, ICompressSetCoderProperties)
INTERFACE_IHasher(;) INTERFACE_IHasher(;)
STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps); STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps);
}; };
bool CCrcHasher::SetFunctions(UInt32 tSize) bool CCrcHasher::SetFunctions(UInt32 tSize)
{ {
_updateFunc = g_CrcUpdate; _updateFunc = g_CrcUpdate;
if (tSize == 1) if (tSize == 1)
_updateFunc = CrcUpdateT1; _updateFunc = CrcUpdateT1;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS