#34: version change

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

View file

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

View file

@ -1,19 +1,25 @@
// version and soft name
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 string g_show_stack_separator = "> ";
// syntax
static const char* syntax[] = {
// description
static const char description[] =
ATTR_BOLD "R" ATTR_OFF "everse "
ATTR_BOLD "P" ATTR_OFF "olish "
ATTR_BOLD "N" ATTR_OFF "otation language, based on Hewlett-Packard RPL",
"",
"Syntax: rpn [command]",
"with optional command = list of commands",
NULL
};
ATTR_BOLD "N" ATTR_OFF "otation language, based on "
"Hewlett-Packard RPL language\n"
"using MPFR library v";
static const char description_more[] =
" 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 "> ";