[dovecot-cvs] dovecot/src/lib-storage mail-storage-private.h, 1.29, 1.30 mail-storage.c, 1.54, 1.55 mail-storage.h, 1.110, 1.111

cras at dovecot.org cras at dovecot.org
Wed Jun 28 16:10:50 EEST 2006


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

Modified Files:
	mail-storage-private.h mail-storage.c mail-storage.h 
Log Message:
Array API redesigned to work using unions. It now provides type safety
without having to enable DEBUG, as long as the compiler supports typeof().
Its API changed a bit. It now allows directly accessing the array contents,
although that's not necessarily recommended. Changed existing array usage to
be type safe in a bit more places. Removed array_t completely. Also did
s/modifyable/modifiable/.



Index: mail-storage-private.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage-private.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- mail-storage-private.h	17 Jun 2006 13:03:27 -0000	1.29
+++ mail-storage-private.h	28 Jun 2006 13:10:48 -0000	1.30
@@ -75,7 +75,7 @@
         enum mail_storage_lock_method lock_method;
 
 	/* Module-specific contexts. See mail_storage_module_id. */
-	array_t ARRAY_DEFINE(module_contexts, void);
+	ARRAY_DEFINE(module_contexts, void);
 
 	/* IMAP: Give a BAD reply instead of NO */
 	unsigned int syntax_error:1;
@@ -167,7 +167,7 @@
 	pool_t pool;
 
 	/* Module-specific contexts. See mail_storage_module_id. */
-	array_t ARRAY_DEFINE(module_contexts, void);
+	ARRAY_DEFINE(module_contexts, void);
 };
 
 struct mail_vfuncs {
@@ -209,7 +209,7 @@
 	struct mail_vfuncs v;
 
 	pool_t pool;
-	array_t ARRAY_DEFINE(module_contexts, void);
+	ARRAY_DEFINE(module_contexts, void);
 };
 
 struct mailbox_list_context {
@@ -220,7 +220,7 @@
 
 struct mailbox_transaction_context {
 	struct mailbox *box;
-	array_t ARRAY_DEFINE(module_contexts, void);
+	ARRAY_DEFINE(module_contexts, void);
 };
 
 struct mail_search_context {

Index: mail-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- mail-storage.c	27 Jun 2006 10:27:26 -0000	1.54
+++ mail-storage.c	28 Jun 2006 13:10:48 -0000	1.55
@@ -25,7 +25,7 @@
 
 unsigned int mail_storage_module_id = 0;
 
-static array_t ARRAY_DEFINE(storages, struct mail_storage *);
+static ARRAY_DEFINE(storages, struct mail_storage *);
 
 void mail_storage_init(void)
 {

Index: mail-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- mail-storage.h	8 Jun 2006 12:49:31 -0000	1.110
+++ mail-storage.h	28 Jun 2006 13:10:48 -0000	1.111
@@ -177,7 +177,7 @@
 
 	uint32_t first_unseen_seq;
 
-	const array_t *ARRAY_DEFINE_PTR(keywords, const char *);
+	const ARRAY_TYPE(keywords) *keywords;
 };
 
 struct mailbox_sync_rec {



More information about the dovecot-cvs mailing list