No output unless not NDEBUG and _MSC_VER

This commit is contained in:
Geoff McLane 2014-08-03 20:52:10 +02:00
parent 4090d0b119
commit f528b216d5

View file

@ -9,7 +9,7 @@
*/ */
#include "tidy.h" #include "tidy.h"
#ifdef _MSC_VER #if !defined(NDEBUG) && defined(_MSC_VER)
#include "sprtf.h" #include "sprtf.h"
#endif #endif
@ -954,8 +954,9 @@ int main( int argc, char** argv )
errout = stderr; /* initialize to stderr */ errout = stderr; /* initialize to stderr */
status = 0; status = 0;
#ifdef _MSC_VER #if !defined(NDEBUG) && defined(_MSC_VER)
set_log_file((char *)"temptidy.txt", 0); set_log_file((char *)"temptidy.txt", 0);
add_append_log(1);
#endif #endif
#ifdef TIDY_CONFIG_FILE #ifdef TIDY_CONFIG_FILE
@ -1278,7 +1279,9 @@ int main( int argc, char** argv )
if ( argc > 1 ) if ( argc > 1 )
{ {
htmlfil = argv[1]; htmlfil = argv[1];
#if (!defined(NDEBUG) && defined(_MSC_VER))
SPRTF("Tidying '%s'\n", htmlfil); SPRTF("Tidying '%s'\n", htmlfil);
#endif // DEBUG outout
if ( tidyOptGetBool(tdoc, TidyEmacs) ) if ( tidyOptGetBool(tdoc, TidyEmacs) )
tidyOptSetValue( tdoc, TidyEmacsFile, htmlfil ); tidyOptSetValue( tdoc, TidyEmacsFile, htmlfil );
status = tidyParseFile( tdoc, htmlfil ); status = tidyParseFile( tdoc, htmlfil );