[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
- Previous message: [dovecot-cvs] dovecot/src/lib-dict dict.c,1.6,1.7
- Next message: [dovecot-cvs] dovecot/src/lib array-decl.h, 1.1, 1.2 array.h, 1.14,
1.15 buffer.c, 1.31, 1.32 buffer.h, 1.18, 1.19 ioloop-epoll.c,
1.12, 1.13 istream.c, 1.34, 1.35 istream.h, 1.25, 1.26 lib.h,
1.20, 1.21 module-dir.c, 1.20, 1.21 seq-range-array.c, 1.5,
1.6 seq-range-array.h, 1.2, 1.3 str.c, 1.17, 1.18 str.h, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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);
}
- Previous message: [dovecot-cvs] dovecot/src/lib-dict dict.c,1.6,1.7
- Next message: [dovecot-cvs] dovecot/src/lib array-decl.h, 1.1, 1.2 array.h, 1.14,
1.15 buffer.c, 1.31, 1.32 buffer.h, 1.18, 1.19 ioloop-epoll.c,
1.12, 1.13 istream.c, 1.34, 1.35 istream.h, 1.25, 1.26 lib.h,
1.20, 1.21 module-dir.c, 1.20, 1.21 seq-range-array.c, 1.5,
1.6 seq-range-array.h, 1.2, 1.3 str.c, 1.17, 1.18 str.h, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list