summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2005-06-02 11:34:46 +0200
committerTor Andersson <tor@ghostscript.com>2005-06-02 11:34:46 +0200
commit4ad40244021880e90d670720ac4c3beeac70aebc (patch)
tree7bdf4abc06168d7da4b24998adc2e47ca9f70c84 /include
parent987d58dfaf4030f43b2a8854e2d246f75465cc57 (diff)
downloadmupdf-4ad40244021880e90d670720ac4c3beeac70aebc.tar.xz
heh. forgot a bunch of files for the new stream stuff.
Diffstat (limited to 'include')
-rw-r--r--include/fitz/stream.h8
-rw-r--r--include/fitz/tree.h1
2 files changed, 4 insertions, 5 deletions
diff --git a/include/fitz/stream.h b/include/fitz/stream.h
index 5140fcca..b0778373 100644
--- a/include/fitz/stream.h
+++ b/include/fitz/stream.h
@@ -17,6 +17,7 @@ struct fz_stream_s
fz_buffer *buffer;
fz_filter *filter;
fz_stream *chain;
+ fz_error *error;
int file;
};
@@ -42,10 +43,9 @@ fz_error *fz_openwfilter(fz_stream **stmp, fz_filter *flt, fz_stream *chain);
* Functions that are common to both input and output streams.
*/
-/* behave like dup() */
-fz_stream *fz_keepstream(fz_stream *stm);
+fz_error *fz_ioerror(fz_stream *stm);
-/* essentially your close() */
+fz_stream *fz_keepstream(fz_stream *stm);
void fz_dropstream(fz_stream *stm);
int fz_tell(fz_stream *stm);
@@ -68,7 +68,7 @@ int fz_readline(fz_stream *stm, char *buf, int max);
int fz_readbytex(fz_stream *stm);
int fz_peekbytex(fz_stream *stm);
-#if 1
+#ifdef DEBUG
#define fz_readbyte fz_readbytex
#define fz_peekbyte fz_peekbytex
#else
diff --git a/include/fitz/tree.h b/include/fitz/tree.h
index 9f76f167..22665736 100644
--- a/include/fitz/tree.h
+++ b/include/fitz/tree.h
@@ -2,7 +2,6 @@
* The display tree is at the center of attention in Fitz.
* The tree and most of its minor nodes.
* Paths and text nodes are found elsewhere.
- * Resources used are also found elsewhere.
*/
typedef struct fz_tree_s fz_tree;