From 32bdfe20d98f1c8e6c0aabe9b26f0507326d2baa Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 19 Mar 2006 21:11:49 +0000 Subject: Tons of corrections and fixes to value expressions and lot figures. --- main.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'main.cc') diff --git a/main.cc b/main.cc index 705ee3af..84397b15 100644 --- a/main.cc +++ b/main.cc @@ -100,9 +100,7 @@ int parse_and_report(config_t& config, int argc, char * argv[], char * envp[]) command = "p"; else if (command == "output") command = "w"; - else if (command == "emacs") - command = "x"; - else if (command == "lisp") + else if (command == "emacs" || command == "lisp") command = "x"; else if (command == "xml") command = "X"; @@ -119,7 +117,7 @@ int parse_and_report(config_t& config, int argc, char * argv[], char * envp[]) command = "r"; } else if (command == "parse") { - value_auto_ptr expr(ledger::parse_value_expr(*arg)); + value_expr expr(ledger::parse_value_expr(*arg)); if (config.verbose_mode) { std::cout << "Value expression tree:" << std::endl; ledger::dump_value_expr(std::cout, expr.get()); @@ -243,7 +241,7 @@ int parse_and_report(config_t& config, int argc, char * argv[], char * envp[]) // Are we handling the parse or expr commands? Do so now. if (command == "expr") { - value_auto_ptr expr(ledger::parse_value_expr(*arg)); + value_expr expr(ledger::parse_value_expr(*arg)); if (config.verbose_mode) { std::cout << "Value expression tree:" << std::endl; ledger::dump_value_expr(std::cout, expr.get()); -- cgit v1.2.3