From 4168bc452a231a9e851795d85f94a5262e40d738 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 24 Mar 2008 13:02:01 +0000 Subject: [PATCH] make the log file more readable; fix the count of warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/ifacecheck/src/ifacecheck.cpp | 6 +++++- utils/ifacecheck/src/xmlparser.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/utils/ifacecheck/src/ifacecheck.cpp b/utils/ifacecheck/src/ifacecheck.cpp index b7b8474e41..b96f5ed60c 100644 --- a/utils/ifacecheck/src/ifacecheck.cpp +++ b/utils/ifacecheck/src/ifacecheck.cpp @@ -165,8 +165,11 @@ bool IfaceCheckApp::Compare() } else { + // shorten the name of the header so the log file is more readable + wxString header = interface[i].GetHeader().AfterLast('/'); + LogMessage("%s: couldn't find the real interface for the '%s' class", - interface[i].GetHeader(), cname); + header, cname); ccount++; } } @@ -244,6 +247,7 @@ int IfaceCheckApp::CompareClasses(const wxClass* iface, const wxClassPtrArray& a LogWarning("%s: the method '%s' of classes '%s' has a different signature%s", header, tofind, searchedclasses, tmp); + count++; // try to modify it! if (m_modify) diff --git a/utils/ifacecheck/src/xmlparser.h b/utils/ifacecheck/src/xmlparser.h index 989aafbfaf..68f183fd3b 100644 --- a/utils/ifacecheck/src/xmlparser.h +++ b/utils/ifacecheck/src/xmlparser.h @@ -18,7 +18,7 @@ // helper macros #define LogMessage(fmt, ...) { wxPrintf(fmt "\n", __VA_ARGS__); fflush(stdout); } -#define LogWarning(fmt, ...) { wxPrintf("WARNING: " fmt "\n", __VA_ARGS__); fflush(stdout); } +#define LogWarning(fmt, ...) { wxPrintf(fmt "\n", __VA_ARGS__); fflush(stdout); } #define LogError(fmt, ...) { wxPrintf("ERROR: " fmt "\n", __VA_ARGS__); fflush(stdout); } #define wxPrint(str) { wxPrintf(str); fflush(stdout); } -- 2.45.2