projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r145: *** empty log message ***
[ctsim.git]
/
libctgraphics
/
ezplot.cpp
diff --git
a/libctgraphics/ezplot.cpp
b/libctgraphics/ezplot.cpp
index 666f7593d0e9562aa0eb527483c13b0f05fafacd..05ca13fbf856b7c07656734183b226065a4a79d2 100644
(file)
--- a/
libctgraphics/ezplot.cpp
+++ b/
libctgraphics/ezplot.cpp
@@
-6,7
+6,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ezplot.cpp,v 1.
4 2000/07/04 18:33:35
kevin Exp $
+** $Id: ezplot.cpp,v 1.
5 2000/07/13 07:03:21
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
**
** 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
@@
-131,14
+131,14
@@
ezplot (float x[], double y[], int num)
for (int i = 0; i < num; i++)
dx[i] = x[i];
for (int i = 0; i < num; i++)
dx[i] = x[i];
- ezplot (dx, y, num);
+
return
ezplot (dx, y, num);
}
SGP_ID
ezplot (double x[], double y[], int num)
{
}
SGP_ID
ezplot (double x[], double y[], int num)
{
- unsigned int size
, i
;
+ unsigned int size;
SGP_ID gid = NULL;
if (ez.i_plotimmediate == TRUE) {
SGP_ID gid = NULL;
if (ez.i_plotimmediate == TRUE) {
@@
-160,7
+160,7
@@
ezplot (double x[], double y[], int num)
size = num * sizeof(double);
ez.curve[ez.i_numcurves].x = new double [size];
ez.curve[ez.i_numcurves].y = new double [size];
size = num * sizeof(double);
ez.curve[ez.i_numcurves].x = new double [size];
ez.curve[ez.i_numcurves].y = new double [size];
- for (i = 0; i < num; i++) {
+ for (i
nt i
= 0; i < num; i++) {
ez.curve[ez.i_numcurves].x[i] = x[i];
ez.curve[ez.i_numcurves].y[i] = y[i];
}
ez.curve[ez.i_numcurves].x[i] = x[i];
ez.curve[ez.i_numcurves].y[i] = y[i];
}
@@
-911,10
+911,7
@@
void ezinit(void)
void ezfree(void)
{
void ezfree(void)
{
- static char errmsg[] = "EZFREE in EZPLOT";
- int i;
-
- for (i = 0; i < ez.i_numcurves; i++) {
+ for (int i = 0; i < ez.i_numcurves; i++) {
delete ez.curve[i].x;
delete ez.curve[i].y;
}
delete ez.curve[i].x;
delete ez.curve[i].y;
}