2
0
Эх сурвалжийг харах

SHMEM support commented out

Jiri Kuthan 24 жил өмнө
parent
commit
d80dc2b86d
1 өөрчлөгдсөн 14 нэмэгдсэн , 12 устгасан
  1. 14 12
      modules/tm/sh_malloc.h

+ 14 - 12
modules/tm/sh_malloc.h

@@ -1,27 +1,17 @@
 #ifndef _SH_MALLOC_H
 #define _SH_MALLOC_H
 
-#ifdef MEM_DBG
-
-#include <stdlib.h>
-
-#define sh_malloc(size)		({ void *_p=malloc((size)); \
-				  printf("MEMDBG: malloc (%d): %p\n", (size), _p); \
-				  _p; })
-
-#define sh_free(ptr)		({ printf("MEMDBG: free: %p\n", (ptr)); free((ptr)); })
 
 /*
-#elif defined SHM_MEM
+#if defined SHM_MEM
 
 #include "../../shm_mem.h"
 
 #define sh_malloc(size)		shm_malloc((size))
 #define sh_free(ptr)		shm_free((ptr))
 
-*/
-
 #else
+*/
 
 #include <stdlib.h>
 
@@ -30,5 +20,17 @@
 
 #endif
 
+/*
+#ifdef MEM_DBG
+
+#include <stdlib.h>
+
+#define sh_malloc(size)		({ void *_p=malloc((size)); \
+				  printf("MEMDBG: malloc (%d): %p\n", (size), _p); \
+				  _p; })
+
+#define sh_free(ptr)		({ printf("MEMDBG: free: %p\n", (ptr)); free((ptr)); })
+
 
 #endif
+*/