Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60982 - in trunk: libs/program_options/example tools/quickbook/detail
From: daniel_james_at_[hidden]
Date: 2010-03-31 17:41:46


Author: danieljames
Date: 2010-03-31 17:41:45 EDT (Wed, 31 Mar 2010)
New Revision: 60982
URL: http://svn.boost.org/trac/boost/changeset/60982

Log:
Report error count at the actual end, rather than just the end of each file.
Text files modified:
   trunk/libs/program_options/example/Jamfile.v2 | 1 +
   trunk/tools/quickbook/detail/quickbook.cpp | 13 +++++++------
   2 files changed, 8 insertions(+), 6 deletions(-)

Modified: trunk/libs/program_options/example/Jamfile.v2
==============================================================================
--- trunk/libs/program_options/example/Jamfile.v2 (original)
+++ trunk/libs/program_options/example/Jamfile.v2 2010-03-31 17:41:45 EDT (Wed, 31 Mar 2010)
@@ -2,6 +2,7 @@
 project
     : requirements <library>../build//boost_program_options
       <hardcode-dll-paths>true
+ <link>static
     ;
 
 exe first : first.cpp ;

Modified: trunk/tools/quickbook/detail/quickbook.cpp
==============================================================================
--- trunk/tools/quickbook/detail/quickbook.cpp (original)
+++ trunk/tools/quickbook/detail/quickbook.cpp 2010-03-31 17:41:45 EDT (Wed, 31 Mar 2010)
@@ -162,12 +162,6 @@
                 << "Syntax Error near column " << pos.column << ".\n";
             ++actor.error_count;
         }
-
- if(actor.error_count)
- {
- detail::outerr(filein_)
- << "Error count: " << actor.error_count << ".\n";
- }
 
         return actor.error_count ? 1 : 0;
     }
@@ -182,6 +176,13 @@
             detail::outwarn(filein_)
                 << "Warning missing [endsect] detected at end of file."
                 << std::endl;
+
+ if(actor.error_count)
+ {
+ detail::outerr(filein_)
+ << "Error count: " << actor.error_count << ".\n";
+ }
+
         return r;
     }
 


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