author | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
---|---|---|
committer | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
commit | 73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (unidiff) | |
tree | 1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/ppm_expander.cpp | |
parent | e90847c784c48bd21bf8768cb38edb853b832697 (diff) | |
download | opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.zip opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.gz opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.bz2 |
updated source to opie-reader 0.7g
Diffstat (limited to 'noncore/apps/opie-reader/ppm_expander.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ppm_expander.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/noncore/apps/opie-reader/ppm_expander.cpp b/noncore/apps/opie-reader/ppm_expander.cpp index fe2745c..ea5b955 100644 --- a/noncore/apps/opie-reader/ppm_expander.cpp +++ b/noncore/apps/opie-reader/ppm_expander.cpp | |||
@@ -10,2 +10,3 @@ | |||
10 | #include <time.h> | 10 | #include <time.h> |
11 | #include "static.h" | ||
11 | 12 | ||
@@ -67,5 +68,5 @@ int ppm_expander::home() | |||
67 | //fprintf(stderr,"<%u,%u,%u>\n",maxnode,blocksize,numblocks); | 68 | //fprintf(stderr,"<%u,%u,%u>\n",maxnode,blocksize,numblocks); |
68 | int err = locate(0,0); | 69 | locate(0,0); |
69 | outbytes = 0; | 70 | outbytes = 0; |
70 | return err; | 71 | return 0; |
71 | } | 72 | } |
@@ -77,3 +78,3 @@ void ppm_expander::locate(unsigned int n) { | |||
77 | 78 | ||
78 | int ppm_expander::locate(unsigned short block, unsigned int n) | 79 | void ppm_expander::locate(unsigned short block, unsigned int n) |
79 | { | 80 | { |
@@ -86,3 +87,3 @@ int ppm_expander::locate(unsigned short block, unsigned int n) | |||
86 | fseek(my_file_in,STAT_MAGIC_SIZE+sizeof(maxnode)+sizeof(blocksize)+sizeof(numblocks)+block*sizeof(fpos),SEEK_SET); | 87 | fseek(my_file_in,STAT_MAGIC_SIZE+sizeof(maxnode)+sizeof(blocksize)+sizeof(numblocks)+block*sizeof(fpos),SEEK_SET); |
87 | if (fread(&fpos,sizeof(fpos),1,my_file_in) != 1) return 1; | 88 | fread(&fpos,sizeof(fpos),1,my_file_in); |
88 | fseek(my_file_in,fpos,SEEK_SET); | 89 | fseek(my_file_in,fpos,SEEK_SET); |
@@ -108 +109,8 @@ int ppm_expander::getch() { | |||
108 | } | 109 | } |
110 | |||
111 | #ifndef __STATIC | ||
112 | extern "C" | ||
113 | { | ||
114 | CExpander* newcodec() { return new ppm_expander; } | ||
115 | } | ||
116 | #endif | ||