Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65280 - in trunk/tools/quickbook: src test
From: dnljms_at_[hidden]
Date: 2010-09-05 04:14:19


Author: danieljames
Date: 2010-09-05 04:14:16 EDT (Sun, 05 Sep 2010)
New Revision: 65280
URL: http://svn.boost.org/trac/boost/changeset/65280

Log:
Fix argument position in break_arguments.

And some small code_snippet improvements.
Text files modified:
   trunk/tools/quickbook/src/actions.cpp | 2 +-
   trunk/tools/quickbook/src/code_snippet.cpp | 5 -----
   trunk/tools/quickbook/test/callouts.cpp | 2 ++
   3 files changed, 3 insertions(+), 6 deletions(-)

Modified: trunk/tools/quickbook/src/actions.cpp
==============================================================================
--- trunk/tools/quickbook/src/actions.cpp (original)
+++ trunk/tools/quickbook/src/actions.cpp 2010-09-05 04:14:16 EDT (Sun, 05 Sep 2010)
@@ -682,7 +682,7 @@
                     while(r_pos != end && std::find(whitespace, whitespace_end, *r_pos) != whitespace_end) ++r_pos;
                     if (r_pos == end)
                         break;
- template_body second(std::string(r_pos, end), begin.get_position(), false);
+ template_body second(std::string(r_pos, end), r_pos.get_position(), false);
                     body.content = std::string(begin, l_pos);
                     args.push_back(second);
                 }

Modified: trunk/tools/quickbook/src/code_snippet.cpp
==============================================================================
--- trunk/tools/quickbook/src/code_snippet.cpp (original)
+++ trunk/tools/quickbook/src/code_snippet.cpp 2010-09-05 04:14:16 EDT (Sun, 05 Sep 2010)
@@ -6,8 +6,6 @@
     License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
     http://www.boost.org/LICENSE_1_0.txt)
 =============================================================================*/
-#if !defined(BOOST_SPIRIT_QUICKBOOK_CODE_SNIPPET_HPP)
-#define BOOST_SPIRIT_QUICKBOOK_CODE_SNIPPET_HPP
 
 #include <boost/spirit/include/classic_core.hpp>
 #include <boost/spirit/include/classic_actor.hpp>
@@ -405,6 +403,3 @@
         }
     }
 }
-
-#endif // BOOST_SPIRIT_QUICKBOOK_CODE_SNIPPET_HPP
-

Modified: trunk/tools/quickbook/test/callouts.cpp
==============================================================================
--- trunk/tools/quickbook/test/callouts.cpp (original)
+++ trunk/tools/quickbook/test/callouts.cpp 2010-09-05 04:14:16 EDT (Sun, 05 Sep 2010)
@@ -3,6 +3,8 @@
 // Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or move at http://www.boost.org/LICENSE_1_0.txt)
 
+/*< This shouldn't be used. >*/
+
 //[ example1
 
 /*`


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