Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51222 - sandbox/tools/profile_templates/src
From: steven_at_[hidden]
Date: 2009-02-12 13:25:40


Author: steven_watanabe
Date: 2009-02-12 13:25:39 EST (Thu, 12 Feb 2009)
New Revision: 51222
URL: http://svn.boost.org/trac/boost/changeset/51222

Log:
Fix status printing
Text files modified:
   sandbox/tools/profile_templates/src/filter.cpp | 12 +++---------
   1 files changed, 3 insertions(+), 9 deletions(-)

Modified: sandbox/tools/profile_templates/src/filter.cpp
==============================================================================
--- sandbox/tools/profile_templates/src/filter.cpp (original)
+++ sandbox/tools/profile_templates/src/filter.cpp 2009-02-12 13:25:39 EST (Thu, 12 Feb 2009)
@@ -40,7 +40,7 @@
 #else
                 int instantiations = counter;
 #endif
- if(++instantiations % 100 == 0) {
+ if(instantiations % 100 == 0) {
                     std::fprintf(stderr, "On Instantiation %d\n", instantiations);
                 }
             }
@@ -72,14 +72,8 @@
                 for(std::size_t i = 0; i < buffer.size(); ++i) {
                     std::putchar(buffer[i]);
                 }
- ++counter;
-#ifdef _MSC_VER
- int instantiations = counter / 2;
-#else
- int instantiations = counter;
-#endif
- if(++instantiations % 100 == 0) {
- std::fprintf(stderr, "On Instantiation %d\n", instantiations);
+ if(++counter % 100 == 0) {
+ std::fprintf(stderr, "On Instantiation %d\n", counter);
                 }
                 buffer.clear();
                 matched = false;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk