mirror of
https://github.com/louisrubet/rpn
synced 2025-01-19 10:26:22 +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()
|
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++)
|
||||||
|
|
|
@ -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 "> ";
|
||||||
|
|
Loading…
Reference in a new issue