From 66cfe148f722017c2796f86bad70c8e8a2eee969 Mon Sep 17 00:00:00 2001 From: mmdolze Date: Wed, 16 Nov 2011 21:07:25 +0000 Subject: [PATCH] Remove long time obsoleted debug.h. --- shared/Makefile.am | 2 +- shared/debug.h | 36 ------------------------------------ 2 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 shared/debug.h diff --git a/shared/Makefile.am b/shared/Makefile.am index d02f718..1356cf0 100644 --- a/shared/Makefile.am +++ b/shared/Makefile.am @@ -2,7 +2,7 @@ noinst_LIBRARIES = libLCDstuff.a -libLCDstuff_a_SOURCES = LL.c LL.h sockets.c sockets.h str.c str.h configfile.c configfile.h debug.h report.c report.h snprintf.c snprintf.h sring.c sring.h +libLCDstuff_a_SOURCES = LL.c LL.h sockets.c sockets.h str.c str.h configfile.c configfile.h report.c report.h snprintf.c snprintf.h sring.c sring.h libLCDstuff_a_LIBADD = @LIBOBJS@ diff --git a/shared/debug.h b/shared/debug.h deleted file mode 100644 index 769474d..0000000 --- a/shared/debug.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef DEBUG_H -#define DEBUG_H - -#include -#include - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -/* DEBUGGING -To enable the debug() function on all of the software, just type: -./configure --enable-debug -and recompile with 'make' - -To enable the debug() function only in specific files: -1) Configure without enabling debug (that is without --enable-debug) -2) Edit the source file that you want to debug and put this: -#define DEBUG -#include "shared/debug.h" -#undef DEBUG -Then recompile with 'make' -This way, the global DEBUG macro is off but is locally enabled in -certains parts of the software. -*/ - -static inline void debug(const char *format, .../*args*/) { -#ifdef DEBUG - va_list ap; - va_start(ap, format); - vfprintf(stderr, format, ap); - va_end(ap); -#endif /*DEBUG*/ -} - -#endif