mirror of
https://github.com/louisrubet/rpn
synced 2025-01-01 18:20:06 +01:00
#34: version change
This commit is contained in:
parent
ee508bb605
commit
c877cb20d8
2 changed files with 21 additions and 11 deletions
|
@ -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++)
|
||||
|
|
|
@ -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 "> ";
|
||||
|
|
Loading…
Reference in a new issue