[kaffe] CVS kaffe (dalibor): Moved MAX,MIN macros away from support.h to where they are actually used

Kaffe CVS cvs-commits at kaffe.org
Tue Mar 23 13:36:02 PST 2004


PatchSet 4563 
Date: 2004/03/23 21:22:47
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Moved MAX,MIN macros away from support.h to where they are actually used

2004-03-23  Dalibor Topic <robilad at kaffe.org>

        * kaffe/kaffevm/support.h:
        (MAX, MIN): Removed unused macro.

        * kaffe/kaffevm/mem/gc-mem.c:
        (MAX) Moved over here, since it's the only place where
        it's used.

Members: 
	ChangeLog:1.2141->1.2142 
	kaffe/kaffevm/support.h:1.26->1.27 
	kaffe/kaffevm/mem/gc-mem.c:1.53->1.54 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2141 kaffe/ChangeLog:1.2142
--- kaffe/ChangeLog:1.2141	Tue Mar 23 19:30:49 2004
+++ kaffe/ChangeLog	Tue Mar 23 21:22:47 2004
@@ -1,5 +1,14 @@
 2004-03-23  Dalibor Topic <robilad at kaffe.org>
 
+	* kaffe/kaffevm/support.h:
+	(MAX, MIN): Removed unused macro.
+
+	* kaffe/kaffevm/mem/gc-mem.c:
+	(MAX) Moved over here, since it's the only place where
+	it's used.
+
+2004-03-23  Dalibor Topic <robilad at kaffe.org>
+
         * libraries/javalib/essential.files,
         libraries/javalib/profiles/allatonce/all.files,
         libraries/javalib/profiles/default/core.files:
Index: kaffe/kaffe/kaffevm/support.h
diff -u kaffe/kaffe/kaffevm/support.h:1.26 kaffe/kaffe/kaffevm/support.h:1.27
--- kaffe/kaffe/kaffevm/support.h:1.26	Sun Dec 14 17:13:13 2003
+++ kaffe/kaffe/kaffevm/support.h	Tue Mar 23 21:22:50 2004
@@ -170,12 +170,4 @@
 		(1 << (BITMAP_BPI - 1 - (n) % BITMAP_BPI))) \
 	    dprintf("1"); else dprintf("0"); }
 
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-
 #endif
Index: kaffe/kaffe/kaffevm/mem/gc-mem.c
diff -u kaffe/kaffe/kaffevm/mem/gc-mem.c:1.53 kaffe/kaffe/kaffevm/mem/gc-mem.c:1.54
--- kaffe/kaffe/kaffevm/mem/gc-mem.c:1.53	Fri Mar 19 18:03:04 2004
+++ kaffe/kaffe/kaffevm/mem/gc-mem.c	Tue Mar 23 21:22:51 2004
@@ -28,6 +28,10 @@
 #include <unistd.h>
 #endif
 
+#ifndef MAX
+#define MAX(A,B) ((A) > (B) ? (A) : (B))
+#endif
+
 static iStaticLock	gc_heap_lock;
 
 #if defined(KAFFE_STATS)




More information about the kaffe mailing list