From: Matthew Fernandez Date: Wed, 26 Aug 2020 01:14:39 +0000 (-0700) Subject: remove now unused ABS macros X-Git-Tag: 2.46.0~20^2^2~100^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2885b795f26f0802bae3b63a6ebd92d71bc1f07;p=graphviz remove now unused ABS macros --- diff --git a/lib/common/arith.h b/lib/common/arith.h index f0871f33d..18943db6f 100644 --- a/lib/common/arith.h +++ b/lib/common/arith.h @@ -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)) diff --git a/lib/sparse/general.h b/lib/sparse/general.h index 0dd0e7c97..f03be46e6 100644 --- a/lib/sparse/general.h +++ b/lib/sparse/general.h @@ -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 diff --git a/tclpkg/tclpathplan/simple.h b/tclpkg/tclpathplan/simple.h index 498decef0..7bcdfab0b 100644 --- a/tclpkg/tclpathplan/simple.h +++ b/tclpkg/tclpathplan/simple.h @@ -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 ) )