From 4ad40244021880e90d670720ac4c3beeac70aebc Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 2 Jun 2005 11:34:46 +0200 Subject: heh. forgot a bunch of files for the new stream stuff. --- include/fitz/stream.h | 8 ++++---- include/fitz/tree.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'include') 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; -- cgit v1.2.3