From c877cb20d84a759093018a0c0c1656ab87d38d79 Mon Sep 17 00:00:00 2001 From: Louis Rubet Date: Thu, 20 Apr 2017 23:06:49 +0200 Subject: [PATCH] #34: version change --- src/rpn-general.h | 8 ++++++-- src/version.h | 24 +++++++++++++++--------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/rpn-general.h b/src/rpn-general.h index 9c6f80e..942a885 100644 --- a/src/rpn-general.h +++ b/src/rpn-general.h @@ -24,13 +24,17 @@ void verbose() void help() { + // software name cout<, 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 "> ";