summaryrefslogtreecommitdiff
path: root/src/format.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-12-22 15:31:35 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-12-22 15:31:35 -0500
commitd2ac9f7eaf5caacdef516a45314334dc5fc49fe2 (patch)
tree9b804012383a7834552cd328267724d62e00a85b /src/format.h
parentedc5371bd35b4ab0c517634a5b30c0c78db30586 (diff)
downloadfork-ledger-d2ac9f7eaf5caacdef516a45314334dc5fc49fe2.tar.gz
fork-ledger-d2ac9f7eaf5caacdef516a45314334dc5fc49fe2.tar.bz2
fork-ledger-d2ac9f7eaf5caacdef516a45314334dc5fc49fe2.zip
Create format_t::mark_uncompiled
Diffstat (limited to 'src/format.h')
-rw-r--r--src/format.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/format.h b/src/format.h
index a0b95567..256dd66a 100644
--- a/src/format.h
+++ b/src/format.h
@@ -142,6 +142,15 @@ public:
set_text(_format);
}
+ virtual void mark_uncompiled() {
+ for (element_t * elem = elements.get(); elem; elem = elem->next.get()) {
+ if (elem->type == element_t::EXPR) {
+ expr_t& expr(boost::get<expr_t>(elem->data));
+ expr.mark_uncompiled();
+ }
+ }
+ }
+
virtual result_type real_calc(scope_t& scope);
virtual void dump(std::ostream& out) const {