#34: version change

This commit is contained in:
Louis Rubet 2017-04-20 23:06:49 +02:00
parent ee508bb605
commit c877cb20d8
2 changed files with 21 additions and 11 deletions

View file

@ -24,13 +24,17 @@ void verbose()
void help() void help()
{ {
// software name
cout<<endl; cout<<endl;
cout<<ATTR_BOLD<<uname<<ATTR_OFF<<endl; cout<<ATTR_BOLD<<uname<<ATTR_OFF<<endl;
cout<<endl; cout<<endl;
// description
cout<<description<<mpfr_get_version()<<description_more;
cout<<endl<<endl;
// syntax // syntax
for (int i = 0; syntax[i] != NULL; i++) cout<<syntax<<endl;
cout<<syntax[i]<<endl;
// keywords // keywords
for(unsigned int i=0; i<sizeof(_keywords)/sizeof(_keywords[0]); i++) for(unsigned int i=0; i<sizeof(_keywords)/sizeof(_keywords[0]); i++)

View file

@ -1,19 +1,25 @@
// version and soft name // version and soft name
static const char version[] = "2.0 RC1"; static const char version[] = "2.0 RC1";
static const char uname[] = "rpn v2.0 RC1, (c) 2013 <louis@rubet.fr>, GNU General Public License"; static const char uname[] =
"rpn v2.0 RC1, (c) 2013 <louis@rubet.fr>, GNU General Public License";
static const char g_cursor[] = "> "; static const char g_cursor[] = "> ";
static const string g_show_stack_separator = "> "; static const string g_show_stack_separator = "> ";
// syntax // description
static const char* syntax[] = { static const char description[] =
ATTR_BOLD "R" ATTR_OFF "everse " ATTR_BOLD "R" ATTR_OFF "everse "
ATTR_BOLD "P" ATTR_OFF "olish " ATTR_BOLD "P" ATTR_OFF "olish "
ATTR_BOLD "N" ATTR_OFF "otation language, based on Hewlett-Packard RPL", ATTR_BOLD "N" ATTR_OFF "otation language, based on "
"", "Hewlett-Packard RPL language\n"
"Syntax: rpn [command]", "using MPFR library v";
"with optional command = list of commands", static const char description_more[] =
NULL " released under the GNU Lesser General Public License,\n"
}; "version 3 or any later version\n";
// syntax
static const char syntax[] =
ATTR_BOLD "Syntax" ATTR_OFF ": rpn [command]\n"
"with optional command = list of commands";
static const char prompt[] = ATTR_BOLD "rpn" ATTR_OFF "> "; static const char prompt[] = ATTR_BOLD "rpn" ATTR_OFF "> ";