Separate actions and state.

[SVN r59563]
This commit is contained in:
Daniel James
2010-02-07 09:12:02 +00:00
parent a4eb864260
commit a8dfaf1852
21 changed files with 288 additions and 264 deletions

View File

@@ -25,7 +25,7 @@ namespace quickbook
template <typename T>
void process_action::operator()(T const& x) const
{
output(actions, process(actions, x));
output(actions.state_, process(actions, x));
}
template <typename T>
@@ -34,11 +34,9 @@ namespace quickbook
return x;
}
void output(quickbook::actions&, nothing) {
void output(quickbook::state&, nothing) {
}
void output(quickbook::actions&, std::string const&);
template void process_action::operator()<formatted>(formatted const&) const;
template void process_action::operator()<source_mode>(source_mode const&) const;
template void process_action::operator()<macro>(macro const&) const;