Change rpn-general-core.h to rpn-test-core.h, and change verbosity usage

This commit is contained in:
Louis RUBET 2014-09-05 14:40:17 +02:00
parent 76160d9c8d
commit 5f899ceac7

View file

@ -179,7 +179,7 @@ public:
type = (cmd_type_t)seq_type(i); type = (cmd_type_t)seq_type(i);
// //
if (g_verbose >= 1) if (g_verbose >= 2)
{ {
cout << "(" << i << ") "; cout << "(" << i << ") ";
((object*)seq_obj(i))->show(); ((object*)seq_obj(i))->show();
@ -458,9 +458,11 @@ public:
return ret_ok; return ret_ok;
} }
} }
return ret_unknown_err; return ret_unknown_err;
} }
ret_value get_err(void) { return _err; }
// interactive entry and decoding // interactive entry and decoding
static ret_value entry(program& prog) static ret_value entry(program& prog)
{ {
@ -693,7 +695,7 @@ private:
//keywords declaration //keywords declaration
#include "rpn-cmd.h" #include "rpn-cmd.h"
#include "rpn-general-core.h" #include "rpn-test-core.h"
// //
static void apply_default(void) static void apply_default(void)