From e6dd1487ff2a835924f09195c67867fc26126b2a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 22 Jul 2003 02:10:30 +0000 Subject: [PATCH] Upgrade ZipArchive to 2.3.4. SMPackage compiles in VC7 now. --- .../src/smpackage/ZipArchive/ChangeLog.txt | 84 +- .../src/smpackage/ZipArchive/CodeProject.html | 380 ----- .../src/smpackage/ZipArchive/License.txt | 37 +- .../src/smpackage/ZipArchive/Linux/Makefile | 86 ++ .../ZipArchive/Linux/ZipFileMapping.h | 70 + .../ZipArchive/Linux/ZipPathComponent.cpp | 97 ++ .../ZipArchive/Linux/ZipPlatform.cpp | 273 ++++ stepmania/src/smpackage/ZipArchive/Readme.txt | 269 ++-- stepmania/src/smpackage/ZipArchive/StdAfx.cpp | 2 +- stepmania/src/smpackage/ZipArchive/StdAfx.h | 16 +- .../ZipArchive/Windows/ZipFileMapping.h | 6 +- .../ZipArchive/Windows/ZipPathComponent.cpp | 2 +- .../ZipArchive/Windows/ZipPlatform.cpp | 4 +- .../smpackage/ZipArchive/ZipAbstractFile.h | 24 +- .../src/smpackage/ZipArchive/ZipArchive.cpp | 1273 +++++++++++------ .../src/smpackage/ZipArchive/ZipArchive.dox | 776 +--------- .../src/smpackage/ZipArchive/ZipArchive.dsp | 28 +- .../src/smpackage/ZipArchive/ZipArchive.dsw | 2 +- .../src/smpackage/ZipArchive/ZipArchive.h | 700 ++++++--- .../src/smpackage/ZipArchive/ZipArchive.rc | 109 ++ .../smpackage/ZipArchive/ZipArchive.vcproj | 27 +- .../smpackage/ZipArchive/ZipArchive_DLL.dsp | 268 ++++ .../smpackage/ZipArchive/ZipArchive_DLL.dsw | 44 + .../smpackage/ZipArchive/ZipArchive_STL.dsp | 20 +- .../ZipArchive/ZipArchive_STL_DLL.dsp | 272 ++++ .../ZipArchive/ZipArchive_STL_DLL.dsw | 44 + .../smpackage/ZipArchive/ZipAutoBuffer.cpp | 2 +- .../src/smpackage/ZipArchive/ZipAutoBuffer.h | 7 +- .../smpackage/ZipArchive/ZipBaseException.h | 2 +- .../src/smpackage/ZipArchive/ZipBigFile.cpp | 41 - .../src/smpackage/ZipArchive/ZipBigFile.h | 22 - .../smpackage/ZipArchive/ZipCentralDir.cpp | 98 +- .../src/smpackage/ZipArchive/ZipCentralDir.h | 67 +- .../src/smpackage/ZipArchive/ZipCollections.h | 2 +- .../smpackage/ZipArchive/ZipCompatibility.cpp | 2 +- .../smpackage/ZipArchive/ZipCompatibility.h | 2 +- .../src/smpackage/ZipArchive/ZipException.cpp | 2 +- .../src/smpackage/ZipArchive/ZipException.h | 21 +- .../src/smpackage/ZipArchive/ZipExport.h | 18 + .../src/smpackage/ZipArchive/ZipFile.cpp | 6 +- stepmania/src/smpackage/ZipArchive/ZipFile.h | 17 +- .../smpackage/ZipArchive/ZipFileHeader.cpp | 26 +- .../src/smpackage/ZipArchive/ZipFileHeader.h | 17 +- .../src/smpackage/ZipArchive/ZipFileMapping.h | 6 +- .../smpackage/ZipArchive/ZipInternalInfo.h | 64 - .../src/smpackage/ZipArchive/ZipMemFile.cpp | 22 +- .../src/smpackage/ZipArchive/ZipMemFile.h | 20 +- .../smpackage/ZipArchive/ZipPathComponent.cpp | 2 +- .../smpackage/ZipArchive/ZipPathComponent.h | 10 +- .../src/smpackage/ZipArchive/ZipPlatform.cpp | 4 +- .../src/smpackage/ZipArchive/ZipPlatform.h | 61 +- .../smpackage/ZipArchive/ZipPlatformComm.cpp | 2 +- .../src/smpackage/ZipArchive/ZipStorage.cpp | 33 +- .../src/smpackage/ZipArchive/ZipStorage.h | 37 +- .../src/smpackage/ZipArchive/ZipString.cpp | 2 +- .../src/smpackage/ZipArchive/ZipString.h | 6 +- .../ZipArchive/_copy_from_Linux-STL.sh | 5 + .../ZipArchive/_copy_from_Win-MFC.bat | 5 + .../ZipArchive/_copy_from_Win-STL.bat | 5 + .../src/smpackage/ZipArchive/_version.txt | 2 +- .../src/smpackage/ZipArchive/borland.zip | Bin 0 -> 7568 bytes stepmania/src/smpackage/ZipArchive/faq.txt | 21 +- stepmania/src/smpackage/ZipArchive/gpl.txt | 2 +- .../ZipArchive/mfc/ZipBaseException.h | 2 +- .../smpackage/ZipArchive/mfc/ZipCollections.h | 2 +- .../src/smpackage/ZipArchive/mfc/ZipFile.cpp | 6 +- .../src/smpackage/ZipArchive/mfc/ZipFile.h | 17 +- .../src/smpackage/ZipArchive/mfc/ZipString.h | 6 +- .../src/smpackage/ZipArchive/mfc/stdafx.h | 16 +- stepmania/src/smpackage/ZipArchive/resource.h | 15 + .../ZipBaseException.h} | 29 +- .../smpackage/ZipArchive/stl/ZipCollections.h | 164 +++ .../src/smpackage/ZipArchive/stl/ZipFile.cpp | 114 ++ .../src/smpackage/ZipArchive/stl/ZipFile.h | 116 ++ .../src/smpackage/ZipArchive/stl/ZipString.h | 296 ++++ .../src/smpackage/ZipArchive/stl/stdafx.h | 126 ++ .../ZipArchive/stl/zippie/CmdLine.cpp | 268 ++++ .../smpackage/ZipArchive/stl/zippie/CmdLine.h | 246 ++++ .../ZipArchive/stl/zippie/zippie.cpp | 978 +++++++++++++ .../ZipArchive/stl/zippie/zippie.dsp | 111 ++ .../ZipArchive/stl/zippie/zippie.dsw | 44 + .../ZipArchive/stl/zippie/zippie_DLL.dsp | 112 ++ .../ZipArchive/stl/zippie/zippie_DLL.dsw | 59 + stepmania/src/smpackage/ZipArchive/zconf.h | 279 ---- .../src/smpackage/ZipArchive/zlib/adler32.c | 5 +- .../src/smpackage/ZipArchive/zlib/compress.c | 4 +- .../src/smpackage/ZipArchive/zlib/crc32.c | 3 +- .../src/smpackage/ZipArchive/zlib/deflate.c | 7 +- .../src/smpackage/ZipArchive/zlib/deflate.h | 3 +- .../src/smpackage/ZipArchive/zlib/gzio.c | 875 +++++++++++ .../src/smpackage/ZipArchive/zlib/infblock.c | 11 +- .../src/smpackage/ZipArchive/zlib/infblock.h | 2 +- .../src/smpackage/ZipArchive/zlib/infcodes.c | 12 +- .../src/smpackage/ZipArchive/zlib/infcodes.h | 2 +- .../src/smpackage/ZipArchive/zlib/inffast.c | 47 +- .../src/smpackage/ZipArchive/zlib/inffast.h | 2 +- .../src/smpackage/ZipArchive/zlib/inflate.c | 2 +- .../src/smpackage/ZipArchive/zlib/inftrees.c | 9 +- .../src/smpackage/ZipArchive/zlib/inftrees.h | 2 +- .../src/smpackage/ZipArchive/zlib/infutil.c | 2 +- .../src/smpackage/ZipArchive/zlib/infutil.h | 2 +- .../src/smpackage/ZipArchive/zlib/maketree.c | 2 +- .../src/smpackage/ZipArchive/zlib/trees.c | 3 +- .../src/smpackage/ZipArchive/zlib/uncompr.c | 3 +- .../src/smpackage/ZipArchive/zlib/zconf.h | 6 +- .../src/smpackage/ZipArchive/zlib/zlib.dsp | 266 ++++ .../src/smpackage/ZipArchive/zlib/zlib.dsw | 29 + .../src/smpackage/ZipArchive/zlib/zlib.h | 7 +- .../src/smpackage/ZipArchive/zlib/zlibvc.def | 46 + .../src/smpackage/ZipArchive/zlib/zlibvcd.def | 47 + .../src/smpackage/ZipArchive/zlib/zutil.c | 3 +- .../src/smpackage/ZipArchive/zlib/zutil.h | 3 +- 112 files changed, 7312 insertions(+), 2673 deletions(-) delete mode 100644 stepmania/src/smpackage/ZipArchive/CodeProject.html create mode 100644 stepmania/src/smpackage/ZipArchive/Linux/Makefile create mode 100644 stepmania/src/smpackage/ZipArchive/Linux/ZipFileMapping.h create mode 100644 stepmania/src/smpackage/ZipArchive/Linux/ZipPathComponent.cpp create mode 100644 stepmania/src/smpackage/ZipArchive/Linux/ZipPlatform.cpp create mode 100644 stepmania/src/smpackage/ZipArchive/ZipArchive.rc create mode 100644 stepmania/src/smpackage/ZipArchive/ZipArchive_DLL.dsp create mode 100644 stepmania/src/smpackage/ZipArchive/ZipArchive_DLL.dsw create mode 100644 stepmania/src/smpackage/ZipArchive/ZipArchive_STL_DLL.dsp create mode 100644 stepmania/src/smpackage/ZipArchive/ZipArchive_STL_DLL.dsw delete mode 100644 stepmania/src/smpackage/ZipArchive/ZipBigFile.cpp delete mode 100644 stepmania/src/smpackage/ZipArchive/ZipBigFile.h create mode 100644 stepmania/src/smpackage/ZipArchive/ZipExport.h delete mode 100644 stepmania/src/smpackage/ZipArchive/ZipInternalInfo.h create mode 100644 stepmania/src/smpackage/ZipArchive/_copy_from_Linux-STL.sh create mode 100644 stepmania/src/smpackage/ZipArchive/_copy_from_Win-MFC.bat create mode 100644 stepmania/src/smpackage/ZipArchive/_copy_from_Win-STL.bat create mode 100644 stepmania/src/smpackage/ZipArchive/borland.zip create mode 100644 stepmania/src/smpackage/ZipArchive/resource.h rename stepmania/src/smpackage/ZipArchive/{ZipInternalInfo.cpp => stl/ZipBaseException.h} (55%) create mode 100644 stepmania/src/smpackage/ZipArchive/stl/ZipCollections.h create mode 100644 stepmania/src/smpackage/ZipArchive/stl/ZipFile.cpp create mode 100644 stepmania/src/smpackage/ZipArchive/stl/ZipFile.h create mode 100644 stepmania/src/smpackage/ZipArchive/stl/ZipString.h create mode 100644 stepmania/src/smpackage/ZipArchive/stl/stdafx.h create mode 100644 stepmania/src/smpackage/ZipArchive/stl/zippie/CmdLine.cpp create mode 100644 stepmania/src/smpackage/ZipArchive/stl/zippie/CmdLine.h create mode 100644 stepmania/src/smpackage/ZipArchive/stl/zippie/zippie.cpp create mode 100644 stepmania/src/smpackage/ZipArchive/stl/zippie/zippie.dsp create mode 100644 stepmania/src/smpackage/ZipArchive/stl/zippie/zippie.dsw create mode 100644 stepmania/src/smpackage/ZipArchive/stl/zippie/zippie_DLL.dsp create mode 100644 stepmania/src/smpackage/ZipArchive/stl/zippie/zippie_DLL.dsw delete mode 100644 stepmania/src/smpackage/ZipArchive/zconf.h create mode 100644 stepmania/src/smpackage/ZipArchive/zlib/gzio.c create mode 100644 stepmania/src/smpackage/ZipArchive/zlib/zlib.dsp create mode 100644 stepmania/src/smpackage/ZipArchive/zlib/zlib.dsw create mode 100644 stepmania/src/smpackage/ZipArchive/zlib/zlibvc.def create mode 100644 stepmania/src/smpackage/ZipArchive/zlib/zlibvcd.def diff --git a/stepmania/src/smpackage/ZipArchive/ChangeLog.txt b/stepmania/src/smpackage/ZipArchive/ChangeLog.txt index bd4c261fa6..9f4d092f99 100644 --- a/stepmania/src/smpackage/ZipArchive/ChangeLog.txt +++ b/stepmania/src/smpackage/ZipArchive/ChangeLog.txt @@ -1,16 +1,83 @@ /** \page pageHist Revision history - ver 2.2b (01-2002) + ver 2.3.4 (06-2003) + + Bug fixed: + + - problems with extracting some archives (very rare) (thanks to Ben Jos Walbeehm for the fix) + - problems with extracting some archives created under Linux (thanks to Jürgen Marquardt for reporting) + - small compilation errors under MSVC++ .NET (thanks to Darren Whobrey for the fixes) + - setting password in zippie (thanks to Amnon David for the fix) + + Changes: + + - CZipArchive::TestFile throws an exception now if CZipArchive::CloseFile returned -1. It makes it work as described in the documentation that an exception is thrown when the file is corrupted (thanks to Silvio Scarpati for pointing this out). + - it is now possible to add an already opened file to an archive (thanks to Kristjan Bjarnason for the change) + + ver 2.3.3 (01-2003) + + Features added: + + - CZipArchive::m_bRemoveDriveLetter option added Bugs fixed: + + - not extracting files from the last volume when opening an existing archive created in TDSpan mode, where the last volume filename has other extension than ".zip" + - added PKZIP_BUG_WORKAROUND definition to the zlib.h file distributed with ZipArchive library as well as to ZipArchive project files (in case the zlib library is replaced with a new version). + It deals with pkzip bug existing in some archives (thanks to Ben Jos Walbeehm for reporting). + + ver 2.3.2 (08-2002) + + Bug fixed: + + - problem with creating disk spanning archives in the STL version of the library (thanks to Luiz Rafael Culik for reporting) + + ver 2.3.1 (05-2002) + + Bug fixed: + + - using CZipMemFile::CZipMemFile(BYTE* , UINT , long ) constructor could cause memory errors (thanks to Laurent Doré) + + ver 2.3 (04-2002) (includes changes and fixes from 2.2a to 2.2c) + + Features added: + + - Visual Studio .NET compatibility + - methods CZipArchive::GetFromArchive added, which allow copying files from another archive without decompressing them + - many times requested replacing of files in the archive feature; it works with methods CZipArchive::GetFromArchive and a new + CZipArchive::AddNewFile(CZipAddNewFileInfo& ) which was introduced due to increasing parameters count + - added method CZipArchive::RenameFile which renames a file in the archive maintaining its physical position inside the archive + - projects and necessary changes for compiling ZipArchive as a DLL version (courtesy of Jonathan Reis) - see \ref subsDLL and \ref subDLLnotes +
( they are not embedded into existing ones, but made separated, since the DLL version needs separated project for zlib.dll and for the static version, + zlib library is already included in the projects to minimize linking problems with applications) + - added CZipArchive::WillBeDuplicated which lets you check quickly if the given filename would duplicate an existing one in the archive + - CZipArchive::GetCount has now an additional parameter and can return the number of files in the archive not counting the directories + - CZipArchive::Close has been given also an additional parameter (\e bUpdateTimeStamp) and can set the modification time of the zip archive to the modification time of the newest file inside the archive + - method CZipArchive::GetIndexes added + - ZipArc application updated to support renaming, replacing (as well as updating files in the archive) and getting compressed files from another archive + + Changes: + - zlib library updated to version 1.1.4 that fixes the security vulnerability in version 1.1.3 + as described in + \htmlonly + http://www.zlib.org/advisory-2002-03-11.txt + \endhtmlonly + - if the file inside the archive has the wrong date/time stamp set, then the extracted file is given the current time instead of reporting an error + - a little change in CZipArchive::PredictFileNameInZip : parameter \e bAnsiOem changed to \e bExactly (apart from the name, the meaning has also been changed) + - removed parameter bFileNameOnly from CZipArchive::DeleteFiles(const CZipStringArray &); + + Bugs fixed: + - eliminated possible errors when using CZipArchive::zipsmCheckForEff with disk-spanning mode + - reading some files created with other archivers failed occasionally in CZipFileHeader::ReadLocal (thanks to Christian von Seydlitz) - while a file recompression (smartness level included CZipArchive::zipsmCheckForEff) if the AutoFlush feature was enabled, there were redundant bytes added to the archive (thanks to Roman Scherzer) - - ver 2.2a (11-2001) - - Bugs fixed: - aborting extraction of multi-disk archive caused errors (thanks to Sabina Terenzi) + - some GUI fixes in ZipArc + Known issues: + - under Windows XP, in TD disk spanning mode, when the central directory is not entirely + written on the last volume (but divided between volumes), \e SHGetFileInfo hangs up (it is used i.e. by \e CFileDialog::DoModal) - Windows probably tries to analize + zip structure, but fails becuase it is an additional feature of ZipArchive library to create multi volume archives on non-removable data storage ver 2.2 (10-2001) Time for global changes @@ -214,10 +281,9 @@ - Changed names for several classes. ver 1.3.1 (11-2000) - - Added support for password encryption and decryption. - The encryption used in PKZIP was generously supplied by Roger - Schlafly. + - Testing the archive made easier + - Added support for password encryption and decryption. The encryption used in PKZIP was generously supplied by Roger Schlafly. - Unicode support added ver 1.2.2 (08-2000) @@ -235,7 +301,7 @@ - one class for zip and unzip functions - fast adding, deleting and extracting files with a single function call - ver 1.1.2 (03-2001) + ver 1.1.2 (03-2000) - international characters in filenames inside archive are now converted in a compatible way with other archiving programs (they are stored converted to OEM inside archive). diff --git a/stepmania/src/smpackage/ZipArchive/CodeProject.html b/stepmania/src/smpackage/ZipArchive/CodeProject.html deleted file mode 100644 index 82a927b70b..0000000000 --- a/stepmania/src/smpackage/ZipArchive/CodeProject.html +++ /dev/null @@ -1,380 +0,0 @@ - - - - -The Code Project - - - - - - - -
-Title:       Zip and Unzip in the MFC way
-Author:      Tadeusz Dracz 
-Email:       tdracz@artpol.com.pl
-Environment: VC++ 6.0, MFC, Windows 95/98/NT/2000/Me
-Keywords:    Zip, Unzip, MFC
-Level:       Intermediate
-Description: The library to create, modify and extract zip archives
-Section      Miscellaneous
-SubSection   General
-
- -
- - - -

 

- -