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 | |
parent | 2f55be65436cb05a8580f4a436f94bce9de48da7 (diff) | |
download | opie-a17482a473c90c7e030bbf7a03b252fdaf53c2ed.zip opie-a17482a473c90c7e030bbf7a03b252fdaf53c2ed.tar.gz opie-a17482a473c90c7e030bbf7a03b252fdaf53c2ed.tar.bz2 |
zlib.h include dir change
-rw-r--r-- | noncore/apps/opie-reader/ZText.h | 2 | ||||
-rw-r--r-- | noncore/apps/opie-reader/plucker.h | 2 | ||||
-rw-r--r-- | noncore/apps/opie-reader/ztxt.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/opie-reader/ZText.h b/noncore/apps/opie-reader/ZText.h index 9e72161..debfe8c 100644 --- a/noncore/apps/opie-reader/ZText.h +++ b/noncore/apps/opie-reader/ZText.h | |||
@@ -1,28 +1,28 @@ | |||
1 | #ifndef __Text_h | 1 | #ifndef __Text_h |
2 | #define __Text_h | 2 | #define __Text_h |
3 | #include <stdio.h> | 3 | #include <stdio.h> |
4 | #include <zlib.h> | 4 | #include "zlib/zlib.h" |
5 | #include <sys/stat.h> | 5 | #include <sys/stat.h> |
6 | 6 | ||
7 | #include "CExpander.h" | 7 | #include "CExpander.h" |
8 | 8 | ||
9 | class Text: public CExpander { | 9 | class Text: public CExpander { |
10 | gzFile file; | 10 | gzFile file; |
11 | unsigned long fsize; | 11 | unsigned long fsize; |
12 | public: | 12 | public: |
13 | Text() : file(NULL) {}; | 13 | Text() : file(NULL) {}; |
14 | virtual ~Text() | 14 | virtual ~Text() |
15 | { | 15 | { |
16 | if (file != NULL) gzclose(file); | 16 | if (file != NULL) gzclose(file); |
17 | } | 17 | } |
18 | virtual int openfile(const char *src) | 18 | virtual int openfile(const char *src) |
19 | { | 19 | { |
20 | if (file != NULL) gzclose(file); | 20 | if (file != NULL) gzclose(file); |
21 | struct stat _stat; | 21 | struct stat _stat; |
22 | stat(src,&_stat); | 22 | stat(src,&_stat); |
23 | fsize = _stat.st_size; | 23 | fsize = _stat.st_size; |
24 | return ((file = gzopen(src,"rb")) == NULL); | 24 | return ((file = gzopen(src,"rb")) == NULL); |
25 | } | 25 | } |
26 | virtual int getch() { return gzgetc(file); } | 26 | virtual int getch() { return gzgetc(file); } |
27 | virtual unsigned int locate() { return gztell(file); } | 27 | virtual unsigned int locate() { return gztell(file); } |
28 | virtual void locate(unsigned int n) { gzseek(file,n,SEEK_SET); } | 28 | virtual void locate(unsigned int n) { gzseek(file,n,SEEK_SET); } |
diff --git a/noncore/apps/opie-reader/plucker.h b/noncore/apps/opie-reader/plucker.h index 84e855c..d3ca732 100644 --- a/noncore/apps/opie-reader/plucker.h +++ b/noncore/apps/opie-reader/plucker.h | |||
@@ -1,29 +1,29 @@ | |||
1 | #ifndef __plucker_h | 1 | #ifndef __plucker_h |
2 | #define __plucker_h | 2 | #define __plucker_h |
3 | 3 | ||
4 | #include "CExpander.h" | 4 | #include "CExpander.h" |
5 | #include <zlib.h> | 5 | #include "zlib/zlib.h" |
6 | #include "ztxt.h" | 6 | #include "ztxt.h" |
7 | #include "pdb.h" | 7 | #include "pdb.h" |
8 | #include "CBuffer.h" | 8 | #include "CBuffer.h" |
9 | 9 | ||
10 | struct CPlucker_dataRecord | 10 | struct CPlucker_dataRecord |
11 | { | 11 | { |
12 | UInt16 uid; | 12 | UInt16 uid; |
13 | UInt16 nParagraphs; | 13 | UInt16 nParagraphs; |
14 | UInt16 size; | 14 | UInt16 size; |
15 | UInt8 type; | 15 | UInt8 type; |
16 | UInt8 reserved; | 16 | UInt8 reserved; |
17 | }; | 17 | }; |
18 | 18 | ||
19 | struct CPlucker_record0 | 19 | struct CPlucker_record0 |
20 | { | 20 | { |
21 | UInt16 uid; | 21 | UInt16 uid; |
22 | UInt16 version; | 22 | UInt16 version; |
23 | UInt16 nRecords; | 23 | UInt16 nRecords; |
24 | }; | 24 | }; |
25 | 25 | ||
26 | struct CPluckerbkmk | 26 | struct CPluckerbkmk |
27 | { | 27 | { |
28 | UInt32 offset; | 28 | UInt32 offset; |
29 | tchar title[MAX_BMRK_LENGTH]; | 29 | tchar title[MAX_BMRK_LENGTH]; |
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 | |||
@@ -1,29 +1,29 @@ | |||
1 | #ifndef __ztxt_h | 1 | #ifndef __ztxt_h |
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 |
9 | * | 9 | * |
10 | * $Id$ | 10 | * $Id$ |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #ifndef _WEASEL_COMMON_H_ | 14 | #ifndef _WEASEL_COMMON_H_ |
15 | #define _WEASEL_COMMON_H_ 1 | 15 | #define _WEASEL_COMMON_H_ 1 |
16 | 16 | ||
17 | 17 | ||
18 | /* Padding is no good */ | 18 | /* Padding is no good */ |
19 | #if defined(__GNUC__) && defined(__UNIX__) | 19 | #if defined(__GNUC__) && defined(__UNIX__) |
20 | # pragma pack(2) | 20 | # pragma pack(2) |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | /* The default creator is Weasel Reader 'GPlm' */ | 23 | /* The default creator is Weasel Reader 'GPlm' */ |
24 | #define GPLM_CREATOR_ID "GPlm" | 24 | #define GPLM_CREATOR_ID "GPlm" |
25 | /* Databases of type 'zTXT' */ | 25 | /* Databases of type 'zTXT' */ |
26 | #define ZTXT_TYPE_ID "zTXT" | 26 | #define ZTXT_TYPE_ID "zTXT" |
27 | /* Size of one database record */ | 27 | /* Size of one database record */ |
28 | #define RECORD_SIZE 8192 | 28 | #define RECORD_SIZE 8192 |
29 | /* Allow largest WBIT size for data. Lower with command line options | 29 | /* Allow largest WBIT size for data. Lower with command line options |