1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

DEBUG_HARDIO tidyup.

This commit is contained in:
Laurent MONIN 2005-09-17 20:06:01 +02:00 committed by Laurent MONIN
parent c94471fde8
commit 8d234b242b

View File

@ -18,7 +18,9 @@
#include "util/error.h"
/* Define it to have data written to stderr */
/* #define DEBUG_HARDIO */
#if 0
#define DEBUG_HARDIO
#endif
#undef debug_open
#undef debug_flush
@ -82,11 +84,14 @@ hw_debug_write(unsigned char *data, int w)
#define debug_open(n, fd, data, datalen) hw_debug_open(n, fd, data, datalen)
#define debug_flush() hw_debug_flush()
#define debug_write(data, datalen) hw_debug_write(data, datalen)
#else
#else /* DEBUG_HARDIO */
#define debug_open(n, fd, data, datalen)
#define debug_flush()
#define debug_write(data, datalen)
#endif
#endif /* DEBUG_HARDIO */
ssize_t