[dovecot-cvs] dovecot/src/lib array.h,1.4,1.5

cras at dovecot.org cras at dovecot.org
Tue Mar 15 20:58:22 EET 2005


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv15956

Modified Files:
	array.h 
Log Message:
Added ARRAY_INIT for initializing array_t in structs.



Index: array.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/array.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- array.h	12 Mar 2005 22:44:37 -0000	1.4
+++ array.h	15 Mar 2005 18:58:18 -0000	1.5
@@ -47,11 +47,13 @@
 	} STMT_END
 #  define ARRAY_SET_TYPE(array, array_type) \
 	array_type **array ## __ ## type = NULL
+#  define ARRAY_INIT { 0, 0 }, 0
 #else
 #  define ARRAY_DEFINE(name, array_type) name
 #  define ARRAY_CREATE(array, pool, array_type, init_count) \
 	array_create(array, pool, sizeof(array_type), init_count);
 #  define ARRAY_SET_TYPE(array, array_type)
+#  define ARRAY_INIT { 0, 0 }
 #endif
 
 struct array {



More information about the dovecot-cvs mailing list