Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57774 - branches/quickbook-1.5-spirit2/detail
From: daniel_james_at_[hidden]
Date: 2009-11-18 18:10:43


Author: danieljames
Date: 2009-11-18 18:10:42 EST (Wed, 18 Nov 2009)
New Revision: 57774
URL: http://svn.boost.org/trac/boost/changeset/57774

Log:
Put the quickbook version variables in the actions compile unit. They probably should be members of the actions class.
Text files modified:
   branches/quickbook-1.5-spirit2/detail/actions.cpp | 3 +++
   branches/quickbook-1.5-spirit2/detail/quickbook.cpp | 4 ----
   2 files changed, 3 insertions(+), 4 deletions(-)

Modified: branches/quickbook-1.5-spirit2/detail/actions.cpp
==============================================================================
--- branches/quickbook-1.5-spirit2/detail/actions.cpp (original)
+++ branches/quickbook-1.5-spirit2/detail/actions.cpp 2009-11-18 18:10:42 EST (Wed, 18 Nov 2009)
@@ -25,6 +25,9 @@
 {
     char const* quickbook_get_date = "__quickbook_get_date__";
     char const* quickbook_get_time = "__quickbook_get_time__";
+ unsigned qbk_major_version = 0;
+ unsigned qbk_minor_version = 0;
+ unsigned qbk_version_n = 0; // qbk_major_version * 100 + qbk_minor_version
 
     namespace {
         std::string fully_qualified_id(std::string const& library_id,

Modified: branches/quickbook-1.5-spirit2/detail/quickbook.cpp
==============================================================================
--- branches/quickbook-1.5-spirit2/detail/quickbook.cpp (original)
+++ branches/quickbook-1.5-spirit2/detail/quickbook.cpp 2009-11-18 18:10:42 EST (Wed, 18 Nov 2009)
@@ -7,7 +7,6 @@
     License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
     http://www.boost.org/LICENSE_1_0.txt)
 =============================================================================*/
-#include "./quickbook.hpp"
 #include "./actions_class.hpp"
 #include "../grammars.hpp"
 #include "./post_process.hpp"
@@ -37,9 +36,6 @@
     tm* current_time; // the current time
     tm* current_gm_time; // the current UTC time
     bool debug_mode; // for quickbook developers only
- unsigned qbk_major_version = 0;
- unsigned qbk_minor_version = 0;
- unsigned qbk_version_n = 0; // qbk_major_version * 100 + qbk_minor_version
     bool ms_errors = false; // output errors/warnings as if for VS
     std::vector<std::string> include_path;
 


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