Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63165 - branches/quickbook-1.5-spirit2
From: daniel_james_at_[hidden]
Date: 2010-06-20 16:31:35


Author: danieljames
Date: 2010-06-20 16:31:34 EDT (Sun, 20 Jun 2010)
New Revision: 63165
URL: http://svn.boost.org/trac/boost/changeset/63165

Log:
Warning when version is undefined.
Text files modified:
   branches/quickbook-1.5-spirit2/doc_info_grammar.cpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: branches/quickbook-1.5-spirit2/doc_info_grammar.cpp
==============================================================================
--- branches/quickbook-1.5-spirit2/doc_info_grammar.cpp (original)
+++ branches/quickbook-1.5-spirit2/doc_info_grammar.cpp 2010-06-20 16:31:34 EDT (Sun, 20 Jun 2010)
@@ -24,6 +24,7 @@
 #include "state.hpp"
 #include "parse_utils.hpp"
 #include "misc_rules.hpp"
+#include "utils.hpp"
 
 namespace quickbook
 {
@@ -37,16 +38,15 @@
         qbk_version_n = (qbk_major_version * 100) + qbk_minor_version;
     }
     
- void default_quickbook_version()
+ void default_quickbook_version(file_position pos)
     {
         qbk_major_version = 1;
         qbk_minor_version = 1;
         qbk_version_n = 101;
 
- // TODO:
- //detail::outwarn(actions.filename.native_file_string(),1)
- // << "Warning: Quickbook version undefined. "
- // "Version 1.1 is assumed" << std::endl;
+ detail::outwarn(pos.file)
+ << "Warning: Quickbook version undefined. "
+ "Version 1.1 is assumed" << std::endl;
     }
 
     void quickbook_grammar::impl::init_doc_info()
@@ -117,7 +117,7 @@
>> uint2_t()
>> space >> ']'
             ) [set_quickbook_version]
- | qi::eps [default_quickbook_version]
+ | position [default_quickbook_version]
             ;
 
         doc_version = "version" >> hard_space >> qi::raw[*~qi::char_(']')];


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