OK, I'm wrong a little. We compile one file: untgz.c
"Troy A. Griffitts" <[EMAIL PROTECTED]> wrote: >DM Smith <[EMAIL PROTECTED]> wrote: >>Found out a bit more: >>Sword uses a 2002 copy of zlib. It has been updated since then with >>bug, security and performance fixes. > >Thanks for all the investigation DM! > >Just to clarify: From memory, I don't believe the SWORD engine actually >uses the copy of zlib which is in svn. It is located at: > >sword/src/utilfuns/zlib > >I believe it is included for frontends who wish to use zlib support in the >engine, but don't have zlib-devel available for their platform. > >I would guess BibleCS uses it. > >I'm quite sure if you enable zlib support (the default) on a linux box it >uses your system's zlib-devel package. > >We could remove it and see if things still compile. :) > > -Troy. > > >> >>On Sep 20, 2007, at 10:02 PM, DM Smith wrote: >> >>> More results of exploration: >>> >>> At zlib.net, the home of the zlib code, there is a faq question >>> regarding zip archives with a recommended solution: >>> >>> 11. Can zlib handle .zip archives? >>> Not by itself, no. See the directory contrib/minizip in >>> the zlib distribution. >>> >>> Minizip is what I found by other searches. It's home is at: >>> http://www.winimage.com/zLibDll/minizip.html >>> >>> It appears that it requires only a few files to do unzip of an >>> archive. >>> >>> What do I need to do to continue on this track? I don't want my >>> efforts to go to waste. I realize this might not make a 1.5.10 >>> effort, unless it is incredibly easy and fully testable :) >>> >>> In Him, >>> DM >>> >>> On Sep 20, 2007, at 6:59 PM, DM Smith wrote: >>> >>>> Troy, >>>> I studied the untargz code and all the other code in the zlib >>>> directory. It does not apply to zip files. A zipfile has a table of >>>> contents and the zlib code does not read it. An entry in the TOC will >>>> have the location of the file and it's size in the zipfile and how it >>>> is stored. (Typically, images are stored uncompressed.) IIRC, the TOC >>>> also has CRC info. I'm looking for code that reads the TOC. I have >>>> found some, but I'm wondering if anyone else has seen something that >>>> they can recommend. >>>> >>>> The zlib code essentially reads a byte stream and uncompresses >>it. >>>> There is also code present to untar a stream. >>>> DM >>>> >>>> On Sep 20, 2007, at 6:21 PM, Troy A. Griffitts wrote: >>>> >>>>> There is already code to unpack the mods.d.tar.gz file. I believe >>>>> the code >>>>> we used for that came from the zlib project. It may be similar to >>>>> what you >>>>> need to do for a zip file. I can't remember offhand. >>>>> >>>>> >>>>> DM Smith <[EMAIL PROTECTED]> wrote: >>>>>> I'm looking into adding to installmgr the download of a cached >>>>>> zipped >>>>>> module, if present at the download site. Otherwise the code will >>>>>> work as >>>>>> before. >>>>>> >>>>>> I've run into an obstacle: zlib cannot read the "table of >>>>>> contents" in a >>>>>> zipfile. I'm looking for a portable way to do the unzip. Any >>>>>> suggestions? >>>>>> >>>>>> Many thanks, >>>>>> DM >>>>>> >>>>>> _______________________________________________ >>>>>> sword-devel mailing list: sword-devel@crosswire.org >>>>>> http://www.crosswire.org/mailman/listinfo/sword-devel >>>>>> Instructions to unsubscribe/change your settings at above page >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> sword-devel mailing list: sword-devel@crosswire.org >>>>> http://www.crosswire.org/mailman/listinfo/sword-devel >>>>> Instructions to unsubscribe/change your settings at above page >>>> >>>> >>>> _______________________________________________ >>>> sword-devel mailing list: sword-devel@crosswire.org >>>> http://www.crosswire.org/mailman/listinfo/sword-devel >>>> Instructions to unsubscribe/change your settings at above page >>> >>> _______________________________________________ >>> sword-devel mailing list: sword-devel@crosswire.org >>> http://www.crosswire.org/mailman/listinfo/sword-devel >>> Instructions to unsubscribe/change your settings at above page >> >> >>_______________________________________________ >>sword-devel mailing list: sword-devel@crosswire.org >>http://www.crosswire.org/mailman/listinfo/sword-devel >>Instructions to unsubscribe/change your settings at above page >> > > > >_______________________________________________ >sword-devel mailing list: sword-devel@crosswire.org >http://www.crosswire.org/mailman/listinfo/sword-devel >Instructions to unsubscribe/change your settings at above page > > _______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page