]> granicus.if.org Git - graphviz/commitdiff
remove now unused ABS macros
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 26 Aug 2020 01:14:39 +0000 (18:14 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 1 Sep 2020 00:11:57 +0000 (17:11 -0700)
lib/common/arith.h
lib/sparse/general.h
tclpkg/tclpathplan/simple.h

index f0871f33d6c104f9e01a97a7670cdae7c20c7f06..18943db6fe58eb192cc75464512a83b243a8069d 100644 (file)
@@ -39,11 +39,6 @@ extern "C" {
 #endif
 #define MAX(a,b)       ((a)>(b)?(a):(b))
 
-#ifdef ABS
-#undef ABS
-#endif
-#define ABS(a)         ((a) >= 0 ? (a) : -(a))
-
 #define AVG(a,b)       ((a + b) / 2)
 #define SGN(a)         (((a)<0)? -1 : 1)
 #define CMP(a,b)       (((a)<(b)) ? -1 : (((a)>(b)) ? 1 : 0))
index 0dd0e7c97d01dbd0ea960a2068a38a7dfe6dac06..f03be46e6ef05c2e175fa9aa99d24456fad768fc 100644 (file)
@@ -45,7 +45,6 @@
 #define NEW(t)       (t*)malloc(sizeof(t))
 #define MAX(a,b) ((a)>(b)?(a):b)
 #define MIN(a,b) ((a)<(b)?(a):b)
-#define ABS(a) (((a)>0)?(a):(-(a)))
 
 #ifdef TRUE
 #undef TRUE
index 498decef0775ef6baa23028ecf37dcde1abb2375..7bcdfab0bf51437e2ba18de9def64b09b5ae64a8 100644 (file)
@@ -20,7 +20,6 @@ extern "C" {
 
 #define NIL 0
 
-#define ABS(x) (((x) > 0) ? (x) : (-x))
 #define SLOPE(p,q) ( ( ( p.y ) - ( q.y ) ) / ( ( p.x ) - ( q.x ) ) )
 #define MAX(a,b) ( ( a ) > ( b ) ? ( a ) : ( b ) )