[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xgraph pre-12.1 web page (and patch)




The correct URL for the xgraph pre-12.1 web page is
actually <http://www-mash.cs.berkeley.edu/xgraph/index.html>.

(Thanks for pointing out the problem with the other URL, Joerg and
Lloyd.)

(Also, a couple of people have mentioned compiler warnings.  These
probably won't get fixed before the release.  I do have some
portability fixes from a suggestion of Christian; see the attached patch.)

   -John Heidemann


--- xgraph.h-   Thu Dec 16 07:09:10 1999
+++ xgraph.h    Thu Dec 16 07:39:21 1999
@@ -38,10 +38,22 @@
 #endif                         /* CRAY */
 
 #ifndef MAXFLOAT
+#if defined(FLT_MAX)
+#define MAXFLOAT       FLT_MAX
+#elif defined(HUGE)
 #define MAXFLOAT       HUGE
 #endif
+#endif
 
-#define BIGINT         0xfffffff
+#ifndef BIGINT
+#if defined(INT_MAX)
+#define BIGINT         INT_MAX
+#elif defined(MAXINT)
+#define BIGINT MAXINT
+#else
+#define BIGINT 0xffffffff
+#endif
+#endif
 
 #define GRIDPOWER      10
 #define INITSIZE       128
@@ -53,9 +65,15 @@
 #define BTNPAD         1
 #define BTNINTER       3
 
+#ifndef MAX
 #define MAX(a,b)       ((a) > (b) ? (a) : (b))
+#endif
+#ifndef MIN
 #define MIN(a,b)       ((a) < (b) ? (a) : (b))
+#define
+#ifndef ABS
 #define ABS(x)         ((x) < 0 ? -(x) : (x))
+#endif
 #define ZERO_THRES     1.0E-07
 
 /* To get around an inaccurate log */