Create format_t::mark_uncompiled
This commit is contained in:
parent
edc5371bd3
commit
d2ac9f7eaf
2 changed files with 11 additions and 2 deletions
|
|
@ -131,7 +131,7 @@ public:
|
||||||
set_text(original_string ? *original_string : "<stream>");
|
set_text(original_string ? *original_string : "<stream>");
|
||||||
}
|
}
|
||||||
|
|
||||||
void mark_uncompiled() {
|
virtual void mark_uncompiled() {
|
||||||
compiled = false;
|
compiled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,15 @@ public:
|
||||||
set_text(_format);
|
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 result_type real_calc(scope_t& scope);
|
||||||
|
|
||||||
virtual void dump(std::ostream& out) const {
|
virtual void dump(std::ostream& out) const {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue