From f528b216d5753ed8e3f1a105598f2e009c3f21b3 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Sun, 3 Aug 2014 20:52:10 +0200 Subject: [PATCH] No output unless not NDEBUG and _MSC_VER --- console/tidy.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/console/tidy.c b/console/tidy.c index d0e6cb2..9a0219d 100644 --- a/console/tidy.c +++ b/console/tidy.c @@ -9,7 +9,7 @@ */ #include "tidy.h" -#ifdef _MSC_VER +#if !defined(NDEBUG) && defined(_MSC_VER) #include "sprtf.h" #endif @@ -954,8 +954,9 @@ int main( int argc, char** argv ) errout = stderr; /* initialize to stderr */ status = 0; -#ifdef _MSC_VER +#if !defined(NDEBUG) && defined(_MSC_VER) set_log_file((char *)"temptidy.txt", 0); + add_append_log(1); #endif #ifdef TIDY_CONFIG_FILE @@ -1278,7 +1279,9 @@ int main( int argc, char** argv ) if ( argc > 1 ) { htmlfil = argv[1]; +#if (!defined(NDEBUG) && defined(_MSC_VER)) SPRTF("Tidying '%s'\n", htmlfil); +#endif // DEBUG outout if ( tidyOptGetBool(tdoc, TidyEmacs) ) tidyOptSetValue( tdoc, TidyEmacsFile, htmlfil ); status = tidyParseFile( tdoc, htmlfil );