From cbc11c7f58c923953c54fcba798bf97e7deb81a3 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Mon, 31 Jan 2000 22:50:12 +0000 Subject: [PATCH] - introduced function void greeting(void). --- ginsh/ginsh_parser.yy | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/ginsh/ginsh_parser.yy b/ginsh/ginsh_parser.yy index 265d584e..fb6edb05 100644 --- a/ginsh/ginsh_parser.yy +++ b/ginsh/ginsh_parser.yy @@ -722,21 +722,24 @@ static char **fcn_completion(char *text, int start, int end) } } +void greeting(void) +{ + cout << "ginsh - GiNaC Interactive Shell (" << PACKAGE << " V" << VERSION << ")" << endl; + cout << " __, _______ Copyright (C) 1999-2000 Johannes Gutenberg University Mainz,\n" + << " (__) * | Germany. This is free software with ABSOLUTELY NO WARRANTY.\n" + << " ._) i N a C | You are welcome to redistribute it under certain conditions;\n" + << "<-------------' see the file COPYING for details." << endl; + cout << "Type ?? for a list of help topics." << endl; +} /* * Main program */ - int main(int argc, char **argv) { // Print banner in interactive mode - if (isatty(0)) { - cout << "ginsh - GiNaC Interactive Shell (" << PACKAGE << " " << VERSION << ")\n"; - cout << "Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany\n"; - cout << "This is free software with ABSOLUTELY NO WARRANTY. You are welcome to\n"; - cout << "redistribute it under certain conditions; see the file COPYING for details.\n"; - cout << "Type ?? for a list of help topics.\n"; - } + if (isatty(0)) + greeting(); // Init function table insert_fcns(builtin_fcns); -- 2.49.0