[dovecot-cvs] dovecot/src/imap commands-util.c, 1.50, 1.51 imap-fetch.c, 1.46, 1.47 imap-thread.c, 1.24, 1.25
cras at dovecot.org
cras at dovecot.org
Sun Sep 10 15:48:16 EEST 2006
- Previous message: [dovecot-cvs] dovecot/src/dict dict-server.c,1.17,1.18
- Next message: [dovecot-cvs] dovecot/src/lib array.h, 1.17, 1.18 ioloop-epoll.c, 1.16, 1.17 ioloop-kqueue.c, 1.12, 1.13 module-dir.c, 1.22, 1.23 seq-range-array.c, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv24049/imap
Modified Files:
commands-util.c imap-fetch.c imap-thread.c
Log Message:
Replaced ARRAY_CREATE() macro with [ipt]_array_init() macros. The macro
has no side effects so it might as well be lowercased.
Index: commands-util.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/commands-util.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- commands-util.c 10 Sep 2006 12:33:07 -0000 1.50
+++ commands-util.c 10 Sep 2006 12:48:13 -0000 1.51
@@ -317,7 +317,7 @@
return FALSE;
p_clear(dest->pool);
- ARRAY_CREATE(&dest->keywords, dest->pool, array_count(keywords));
+ p_array_init(&dest->keywords, dest->pool, array_count(keywords));
for (i = 0; i < count; i++) {
const char *name = p_strdup(dest->pool, names[i]);
Index: imap-fetch.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-fetch.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- imap-fetch.c 10 Sep 2006 12:33:07 -0000 1.46
+++ imap-fetch.c 10 Sep 2006 12:48:13 -0000 1.47
@@ -95,7 +95,7 @@
ctx->cur_str = str_new(default_pool, 8192);
ctx->all_headers_buf = buffer_create_dynamic(cmd->pool, 128);
- ARRAY_CREATE(&ctx->handlers, cmd->pool, 16);
+ p_array_init(&ctx->handlers, cmd->pool, 16);
ctx->line_finished = TRUE;
return ctx;
}
Index: imap-thread.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-thread.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- imap-thread.c 10 Sep 2006 12:33:07 -0000 1.24
+++ imap-thread.c 10 Sep 2006 12:48:13 -0000 1.25
@@ -437,7 +437,7 @@
count += APPROX_MSG_EXTRA_COUNT;
ctx->msgid_pool =
pool_alloconly_create("msgids", count * APPROX_MSGID_SIZE);
- ARRAY_CREATE(&ctx->msgid_map, default_pool,
+ i_array_init(&ctx->msgid_map,
I_MAX(hdr->record_count, client->messages_count));
ctx->tmp_mail = mail_alloc(ctx->t, 0, NULL);
@@ -1516,7 +1516,7 @@
struct mail_thread_root_rec **roots;
unsigned int i, count;
- ARRAY_CREATE(&ctx->moved_recs, default_pool, 128);
+ i_array_init(&ctx->moved_recs, 128);
(void)array_append_space(&ctx->moved_recs);
roots = array_get_modifiable(&ctx->roots, &count);
@@ -1753,7 +1753,7 @@
return 0;
/* (2) save root nodes */
- ARRAY_CREATE(&ctx->roots, default_pool, I_MIN(128, hdr->record_count));
+ i_array_init(&ctx->roots, I_MIN(128, hdr->record_count));
for (idx = 1; idx <= hdr->record_count; idx++) {
if (mail_thread_rec_idx(ctx, idx, &rec) < 0)
return -1;
@@ -1925,7 +1925,7 @@
ctx->msgid_hash = tbox->msgid_hash;
ctx->msgid_pool =
pool_alloconly_create("msgids", 20 * APPROX_MSGID_SIZE);
- ARRAY_CREATE(&ctx->msgid_map, default_pool, 20);
+ i_array_init(&ctx->msgid_map, 20);
ctx->tmp_mail = mail_alloc(mt, 0, NULL);
} else if (data == NULL) {
/* deinit */
- Previous message: [dovecot-cvs] dovecot/src/dict dict-server.c,1.17,1.18
- Next message: [dovecot-cvs] dovecot/src/lib array.h, 1.17, 1.18 ioloop-epoll.c, 1.16, 1.17 ioloop-kqueue.c, 1.12, 1.13 module-dir.c, 1.22, 1.23 seq-range-array.c, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list