In my latest version of Boxer, I have managed to tweak ZLib so it uses
NO globals (the calls to open, close, sleep, and wake are null as
well).  Note that deflateInit and inflateInit allocate memory until
the corresponding End function is called.

The 0.19a source contains a diff in the boxer/ZLib against 1.1.3 which
should be buildable on most GCC setups.  (The 2.9.5 GCC or 3.5 SDK
might need some more header or makefile adjustments).

The patch is under the same terms as ZLib itself - Mainly don't
pretend you wrote it.

I haven't cleaned it up or documented it, but I thought some might be
interested.

Boxer Home Page:

http://www.palmboxer.com (use 0.19a or later)

ZLib Home Page:

http://www.info-zip.org/pub/infozip/zlib/

ZLib is used in the ZIP algorithm originally used in PKZip.  It also
is PPP-Deflate, PNG images use it for compression.  TARs and other
unix files are GZipped which uses the same compression.  PGP's
compression is also ZIP/ZLib.

It would also make a good new addition to DOC compression (I would
recommend a compression type 8) for things like Hebrew that use a lot
of characters that don't work well with the Capitals and repeat
compression.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to