summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 03:09:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 03:09:46 -0400
commitb00999893006891affccc15cfd5d60b9adb7af8c (patch)
tree3cc5383dc127cd3a187a8e830cd8fa3c72ce455a /format.cc
parentc0d7feac7f4af1b3535834f511e2e9ef2c2f7cb0 (diff)
downloadfork-ledger-b00999893006891affccc15cfd5d60b9adb7af8c.tar.gz
fork-ledger-b00999893006891affccc15cfd5d60b9adb7af8c.tar.bz2
fork-ledger-b00999893006891affccc15cfd5d60b9adb7af8c.zip
if NO_CLEANUP is defined in the Makefile (now default), no cleanup is done
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/format.cc b/format.cc
index 13ae0235..ec259a19 100644
--- a/format.cc
+++ b/format.cc
@@ -35,8 +35,13 @@ std::string partial_account_name(const account_t * account)
std::string format_t::date_format = "%Y/%m/%d";
+#ifdef NO_CLEANUP
+value_expr_t * format_t::value_expr = NULL;
+value_expr_t * format_t::total_expr = NULL;
+#else
std::auto_ptr<value_expr_t> format_t::value_expr;
std::auto_ptr<value_expr_t> format_t::total_expr;
+#endif
element_t * format_t::parse_elements(const std::string& fmt)
{