[dovecot-cvs] dovecot/src/lib-imap imap-base-subject.c,1.12,1.13

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


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

Modified Files:
	imap-base-subject.c 
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: imap-base-subject.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-imap/imap-base-subject.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- imap-base-subject.c	14 Jan 2006 18:47:34 -0000	1.12
+++ imap-base-subject.c	28 Jun 2006 13:10:35 -0000	1.13
@@ -32,7 +32,7 @@
 	if (size > 0) {
 		/* @UNSAFE: uppercase it. Current draft specifies that we
 		   should touch only ASCII. */
-		buf_data = buffer_get_modifyable_data(buf, &used_size);
+		buf_data = buffer_get_modifiable_data(buf, &used_size);
 		for (; pos < used_size; pos++) {
 			if (buf_data[pos] >= 'a' && buf_data[pos] <= 'z')
 				buf_data[pos] = buf_data[pos] - 'a' + 'A';
@@ -47,7 +47,7 @@
 	char *data, *dest;
 	bool last_lwsp;
 
-	data = buffer_get_modifyable_data(buf, NULL);
+	data = buffer_get_modifiable_data(buf, NULL);
 
 	/* check if we need to do anything */
 	while (*data != '\0') {
@@ -77,7 +77,7 @@
 	}
 	*dest = '\0';
 
-	data = buffer_get_modifyable_data(buf, NULL);
+	data = buffer_get_modifiable_data(buf, NULL);
 	buffer_set_used_size(buf, (size_t) (dest - data)+1);
 }
 



More information about the dovecot-cvs mailing list