author | llornkcor <llornkcor> | 2002-09-14 03:10:21 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-14 03:10:21 (UTC) |
commit | a17482a473c90c7e030bbf7a03b252fdaf53c2ed (patch) (unidiff) | |
tree | f97827d63f6a8d40ad9df7bc96907a2bdcfc3be2 /noncore/apps/opie-reader/ztxt.h | |
parent | 2f55be65436cb05a8580f4a436f94bce9de48da7 (diff) | |
download | opie-a17482a473c90c7e030bbf7a03b252fdaf53c2ed.zip opie-a17482a473c90c7e030bbf7a03b252fdaf53c2ed.tar.gz opie-a17482a473c90c7e030bbf7a03b252fdaf53c2ed.tar.bz2 |
zlib.h include dir change
Diffstat (limited to 'noncore/apps/opie-reader/ztxt.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ztxt.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/noncore/apps/opie-reader/ztxt.h b/noncore/apps/opie-reader/ztxt.h index 7be45c0..20558a6 100644 --- a/noncore/apps/opie-reader/ztxt.h +++ b/noncore/apps/opie-reader/ztxt.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define __ztxt_h | 2 | #define __ztxt_h |
3 | 3 | ||
4 | #include "CExpander.h" | 4 | #include "CExpander.h" |
5 | #include <zlib.h> | 5 | #include "zlib/zlib.h" |
6 | #include "pdb.h" | 6 | #include "pdb.h" |
7 | /* | 7 | /* |
8 | * Stuff common to both Weasel Reader and makeztxt | 8 | * Stuff common to both Weasel Reader and makeztxt |
@@ -76,20 +76,20 @@ class ztxt : public CExpander, Cpdb | |||
76 | void home(); | 76 | void home(); |
77 | public: | 77 | public: |
78 | virtual void sizes(unsigned long& _file, unsigned long& _text) | 78 | virtual void sizes(unsigned long& _file, unsigned long& _text) |
79 | { | 79 | { |
80 | _file = file_length; | 80 | _file = file_length; |
81 | _text = ntohl(hdr0.size); | 81 | _text = ntohl(hdr0.size); |
82 | } | 82 | } |
83 | virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } | 83 | virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } |
84 | virtual ~ztxt() | 84 | virtual ~ztxt() |
85 | { | 85 | { |
86 | if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; | 86 | if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; |
87 | if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; | 87 | if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; |
88 | if (bInit) | 88 | if (bInit) |
89 | { | 89 | { |
90 | inflateEnd(&zstream); | 90 | inflateEnd(&zstream); |
91 | } | 91 | } |
92 | } | 92 | } |
93 | ztxt(); | 93 | ztxt(); |
94 | virtual int openfile(const char *src); | 94 | virtual int openfile(const char *src); |
95 | virtual int getch(); | 95 | virtual int getch(); |
@@ -97,9 +97,9 @@ class ztxt : public CExpander, Cpdb | |||
97 | virtual void locate(unsigned int n); | 97 | virtual void locate(unsigned int n); |
98 | virtual CList<Bkmk>* getbkmklist(); | 98 | virtual CList<Bkmk>* getbkmklist(); |
99 | virtual MarkupType PreferredMarkup() | 99 | virtual MarkupType PreferredMarkup() |
100 | { | 100 | { |
101 | return cTEXT; | 101 | return cTEXT; |
102 | } | 102 | } |
103 | }; | 103 | }; |
104 | 104 | ||
105 | #endif | 105 | #endif |