diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-05 18:34:04 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-05 18:34:04 +0200 |
commit | 50931238e2975bebf29fd94e06ceb945712c4bb2 (patch) | |
tree | f4c3b792e564380245ebceb614dac693fbcd3e7a /fitz | |
parent | 6100a491eb40183aa61d2966ffd6e38f0dff8552 (diff) | |
download | mupdf-50931238e2975bebf29fd94e06ceb945712c4bb2.tar.xz |
Use NDEBUG rather than DEBUG to test build at compile time.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/fitz_stream.h | 11 | ||||
-rw-r--r-- | fitz/stm_read.c | 6 |
2 files changed, 0 insertions, 17 deletions
diff --git a/fitz/fitz_stream.h b/fitz/fitz_stream.h index 8cbff89c..c425d7c8 100644 --- a/fitz/fitz_stream.h +++ b/fitz/fitz_stream.h @@ -372,15 +372,6 @@ fz_buffer * fz_readall(fz_stream *stm, int sizehint); fz_error fz_readerror(fz_stream *stm); int fz_readbytex(fz_stream *stm); int fz_peekbytex(fz_stream *stm); -void fz_unreadbytex(fz_stream *stm); - -#ifdef DEBUG - -#define fz_readbyte fz_readbytex -#define fz_peekbyte fz_peekbytex -#define fz_unreadbyte fz_unreadbytex - -#else static inline int fz_readbyte(fz_stream *stm) { @@ -405,5 +396,3 @@ static inline void fz_unreadbyte(fz_stream *stm) } #endif - -#endif diff --git a/fitz/stm_read.c b/fitz/stm_read.c index b01e300d..9f6b45a5 100644 --- a/fitz/stm_read.c +++ b/fitz/stm_read.c @@ -274,9 +274,3 @@ fz_peekbytex(fz_stream *stm) return buf->rp < buf->wp ? *buf->rp : EOF ; } - -void fz_unreadbytex(fz_stream *stm) -{ - fz_buffer *buf = stm->buffer; - buf->rp--; -} |