--- mon/src/mon.cpp 1999/10/04 19:31:09 1.1 +++ mon/src/mon.cpp 1999/10/04 21:16:02 1.2 @@ -1,26 +1,40 @@ /* - * mon.cpp - Machine language monitor + * mon.cpp - mon main program * - * (C) 1997-1999 Christian Bauer + * mon (C) 1997-1999 Christian Bauer, Marc Hellwig + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "sysdeps.h" + +#ifdef HAVE_READLINE_READLINE_H +extern "C" { +#include +} +#endif +#ifdef HAVE_READLINE_HISTORY_H extern "C" { -extern char *readline(char *prompt); -extern void add_history(char *str); +#include } +#endif #include "mon.h" #include "mon_cmd.h" +#include "version.h" // Buffer we're operating on @@ -1115,8 +1129,8 @@ void mon(int argc, char **argv) // Print banner if (interactive) - fprintf(monerr, "\n *** mon V%d.%d by Christian Bauer ***\n" - " *** Press 'h' for help ***\n\n", MON_VERSION, MON_REVISION); + fprintf(monerr, "\n *** mon V%d.%d by Christian Bauer and Marc Hellwig ***\n" + " *** Press 'h' for help ***\n\n", VERSION_MAJOR, VERSION_MINOR); } init_abort();