mirror of
https://github.com/boostorg/quickbook.git
synced 2026-01-26 18:52:26 +00:00
Separate actions and state.
[SVN r59563]
This commit is contained in:
15
actions.cpp
15
actions.cpp
@@ -10,7 +10,7 @@
|
||||
=============================================================================*/
|
||||
|
||||
#include "actions.hpp"
|
||||
#include "actions_class.hpp"
|
||||
#include "state.hpp"
|
||||
#include "doc_info.hpp"
|
||||
#include "utils.hpp"
|
||||
|
||||
@@ -22,6 +22,17 @@ namespace quickbook
|
||||
unsigned qbk_minor_version = 0;
|
||||
unsigned qbk_version_n = 0; // qbk_major_version * 100 + qbk_minor_version
|
||||
|
||||
actions::actions(state& state)
|
||||
: state_(state)
|
||||
, templates(state.templates)
|
||||
, macro(state.macro)
|
||||
, process(*this)
|
||||
, phrase_push(state.phrase)
|
||||
, phrase_pop(state.phrase)
|
||||
, error(state.error_count)
|
||||
, syntax_p(state.source_mode, *this)
|
||||
{}
|
||||
|
||||
namespace {
|
||||
std::string fully_qualified_id(std::string const& library_id,
|
||||
std::string const& qualified_section_id,
|
||||
@@ -50,7 +61,7 @@ namespace quickbook
|
||||
detail::outwarn(pos.file,pos.line) << "Empty id.\n";
|
||||
}
|
||||
|
||||
void phrase_push_action::operator()(unused_type, unused_type, unused_type) const
|
||||
void phrase_push_action::operator()() const
|
||||
{
|
||||
phrase.push();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user