From 2481ac4013794f95c53580f99b4b761142e4ee8f Mon Sep 17 00:00:00 2001 From: llornkcor Date: Tue, 02 Jul 2002 18:30:57 +0000 Subject: changed zlib header includes --- (limited to 'noncore/apps/opie-reader/ztxt.h') diff --git a/noncore/apps/opie-reader/ztxt.h b/noncore/apps/opie-reader/ztxt.h index b8ad29c..6352cfc 100644 --- a/noncore/apps/opie-reader/ztxt.h +++ b/noncore/apps/opie-reader/ztxt.h @@ -2,7 +2,8 @@ #define __ztxt_h #include "CExpander.h" -#include +#include "zlib/zlib.h" +//#include #include "pdb.h" /* * Stuff common to both Weasel Reader and makeztxt @@ -76,20 +77,20 @@ class ztxt : public CExpander, Cpdb void home(); public: virtual void sizes(unsigned long& _file, unsigned long& _text) - { - _file = file_length; - _text = ntohl(hdr0.size); - } + { + _file = file_length; + _text = ntohl(hdr0.size); + } virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } virtual ~ztxt() - { - if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; - if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; - if (bInit) - { - inflateEnd(&zstream); - } - } + { + if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; + if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; + if (bInit) + { + inflateEnd(&zstream); + } + } ztxt(); virtual int openfile(const char *src); virtual int getch(); -- cgit v0.9.0.2