summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/arith.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/arith.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/arith.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/noncore/apps/opie-reader/arith.h b/noncore/apps/opie-reader/arith.h
index 19ca646..59b2ea9 100644
--- a/noncore/apps/opie-reader/arith.h
+++ b/noncore/apps/opie-reader/arith.h
@@ -11,2 +11,4 @@
+class ppm_expander;
+
class PPM_ReadBuf
@@ -14,10 +16,6 @@ class PPM_ReadBuf
FILE *my_file_in;
+ ppm_expander* parent;
public:
- PPM_ReadBuf(FILE* f) : my_file_in(f) {}
- UINT readbuf(UCHAR *buf,UINT len)
- {
- UINT len1;
- len1=fread(buf,1,len,my_file_in);
- return len1;
- }
+ PPM_ReadBuf(FILE* f, ppm_expander* _parent) : my_file_in(f), parent(_parent) {}
+ UINT readbuf(UCHAR *buf,UINT len);
};