summaryrefslogtreecommitdiff
path: root/src/exprbase.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-11 16:03:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-11 17:02:25 -0400
commitdea2aed0b509734ec4e1cd163ac2a4f013000da2 (patch)
tree7908da76c67ae5172882306a319bf26df81b73b4 /src/exprbase.h
parentd580079df892c30d023b3211d6c4611c17b11f8f (diff)
downloadfork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.gz
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.bz2
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.zip
Untabified all source files
Diffstat (limited to 'src/exprbase.h')
-rw-r--r--src/exprbase.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/exprbase.h b/src/exprbase.h
index 0c096ab4..7eee0398 100644
--- a/src/exprbase.h
+++ b/src/exprbase.h
@@ -78,7 +78,7 @@ public:
protected:
scope_t * context;
string str;
- bool compiled;
+ bool compiled;
virtual result_type real_calc(scope_t& scope) = 0;
@@ -117,7 +117,7 @@ public:
return str;
}
void set_text(const string& txt) {
- str = txt;
+ str = txt;
compiled = false;
}
@@ -126,11 +126,11 @@ public:
return parse(stream, flags, str);
}
virtual void parse(std::istream&,
- const parse_flags_t& = PARSE_DEFAULT,
- const optional<string>& original_string = none) {
+ const parse_flags_t& = PARSE_DEFAULT,
+ const optional<string>& original_string = none) {
set_text(original_string ? *original_string : "<stream>");
}
-
+
void mark_uncompiled() {
compiled = false;
}
@@ -157,8 +157,8 @@ public:
if (! compiled) {
#if defined(DEBUG_ON)
if (SHOW_DEBUG("expr.compile")) {
- DEBUG("expr.compile", "Before compilation:");
- dump(*_log_stream);
+ DEBUG("expr.compile", "Before compilation:");
+ dump(*_log_stream);
}
#endif // defined(DEBUG_ON)
@@ -167,8 +167,8 @@ public:
#if defined(DEBUG_ON)
if (SHOW_DEBUG("expr.compile")) {
- DEBUG("expr.compile", "After compilation:");
- dump(*_log_stream);
+ DEBUG("expr.compile", "After compilation:");
+ dump(*_log_stream);
}
#endif // defined(DEBUG_ON)
}
@@ -249,7 +249,7 @@ private:
template <typename ResultType>
std::ostream& operator<<(std::ostream& out,
- const expr_base_t<ResultType>& expr) {
+ const expr_base_t<ResultType>& expr) {
expr.print(out);
return out;
}