[dovecot-cvs] dovecot/src/plugins/acl acl-backend-vfile.c, 1.7, 1.8 acl-cache.c, 1.3, 1.4 acl-mailbox.c, 1.2, 1.3 acl-plugin.h, 1.1, 1.2

cras at dovecot.org cras at dovecot.org
Wed Jun 28 16:11:00 EEST 2006


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

Modified Files:
	acl-backend-vfile.c acl-cache.c acl-mailbox.c acl-plugin.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: acl-backend-vfile.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-backend-vfile.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- acl-backend-vfile.c	30 May 2006 12:20:30 -0000	1.7
+++ acl-backend-vfile.c	28 Jun 2006 13:10:55 -0000	1.8
@@ -116,7 +116,7 @@
 static const char *const *
 acl_parse_rights(const char *acl, const char **error_r)
 {
-	array_t ARRAY_DEFINE(rights, const char *);
+	ARRAY_DEFINE(rights, const char *);
 	const char *const *names;
 	unsigned int i;
 

Index: acl-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-cache.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- acl-cache.c	30 May 2006 12:20:30 -0000	1.3
+++ acl-cache.c	28 Jun 2006 13:10:55 -0000	1.4
@@ -31,7 +31,7 @@
 	   rights can be added to the mapping. */
 	pool_t right_names_pool;
 	/* idx => right name. */
-	array_t ARRAY_DEFINE(right_idx_name_map, const char *);
+	ARRAY_DEFINE(right_idx_name_map, const char *);
 	/* name => idx */
 	struct hash_table *right_name_idx_map;
 };

Index: acl-mailbox.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-mailbox.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- acl-mailbox.c	9 May 2006 11:57:41 -0000	1.2
+++ acl-mailbox.c	28 Jun 2006 13:10:55 -0000	1.3
@@ -14,7 +14,7 @@
 #include <sys/stat.h>
 
 #define ACL_CONTEXT(obj) \
-	*((void **)array_idx_modifyable(&(obj)->module_contexts, \
+	*((void **)array_idx_modifiable(&(obj)->module_contexts, \
 					acl_storage_module_id))
 
 struct acl_mailbox {

Index: acl-plugin.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-plugin.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- acl-plugin.h	27 Feb 2006 16:30:39 -0000	1.1
+++ acl-plugin.h	28 Jun 2006 13:10:55 -0000	1.2
@@ -4,7 +4,7 @@
 #include "mail-storage-private.h"
 
 #define ACL_CONTEXT(obj) \
-	*((void **)array_idx_modifyable(&(obj)->module_contexts, \
+	*((void **)array_idx_modifiable(&(obj)->module_contexts, \
 					acl_storage_module_id))
 
 enum acl_storage_rights {



More information about the dovecot-cvs mailing list