X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctgraphics%2Fezset.cpp;h=4e68671507c01eb752204459930e1340460931ac;hp=074b287025608cab5d454a67696cfc694ea18ec9;hb=55426f4170ed9dc777c3cec3741e4a59e6eebd38;hpb=08a5cd04c3994d5ea24713b9b000791bd2e406fe diff --git a/libctgraphics/ezset.cpp b/libctgraphics/ezset.cpp index 074b287..4e68671 100644 --- a/libctgraphics/ezset.cpp +++ b/libctgraphics/ezset.cpp @@ -6,7 +6,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** - ** $Id: ezset.cpp,v 1.7 2000/07/29 19:50:08 kevin Exp $ + ** $Id: ezset.cpp,v 1.9 2000/12/06 15:17:51 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -62,7 +62,7 @@ EZPlot::ezcmd (char *comm) int code; bool retval = true; if (! pol_usertok (str, &code)) { - cerr << "Illegal EZSET command: " << str << endl; + sys_error(ERR_WARNING, "Illegal EZSET command: %s", str); pol_reader(); retval = false; } @@ -74,7 +74,7 @@ EZPlot::ezcmd (char *comm) } -int +bool EZPlot::do_cmd (int lx) { char str [1024]; @@ -368,7 +368,7 @@ EZPlot::do_cmd (int lx) } pol_reader (); - return (TRUE); + return (true); } @@ -376,7 +376,7 @@ EZPlot::do_cmd (int lx) void EZPlot::bad_option (char *opt) { - cerr << opt << " is an INVALID option\n"; + sys_error (ERR_WARNING, "INVALID option: %s", opt); } /*----------------------------------------------------------------------*/