summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-17 21:37:19 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-17 21:37:19 -0400
commit56cfd845760cf54ece1e48291e91c62594ffc963 (patch)
tree2cfcaf26a4db9aa6f28921fe32b73526490f0a92
parentb2258cedd17027b2f32514dd4e0c5ba66b3d38c3 (diff)
downloadfork-ledger-56cfd845760cf54ece1e48291e91c62594ffc963.tar.gz
fork-ledger-56cfd845760cf54ece1e48291e91c62594ffc963.tar.bz2
fork-ledger-56cfd845760cf54ece1e48291e91c62594ffc963.zip
Disabled an error check that has no real value in 2.6.
-rw-r--r--textual.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/textual.cc b/textual.cc
index b80c820c..131c6da2 100644
--- a/textual.cc
+++ b/textual.cc
@@ -100,8 +100,18 @@ static value_expr parse_amount_expr(std::istream& in, amount_t& amount,
if (! compute_amount(expr, amount, xact))
throw new parse_error("Amount expression failed to compute");
- if (expr->kind == value_expr_t::CONSTANT)
+#if 0
+ if (expr->kind == value_expr_t::CONSTANT) {
expr = NULL;
+ } else {
+ DEBUG_IF("ledger.textual.parse") {
+ std::cout << "Value expression tree:" << std::endl;
+ ledger::dump_value_expr(std::cout, expr.get());
+ }
+ }
+#else
+ expr = NULL;
+#endif
DEBUG_PRINT("ledger.textual.parse", "line " << linenum << ": " <<
"The transaction amount is " << xact->amount);
@@ -233,7 +243,7 @@ transaction_t * parse_transaction(char * line, account_t * account,
if (parse_amount_expr(in, *xact->cost, xact.get(),
PARSE_VALEXPR_NO_MIGRATE))
throw new parse_error
- ("A transaction's cost must evalute to a constant value");
+ ("A transaction's cost must evaluate to a constant value");
unsigned long end = (long)in.tellg();