Browse code

- minor fix: DBG_QM_MALLOC/DBG_FM_MALLOC are equiv. now for fm_malloc

Andrei Pelinescu-Onciul authored on 04/07/2005 12:08:33
Showing 1 changed files
... ...
@@ -55,6 +55,19 @@
55 55
 #include <string.h>
56 56
 #include <errno.h>
57 57
 
58
+/* fix DBG MALLOC stuff */
59
+
60
+/* fix debug defines, DBG_F_MALLOC <=> DBG_QM_MALLOC */
61
+#ifdef F_MALLOC
62
+	#ifdef DBG_F_MALLOC
63
+		#ifndef DBG_QM_MALLOC
64
+			#define DBG_QM_MALLOC
65
+		#endif
66
+	#elif defined(DBG_QM_MALLOC)
67
+		#define DBG_F_MALLOC
68
+	#endif
69
+#endif
70
+
58 71
 
59 72
 
60 73
 #include "../dprint.h"
... ...
@@ -104,19 +117,6 @@ void shm_mem_destroy();
104 117
 #define shm_lock()    lock_get(mem_lock)
105 118
 #define shm_unlock()  lock_release(mem_lock)
106 119
 
107
-/* fix DBG MALLOC stuff */
108
-
109
-/* fix debug defines, DBG_F_MALLOC <=> DBG_QM_MALLOC */
110
-#ifdef F_MALLOC
111
-	#ifdef DBG_F_MALLOC
112
-		#ifndef DBG_QM_MALLOC
113
-			#define DBG_QM_MALLOC
114
-		#endif
115
-	#elif defined(DBG_QM_MALLOC)
116
-		#define DBG_F_MALLOC
117
-	#endif
118
-#endif
119
-
120 120
 
121 121
 #ifdef DBG_QM_MALLOC
122 122