Closed wxtrac closed 2 years ago
Also updates zlib to 1.2.1
Hi,
Just to let you know that I'm currenlty working on zip streams as part of a effort to add streams for archive formats. I'm close to having it ready for submission, I uploaded the implemetation for zips this morning here: http://cvs.sf.net/viewcvs.py/wxcode/wxCode/components/wxarchive/ in case you want to look at it (see the Readme).
And also there is Ryan's project wxZipStream, now also on http://wxcode.sf.net I think.
Mike
I didn't try to apply this patch yet (I'd like to wait for Mike's patch too and have a look at both of them first) but please make a patch against cvs HEAD, it can't be applied to 2.4. Plenty of people use 2.5 with mingw32 so it should really be possible for you to use it too...
Thanks!
Deleted. I've made a new patch against HEAD, and this one was kind of goofed up anyway.
Issue migrated from trac ticket # 6747
priority: low
2004-07-07 21:52:14: kbluck (Kevin Bluck) created the issue
This patch is made on 2.4.2. I believe it will work equally well on 2.5.2, but I cannot verify it since current makefiles for 2.5.2 break my MinGW.
The primary effect of this patch is to add a new class: wxZipOutputStream. This is a companion to the existing wxZipInputStream that allows writing files into a Zip archive.
Secondary changes:
Moved unzip.* from src/common to src/zlib. This seems logical to me since Minizip is in fact a contrib to zlib.
Added zip.c, zip.h, ioapi.c, ioapi.h to src/zlib.
Updated unzip., zip., ioapi.* to latest 1.01 version, suitably modified for wx.
Modified wxZipInputStream to provide a "NewFile()" function that allows the stream to switch to a reading a different file in the Zip without destroying the stream object. This mirrors a member function in wxZipOutputStream.
Updated documentation and tmake files.