mirror of
https://github.com/louisrubet/rpn
synced 2025-01-16 03:41:28 +01:00
#53: removed comand verbose
This commit is contained in:
parent
a01c5b50bc
commit
4978776ee0
3 changed files with 1 additions and 26 deletions
|
@ -10,7 +10,6 @@ program::keyword_t program::_keywords[] =
|
|||
{ cmd_keyword, "quit", &program::good_bye, "(or q or exit) quit software" },
|
||||
{ cmd_keyword, "exit", &program::good_bye, "" },
|
||||
{ cmd_keyword, "test", &program::test, "" }, //not seen by user
|
||||
{ cmd_keyword, "verbose", &program::verbose, "set verbosity, from 0 (not verbose) to > 0" },
|
||||
{ cmd_keyword, "version", &program::rpn_version, "show rpn version" },
|
||||
{ cmd_keyword, "uname", &program::rpn_uname, "show rpn complete identification string" },
|
||||
{ cmd_keyword, "type", &program::type, "show first stack entry type" },
|
||||
|
|
|
@ -11,15 +11,6 @@ void good_bye()
|
|||
ERR_CONTEXT(ret_good_bye);
|
||||
}
|
||||
|
||||
void verbose()
|
||||
{
|
||||
MIN_ARGUMENTS(1);
|
||||
ARG_MUST_BE_OF_TYPE(0, cmd_number);
|
||||
|
||||
int verbose = int(((number*)_stack->pop_back())->_value);
|
||||
g_verbose = verbose;
|
||||
}
|
||||
|
||||
void help()
|
||||
{
|
||||
// software name
|
||||
|
@ -50,8 +41,6 @@ void help()
|
|||
cout<<endl;
|
||||
|
||||
// different modes
|
||||
cout<<"Current verbosity is "<<g_verbose<<endl;
|
||||
|
||||
cout<<"Current float mode is ";
|
||||
switch(number::s_mode)
|
||||
{
|
||||
|
|
15
src/rpn.cpp
15
src/rpn.cpp
|
@ -57,9 +57,6 @@ static string s_mpfr_printf_format = "%.12Rg";
|
|||
static mpfr_prec_t s_mpfr_prec = MPFR_128BITS_PREC;
|
||||
static mpfr_rnd_t s_mpfr_rnd = MPFR_DEF_RND;
|
||||
|
||||
//
|
||||
static int g_verbose = 0;
|
||||
|
||||
//
|
||||
#include "escape.h"
|
||||
#include "version.h"
|
||||
|
@ -450,16 +447,8 @@ public:
|
|||
{
|
||||
type = (cmd_type_t)seq_type(i);
|
||||
|
||||
//
|
||||
if (g_verbose >= 2)
|
||||
{
|
||||
cout << "(" << i << ") ";
|
||||
((object*)seq_obj(i))->show();
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
// could be an auto-evaluated symbol
|
||||
else if (type == cmd_symbol)
|
||||
if (type == cmd_symbol)
|
||||
{
|
||||
auto_rcl((symbol*)seq_obj(i));
|
||||
i++;
|
||||
|
@ -764,8 +753,6 @@ public:
|
|||
stringstream ss;
|
||||
ss << number::s_current_precision;
|
||||
s_mpfr_printf_format = s_mpfr_printf_format_beg + ss.str() + s_mpfr_printf_format_std;
|
||||
|
||||
g_verbose = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue