summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader
authorllornkcor <llornkcor>2002-07-02 18:30:57 (UTC)
committer llornkcor <llornkcor>2002-07-02 18:30:57 (UTC)
commit2481ac4013794f95c53580f99b4b761142e4ee8f (patch) (unidiff)
tree4f8b61c5ab815d0d3e09d518d4cb2560d185a238 /noncore/apps/opie-reader
parentdf2935231cbc82bf03037453261bfcef1970de63 (diff)
downloadopie-2481ac4013794f95c53580f99b4b761142e4ee8f.zip
opie-2481ac4013794f95c53580f99b4b761142e4ee8f.tar.gz
opie-2481ac4013794f95c53580f99b4b761142e4ee8f.tar.bz2
changed zlib header includes
Diffstat (limited to 'noncore/apps/opie-reader') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/ZText.h3
-rw-r--r--noncore/apps/opie-reader/ztxt.h27
2 files changed, 16 insertions, 14 deletions
diff --git a/noncore/apps/opie-reader/ZText.h b/noncore/apps/opie-reader/ZText.h
index 2848af7..4b1b96e 100644
--- a/noncore/apps/opie-reader/ZText.h
+++ b/noncore/apps/opie-reader/ZText.h
@@ -3,3 +3,4 @@
3#include <stdio.h> 3#include <stdio.h>
4#include <zlib.h> 4#include "zlib/zlib.h"
5//#include <zlib.h>
5#include <sys/stat.h> 6#include <sys/stat.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
@@ -4,3 +4,4 @@
4#include "CExpander.h" 4#include "CExpander.h"
5#include <zlib.h> 5#include "zlib/zlib.h"
6//#include <zlib.h>
6#include "pdb.h" 7#include "pdb.h"
@@ -78,16 +79,16 @@ class ztxt : public CExpander, Cpdb
78 virtual void sizes(unsigned long& _file, unsigned long& _text) 79 virtual void sizes(unsigned long& _file, unsigned long& _text)
79 { 80 {
80 _file = file_length; 81 _file = file_length;
81 _text = ntohl(hdr0.size); 82 _text = ntohl(hdr0.size);
82 } 83 }
83 virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } 84 virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); }
84 virtual ~ztxt() 85 virtual ~ztxt()
85 { 86 {
86 if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; 87 if (expandedtextbuffer != NULL) delete [] expandedtextbuffer;
87 if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; 88 if (compressedtextbuffer != NULL) delete [] compressedtextbuffer;
88 if (bInit) 89 if (bInit)
89 { 90 {
90 inflateEnd(&zstream); 91 inflateEnd(&zstream);
91 } 92 }
92 } 93 }
93 ztxt(); 94 ztxt();