From 111f462dc49dfac13ff7d17f34de93ed3f7e1fd2 Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Mon, 9 Mar 2026 17:41:19 -0700 Subject: [PATCH 1/2] remove old comments --- tinyxml2.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tinyxml2.h b/tinyxml2.h index c8011174..6dd15107 100644 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -42,14 +42,6 @@ distribution. #endif #include -/* - gcc: - g++ -Wall -DTINYXML2_DEBUG tinyxml2.cpp xmltest.cpp -o gccxmltest.exe - - Formatting, Artistic Style: - AStyle.exe --style=1tbs --indent-switches --break-closing-brackets --indent-preprocessor tinyxml2.cpp tinyxml2.h -*/ - #if defined( _DEBUG ) || defined (__DEBUG__) # ifndef TINYXML2_DEBUG # define TINYXML2_DEBUG From eb04c9a1812f743b24c25973355bb3d410507534 Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Sat, 23 May 2026 16:50:05 -0700 Subject: [PATCH 2/2] test checks --- xmltest.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xmltest.cpp b/xmltest.cpp index f8e71962..db9df56c 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -45,13 +45,15 @@ bool XMLTest (const char* testString, const char* expected, const char* found, b printf (" %s\n", testString); } else { + const char* expectedStr = expected ? expected : "(null)"; + const char* foundStr = found ? found : "(null)"; if ( extraNL ) { printf( " %s\n", testString ); - printf( "%s\n", expected ); - printf( "%s\n", found ); + printf( "%s\n", expectedStr ); + printf( "%s\n", foundStr ); } else { - printf (" %s [%s][%s]\n", testString, expected, found); + printf (" %s [%s][%s]\n", testString, expectedStr, foundStr); } }