diff TaskManager/include/types.h @ 647:7ba4ad4538b1 draft

MailManager rewrite. not yet worked.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 21 Nov 2009 16:18:47 +0900
parents 30dd8a3deb4a
children 08ed5e750d78
line wrap: on
line diff
--- a/TaskManager/include/types.h	Sat Nov 21 11:20:29 2009 +0900
+++ b/TaskManager/include/types.h	Sat Nov 21 16:18:47 2009 +0900
@@ -22,6 +22,10 @@
 #endif
 
 
+#define New(Type,Count) ((Type *)malloc(sizeof(Type)*Count))
+#define ReAlloc(Pointer,Type,Count) ((Type *)realloc((void*)Pointer,sizeof(Type)*Count))
+
+
 #define SPE_ALIGNMENT 16
 #define SPE_ALIGNMENT_FULL 128
 #define SPE_ALIGN __attribute__((aligned(SPE_ALIGNMENT)))