Changeset: cd65acb2ae68 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cd65acb2ae68
Modified Files:
gdk/gdk.h
monetdb5/modules/kernel/bat5.c
Branch: default
Log Message:
Remove ABS and NEG macros: they're not used anymore.
diffs (25 lines):
diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -531,9 +531,6 @@
* The interface definitions for the application programs are shown
* below. The global variables should not be modified directly.
*/
-#define NEG(A) (((int)(A))>0?-((int)(A)):((int)(A)))
-#define ABS(A) abs(A) /* use function since it may well be built in */
-
#ifndef TRUE
#define TRUE 1
#define FALSE 0
diff --git a/monetdb5/modules/kernel/bat5.c b/monetdb5/modules/kernel/bat5.c
--- a/monetdb5/modules/kernel/bat5.c
+++ b/monetdb5/modules/kernel/bat5.c
@@ -51,7 +51,7 @@ static BAT *
lock_desc(bat bid)
{
BBPfix(bid);
- return BBPquickdesc(ABS(bid), 0);
+ return BBPquickdesc(abs(bid), 0);
}
static void
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list