diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-02-14 19:47:38 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-02-14 19:47:38 +0000 |
commit | 0bc96222c206ba8dbc13dd4c549a56e44bbbe2a6 (patch) | |
tree | e2dc73aba88b04dd68f34ce4bdc938b343d2d2c2 /sys/lib/libz/zutil.h | |
parent | f1605e823982b5ad049c62d5be3b338e00cef171 (diff) |
fix -DDEBUG case, ie remove L-user-and stuff such as fprintf and stderr.
another obvious fix would be porting stdio file functions into
stand library, so code would go smooth from -lz, but former seems to be
a minimal-change-compliant approach.
Diffstat (limited to 'sys/lib/libz/zutil.h')
-rw-r--r-- | sys/lib/libz/zutil.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/lib/libz/zutil.h b/sys/lib/libz/zutil.h index c63543f7116..af4c9c3db3c 100644 --- a/sys/lib/libz/zutil.h +++ b/sys/lib/libz/zutil.h @@ -8,7 +8,7 @@ subject to change. Applications should only use zlib.h. */ -/* @(#) $Id: zutil.h,v 1.7 1998/09/08 04:07:49 millert Exp $ */ +/* @(#) $Id: zutil.h,v 1.8 1999/02/14 19:47:37 mickey Exp $ */ #ifndef _Z_UTIL_H #define _Z_UTIL_H @@ -192,15 +192,14 @@ extern const char *z_errmsg[10]; /* indexed by 2-zlib_error */ /* Diagnostic functions */ #ifdef DEBUG -# include <stdio.h> extern int z_verbose; extern void z_error OF((char *m)); # define Assert(cond,msg) {if(!(cond)) z_error(msg);} -# define Trace(x) {if (z_verbose>=0) fprintf x ;} -# define Tracev(x) {if (z_verbose>0) fprintf x ;} -# define Tracevv(x) {if (z_verbose>1) fprintf x ;} -# define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;} -# define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;} +# define Trace(x) {if (z_verbose>=0) printf x ;} +# define Tracev(x) {if (z_verbose>0) printf x ;} +# define Tracevv(x) {if (z_verbose>1) printf x ;} +# define Tracec(c,x) {if (z_verbose>0 && (c)) printf x ;} +# define Tracecv(c,x) {if (z_verbose>1 && (c)) printf x ;} #else # define Assert(cond,msg) # define Trace(x) |