diff include/mb_tools.h @ 235:65cabbdd5284

termporary revision
author Thinker K.F. Li <thinker@branda.to>
date Thu, 25 Dec 2008 18:40:27 +0800
parents 530bb7728546
children bd8ea44b421e
line wrap: on
line diff
--- a/include/mb_tools.h	Wed Dec 24 23:43:39 2008 +0800
+++ b/include/mb_tools.h	Thu Dec 25 18:40:27 2008 +0800
@@ -121,7 +121,8 @@
 	return 0;					\
     }
 #define DARRAY_CLEAN(da) do { (da)->num = 0; } while(0)
-#define DARRAY_INIT(da) do { (da)->num = (da)->max = 0; (da)->ds = NULL; }
+#define DARRAY_INIT(da) \
+    do { (da)->num = (da)->max = 0; (da)->ds = NULL; } while(0)
 #define DARRAY_DESTROY(da) do { if((da)->ds) free((da)->ds); } while(0)
 /* @} */