[dovecot-cvs] dovecot/src/lib array.h,1.7,1.8
cras at dovecot.org
cras at dovecot.org
Sun Apr 3 00:09:05 EEST 2005
- Previous message: [dovecot-cvs] dovecot/src/imap client.h, 1.28, 1.29 cmd-append.c,
1.59, 1.60 cmd-select.c, 1.36, 1.37 commands-util.c, 1.42,
1.43 commands-util.h, 1.22, 1.23
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-index-private.h, 1.54,
1.55 mail-index-sync-keywords.c, 1.4,
1.5 mail-index-sync-private.h, 1.25, 1.26 mail-index-sync.c,
1.54, 1.55 mail-index-transaction-private.h, 1.23,
1.24 mail-index-transaction.c, 1.57, 1.58 mail-index-view.c,
1.33, 1.34 mail-index.c, 1.196, 1.197 mail-index.h, 1.145,
1.146 mail-transaction-log-append.c, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv14722/lib
Modified Files:
array.h
Log Message:
Keywords are now stored in X-Keywords headers in mbox. Did several related
API changes to get better performance.
Index: array.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/array.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- array.h 2 Apr 2005 19:31:26 -0000 1.7
+++ array.h 2 Apr 2005 21:09:02 -0000 1.8
@@ -281,4 +281,16 @@
return array->buffer->used / array->element_size;
}
+static inline int
+array_cmp(const array_t *array1, const array_t *array2)
+{
+ if (!array_is_created(array1) || array1->buffer->used == 0)
+ return !array_is_created(array2) || array2->buffer->used == 0;
+
+ if (!array_is_created(array2))
+ return FALSE;
+
+ return buffer_cmp(array1->buffer, array2->buffer);
+}
+
#endif
- Previous message: [dovecot-cvs] dovecot/src/imap client.h, 1.28, 1.29 cmd-append.c,
1.59, 1.60 cmd-select.c, 1.36, 1.37 commands-util.c, 1.42,
1.43 commands-util.h, 1.22, 1.23
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-index-private.h, 1.54,
1.55 mail-index-sync-keywords.c, 1.4,
1.5 mail-index-sync-private.h, 1.25, 1.26 mail-index-sync.c,
1.54, 1.55 mail-index-transaction-private.h, 1.23,
1.24 mail-index-transaction.c, 1.57, 1.58 mail-index-view.c,
1.33, 1.34 mail-index.c, 1.196, 1.197 mail-index.h, 1.145,
1.146 mail-transaction-log-append.c, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list