dovecot: Removed _ prefixes from function names.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Sep 16 13:53:21 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/a8b515e1a26f
changeset: 6420:a8b515e1a26f
user: Timo Sirainen <tss at iki.fi>
date: Sun Sep 16 13:25:23 2007 +0300
description:
Removed _ prefixes from function names.
diffstat:
22 files changed, 304 insertions(+), 277 deletions(-)
src/lib-index/mail-index-dummy-view.c | 8 +--
src/lib-index/mail-index-transaction-view.c | 64 ++++++++++++-------------
src/lib-index/mail-index-transaction.c | 12 ++--
src/lib-index/mail-index-view.c | 64 ++++++++++++-------------
src/lib-mail/istream-header-filter.c | 32 ++++++------
src/lib-mail/message-part-serialize.c | 7 +-
src/lib-sql/driver-mysql.c | 8 +--
src/lib-sql/driver-pgsql.c | 8 +--
src/lib-sql/driver-sqlite.c | 8 +--
src/lib-storage/index/mbox/istream-raw-mbox.c | 51 ++++++++++---------
src/lib/istream-data.c | 10 +--
src/lib/istream-file.c | 26 +++++-----
src/lib/istream-limit.c | 25 +++++----
src/lib/istream-mmap.c | 26 +++++-----
src/lib/istream-seekable.c | 33 +++++++-----
src/lib/istream-tee.c | 35 +++++++------
src/lib/istream.c | 13 +++--
src/lib/ostream-crlf.c | 52 +++++++++++---------
src/lib/ostream-file.c | 55 +++++++++++----------
src/lib/sha1.c | 4 -
src/lib/strfuncs.c | 10 +--
src/plugins/zlib/istream-zlib.c | 30 ++++++-----
diffs (truncated from 1657 to 300 lines):
diff -r 3a960ffa5de8 -r a8b515e1a26f src/lib-index/mail-index-dummy-view.c
--- a/src/lib-index/mail-index-dummy-view.c Sun Sep 16 12:51:41 2007 +0300
+++ b/src/lib-index/mail-index-dummy-view.c Sun Sep 16 13:25:23 2007 +0300
@@ -5,7 +5,7 @@
#include "mail-index-private.h"
#include "mail-index-view-private.h"
-static void _dummy_view_close(struct mail_index_view *view ATTR_UNUSED)
+static void dummy_view_close(struct mail_index_view *view ATTR_UNUSED)
{
i_assert(view->refcount == 0);
@@ -14,14 +14,14 @@ static void _dummy_view_close(struct mai
}
static uint32_t
-_dummy_view_get_message_count(struct mail_index_view *view ATTR_UNUSED)
+dummy_view_get_message_count(struct mail_index_view *view ATTR_UNUSED)
{
return (uint32_t)-3;
}
static struct mail_index_view_vfuncs dummy_view_vfuncs = {
- _dummy_view_close,
- _dummy_view_get_message_count,
+ dummy_view_close,
+ dummy_view_get_message_count,
NULL,
NULL,
NULL,
diff -r 3a960ffa5de8 -r a8b515e1a26f src/lib-index/mail-index-transaction-view.c
--- a/src/lib-index/mail-index-transaction-view.c Sun Sep 16 12:51:41 2007 +0300
+++ b/src/lib-index/mail-index-transaction-view.c Sun Sep 16 13:25:23 2007 +0300
@@ -17,7 +17,7 @@ struct mail_index_view_transaction {
struct mail_index_header hdr;
};
-static void _tview_close(struct mail_index_view *view)
+static void tview_close(struct mail_index_view *view)
{
struct mail_index_view_transaction *tview =
(struct mail_index_view_transaction *)view;
@@ -30,7 +30,7 @@ static void _tview_close(struct mail_ind
mail_index_transaction_unref(&t);
}
-static uint32_t _tview_get_message_count(struct mail_index_view *view)
+static uint32_t tview_get_message_count(struct mail_index_view *view)
{
struct mail_index_view_transaction *tview =
(struct mail_index_view_transaction *)view;
@@ -41,7 +41,7 @@ static uint32_t _tview_get_message_count
}
static const struct mail_index_header *
-_tview_get_header(struct mail_index_view *view)
+tview_get_header(struct mail_index_view *view)
{
struct mail_index_view_transaction *tview =
(struct mail_index_view_transaction *)view;
@@ -61,8 +61,8 @@ _tview_get_header(struct mail_index_view
}
static const struct mail_index_record *
-_tview_lookup_full(struct mail_index_view *view, uint32_t seq,
- struct mail_index_map **map_r, bool *expunged_r)
+tview_lookup_full(struct mail_index_view *view, uint32_t seq,
+ struct mail_index_map **map_r, bool *expunged_r)
{
struct mail_index_view_transaction *tview =
(struct mail_index_view_transaction *)view;
@@ -85,8 +85,8 @@ _tview_lookup_full(struct mail_index_vie
return rec;
}
-static void _tview_lookup_uid(struct mail_index_view *view, uint32_t seq,
- uint32_t *uid_r)
+static void
+tview_lookup_uid(struct mail_index_view *view, uint32_t seq, uint32_t *uid_r)
{
struct mail_index_view_transaction *tview =
(struct mail_index_view_transaction *)view;
@@ -97,9 +97,9 @@ static void _tview_lookup_uid(struct mai
tview->super->lookup_uid(view, seq, uid_r);
}
-static void _tview_lookup_uid_range(struct mail_index_view *view,
- uint32_t first_uid, uint32_t last_uid,
- uint32_t *first_seq_r, uint32_t *last_seq_r)
+static void tview_lookup_uid_range(struct mail_index_view *view,
+ uint32_t first_uid, uint32_t last_uid,
+ uint32_t *first_seq_r, uint32_t *last_seq_r)
{
struct mail_index_view_transaction *tview =
(struct mail_index_view_transaction *)view;
@@ -138,9 +138,9 @@ static void _tview_lookup_uid_range(stru
i_assert(seq >= tview->t->first_new_seq);
}
-static void _tview_lookup_first(struct mail_index_view *view,
- enum mail_flags flags, uint8_t flags_mask,
- uint32_t *seq_r)
+static void tview_lookup_first(struct mail_index_view *view,
+ enum mail_flags flags, uint8_t flags_mask,
+ uint32_t *seq_r)
{
struct mail_index_view_transaction *tview =
(struct mail_index_view_transaction *)view;
@@ -176,9 +176,9 @@ tview_get_lookup_map(struct mail_index_v
}
static void
-_tview_lookup_ext_full(struct mail_index_view *view, uint32_t seq,
- uint32_t ext_id, struct mail_index_map **map_r,
- const void **data_r, bool *expunged_r)
+tview_lookup_ext_full(struct mail_index_view *view, uint32_t seq,
+ uint32_t ext_id, struct mail_index_map **map_r,
+ const void **data_r, bool *expunged_r)
{
struct mail_index_view_transaction *tview =
(struct mail_index_view_transaction *)view;
@@ -214,9 +214,9 @@ _tview_lookup_ext_full(struct mail_index
}
}
-static void _tview_get_header_ext(struct mail_index_view *view,
- struct mail_index_map *map, uint32_t ext_id,
- const void **data_r, size_t *data_size_r)
+static void tview_get_header_ext(struct mail_index_view *view,
+ struct mail_index_map *map, uint32_t ext_id,
+ const void **data_r, size_t *data_size_r)
{
struct mail_index_view_transaction *tview =
(struct mail_index_view_transaction *)view;
@@ -225,9 +225,9 @@ static void _tview_get_header_ext(struct
tview->super->get_header_ext(view, map, ext_id, data_r, data_size_r);
}
-static bool _tview_ext_get_reset_id(struct mail_index_view *view,
- struct mail_index_map *map,
- uint32_t ext_id, uint32_t *reset_id_r)
+static bool tview_ext_get_reset_id(struct mail_index_view *view,
+ struct mail_index_map *map,
+ uint32_t ext_id, uint32_t *reset_id_r)
{
struct mail_index_view_transaction *tview =
(struct mail_index_view_transaction *)view;
@@ -245,16 +245,16 @@ static bool _tview_ext_get_reset_id(stru
}
static struct mail_index_view_vfuncs trans_view_vfuncs = {
- _tview_close,
- _tview_get_message_count,
- _tview_get_header,
- _tview_lookup_full,
- _tview_lookup_uid,
- _tview_lookup_uid_range,
- _tview_lookup_first,
- _tview_lookup_ext_full,
- _tview_get_header_ext,
- _tview_ext_get_reset_id
+ tview_close,
+ tview_get_message_count,
+ tview_get_header,
+ tview_lookup_full,
+ tview_lookup_uid,
+ tview_lookup_uid_range,
+ tview_lookup_first,
+ tview_lookup_ext_full,
+ tview_get_header_ext,
+ tview_ext_get_reset_id
};
struct mail_index_view *
diff -r 3a960ffa5de8 -r a8b515e1a26f src/lib-index/mail-index-transaction.c
--- a/src/lib-index/mail-index-transaction.c Sun Sep 16 12:51:41 2007 +0300
+++ b/src/lib-index/mail-index-transaction.c Sun Sep 16 13:25:23 2007 +0300
@@ -508,9 +508,9 @@ uint32_t mail_index_transaction_get_next
return next_uid;
}
-static int _mail_index_transaction_commit(struct mail_index_transaction *t,
- uint32_t *log_file_seq_r,
- uoff_t *log_file_offset_r)
+static int mail_index_transaction_commit_v(struct mail_index_transaction *t,
+ uint32_t *log_file_seq_r,
+ uoff_t *log_file_offset_r)
{
int ret;
@@ -538,7 +538,7 @@ static int _mail_index_transaction_commi
return ret;
}
-static void _mail_index_transaction_rollback(struct mail_index_transaction *t)
+static void mail_index_transaction_rollback_v(struct mail_index_transaction *t)
{
if (t->cache_trans_ctx != NULL) {
mail_cache_transaction_rollback(t->cache_trans_ctx);
@@ -1284,8 +1284,8 @@ void mail_index_reset(struct mail_index_
}
struct mail_index_transaction_vfuncs trans_vfuncs = {
- _mail_index_transaction_commit,
- _mail_index_transaction_rollback
+ mail_index_transaction_commit_v,
+ mail_index_transaction_rollback_v
};
struct mail_index_transaction *
diff -r 3a960ffa5de8 -r a8b515e1a26f src/lib-index/mail-index-view.c
--- a/src/lib-index/mail-index-view.c Sun Sep 16 12:51:41 2007 +0300
+++ b/src/lib-index/mail-index-view.c Sun Sep 16 13:25:23 2007 +0300
@@ -38,7 +38,7 @@ void mail_index_view_ref(struct mail_ind
view->refcount++;
}
-static void _view_close(struct mail_index_view *view)
+static void view_close(struct mail_index_view *view)
{
i_assert(view->refcount == 0);
@@ -119,20 +119,20 @@ void mail_index_view_unref_maps(struct m
array_clear(&view->map_refs);
}
-static uint32_t _view_get_messages_count(struct mail_index_view *view)
+static uint32_t view_get_messages_count(struct mail_index_view *view)
{
return view->map->hdr.messages_count;
}
static const struct mail_index_header *
-_view_get_header(struct mail_index_view *view)
+view_get_header(struct mail_index_view *view)
{
return &view->map->hdr;
}
static const struct mail_index_record *
-_view_lookup_full(struct mail_index_view *view, uint32_t seq,
- struct mail_index_map **map_r, bool *expunged_r)
+view_lookup_full(struct mail_index_view *view, uint32_t seq,
+ struct mail_index_map **map_r, bool *expunged_r)
{
static struct mail_index_record broken_rec;
struct mail_index_map *map;
@@ -204,8 +204,8 @@ _view_lookup_full(struct mail_index_view
}
}
-static void _view_lookup_uid(struct mail_index_view *view, uint32_t seq,
- uint32_t *uid_r)
+static void view_lookup_uid(struct mail_index_view *view, uint32_t seq,
+ uint32_t *uid_r)
{
i_assert(seq > 0 && seq <= mail_index_view_get_messages_count(view));
@@ -261,9 +261,9 @@ static uint32_t mail_index_bsearch_uid(s
return idx+1;
}
-static void _view_lookup_uid_range(struct mail_index_view *view,
- uint32_t first_uid, uint32_t last_uid,
- uint32_t *first_seq_r, uint32_t *last_seq_r)
+static void view_lookup_uid_range(struct mail_index_view *view,
+ uint32_t first_uid, uint32_t last_uid,
+ uint32_t *first_seq_r, uint32_t *last_seq_r)
{
i_assert(first_uid > 0);
i_assert(first_uid <= last_uid);
@@ -302,9 +302,9 @@ static void _view_lookup_uid_range(struc
i_assert(*last_seq_r >= *first_seq_r);
}
-static void _view_lookup_first(struct mail_index_view *view,
- enum mail_flags flags, uint8_t flags_mask,
- uint32_t *seq_r)
+static void view_lookup_first(struct mail_index_view *view,
+ enum mail_flags flags, uint8_t flags_mask,
+ uint32_t *seq_r)
{
#define LOW_UPDATE(x) \
STMT_START { if ((x) > low_uid) low_uid = x; } STMT_END
@@ -339,9 +339,9 @@ static void _view_lookup_first(struct ma
}
static void
-_view_lookup_ext_full(struct mail_index_view *view, uint32_t seq,
- uint32_t ext_id, struct mail_index_map **map_r,
- const void **data_r, bool *expunged_r)
+view_lookup_ext_full(struct mail_index_view *view, uint32_t seq,
+ uint32_t ext_id, struct mail_index_map **map_r,
+ const void **data_r, bool *expunged_r)
{
const struct mail_index_ext *ext;
const struct mail_index_record *rec;
@@ -359,9 +359,9 @@ _view_lookup_ext_full(struct mail_index_
*data_r = offset == 0 ? NULL : CONST_PTR_OFFSET(rec, offset);
}
More information about the dovecot-cvs
mailing list