** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
- ** $Id: ezset.cpp,v 1.5 2000/07/28 08:28:08 kevin Exp $
+ ** $Id: ezset.cpp,v 1.7 2000/07/29 19:50:08 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
s_ylegend = FALSE;
}
break;
- case S_CURVES:
- if (pol_integer (&n, TT_REAL, FALSE, 0, 0) == TRUE) {
- if (n < 1)
- n = 1;
- // if (modeinteract == TRUE) {
- // curveinteract = n - 1;
- // if (o_unknowncurves == FALSE && o_reqcurves < n)
- // o_reqcurves = n;
- // } else {
- // clearCurve ();
- // o_reqcurves = n;
- // }
- } else {
- if (pol_word ("unknown", 7) == TRUE)
- o_unknowncurves = TRUE;
- else if (pol_word ("end", 3) == TRUE) {
- // o_unknowncurves = FALSE;
- // o_reqcurves = i_numcurves;
- // i_plotimmediate = TRUE;
- // ezplot (static_cast<double*>(NULL), static_cast<double*>(NULL), 0);
- // i_plotimmediate = FALSE;
- }
- }
- break;
case S_SYMBOL:
if (pol_integer (&n, TT_REAL, FALSE, 0, 0) == TRUE) {
if (n > 0 && n <= MAXSYMBOL)
o_symbol = n;
else
o_symbol = 1;
- // if (modeinteract == TRUE && curveinteract >= 0)
- // curve[curveinteract].symbol = o_symbol;
} else {
if (pol_word("every",5) == TRUE) {
if (pol_integer (&n, TT_REAL, FALSE, 0, 0) == TRUE) {
o_symfreq = n;
else
o_symfreq = 1;
- // if (modeinteract == TRUE && curveinteract >= 0)
- // curve[curveinteract].symfreq = o_symfreq;
}
} else if (pol_word ("none",4) == TRUE) {
o_symbol = -1;
- // if (modeinteract == TRUE && curveinteract >= 0)
- // curve[curveinteract].symbol = o_symbol;
}
}
break;
char *keyword;
int code;
} keytab[] = {
- {"solid", S_SOLID},
- {"dash", S_DASH},
- {"noline", S_NOLINE},
- {"black", S_BLACK},
- {"red", S_RED},
- {"blue", S_BLUE},
- {"green", S_GREEN},
- {"pen", S_PEN},
- {"symbol", S_SYMBOL},
- /* "every", S_EVERY, */
- /* "none", S_NONE, */
-
- {"curves", S_CURVES},
- {"curve", S_CURVES},
- /* "unknown", S_UNKNOWN, */
- /* "end", S_END, */
-
+ {"solid", S_SOLID},
+ {"dash", S_DASH},
+ {"noline", S_NOLINE},
+ {"black", S_BLACK},
+ {"red", S_RED},
+ {"blue", S_BLUE},
+ {"green", S_GREEN},
+ {"pen", S_PEN},
+ {"symbol", S_SYMBOL},
+ {"every", S_EVERY},
+ {"none", S_NONE},
{"legend", S_LEGEND},
{"xlegend", S_XLEGEND},
{"ylegend", S_YLEGEND},
{"store", S_STORE},
{"restore", S_RESTORE},
{"amark", S_AMARK},
- {"interactive", S_INTERACTIVE},
{"units", S_UNITS},
{"inches", S_INCHES},
{"user", S_USER},
EZPlot::initkw(void)
{
for (unsigned int i = 0; i < NKEYS; i++)
- if (pol_install(keytab[i].keyword, keytab[i].code) == FALSE)
+ if (! pol_install(keytab[i].keyword, keytab[i].code))
sys_error(ERR_SEVERE, "error installing ezset keywords [initkw]");
}