summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-06-28 07:46:04 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-06-28 07:46:04 +0000
commitfe8ac023aa100c3711846382b26c3a16f01ea46b (patch)
tree763330fe16d880a4cf0a0b6cb119af0fd9f32381 /math
parentGeneric-NQS, a freely available Network Queuing System that provides (diff)
Allow "x,y" in addition to "x y" formatted data points.
Notes
Notes: svn path=/head/; revision=19863
Diffstat (limited to 'math')
-rw-r--r--math/xgraph/files/patch-ab28
1 files changed, 28 insertions, 0 deletions
diff --git a/math/xgraph/files/patch-ab b/math/xgraph/files/patch-ab
new file mode 100644
index 000000000000..bd85347c9352
--- /dev/null
+++ b/math/xgraph/files/patch-ab
@@ -0,0 +1,28 @@
+--- xgraph.c.orig Tue Nov 23 04:29:38 1993
++++ xgraph.c Mon Jun 28 00:44:15 1999
+@@ -46,8 +46,6 @@
+ #define BTNPAD 1
+ #define BTNINTER 3
+
+-#define MAX(a,b) ((a) > (b) ? (a) : (b))
+-#define MIN(a,b) ((a) < (b) ? (a) : (b))
+ #define ABS(x) ((x) < 0 ? -(x) : (x))
+ #define ZERO_THRES 1.0E-07
+
+@@ -266,6 +264,7 @@
+ if (!strm) {
+ (void) fprintf(stderr, "Warning: cannot open file `%s'\n",
+ inFileNames[idx]);
++ errs++;
+ } else {
+ if ((maxitems = ReadData(strm, inFileNames[idx])) < 0) {
+ errs++;
+@@ -1369,6 +1368,8 @@
+ while (*line && (*line != '\n') && (*line != '"')) line++;
+ if (*line) *line = '\0';
+ } else {
++ /* treat comma's as white space */
++ for (first=line; *first; ++first) if (*first == ',') *first = ' ';
+ first = line;
+ while (*line && !isspace(*line)) line++;
+ if (*line) {