From 5f899ceac78ba7e8f914f87528d04c71771fbb55 Mon Sep 17 00:00:00 2001 From: Louis RUBET Date: Fri, 5 Sep 2014 14:40:17 +0200 Subject: [PATCH] Change rpn-general-core.h to rpn-test-core.h, and change verbosity usage --- src/rpn.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/rpn.cpp b/src/rpn.cpp index cabe6f8..6521bf1 100644 --- a/src/rpn.cpp +++ b/src/rpn.cpp @@ -179,7 +179,7 @@ public: type = (cmd_type_t)seq_type(i); // - if (g_verbose >= 1) + if (g_verbose >= 2) { cout << "(" << i << ") "; ((object*)seq_obj(i))->show(); @@ -458,9 +458,11 @@ public: return ret_ok; } } - return ret_unknown_err; + return ret_unknown_err; } + ret_value get_err(void) { return _err; } + // interactive entry and decoding static ret_value entry(program& prog) { @@ -693,7 +695,7 @@ private: //keywords declaration #include "rpn-cmd.h" -#include "rpn-general-core.h" +#include "rpn-test-core.h" // static void apply_default(void)