projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
style
[apps/madmutt.git]
/
thread.c
diff --git
a/thread.c
b/thread.c
index
e34c543
..
63013ba
100644
(file)
--- a/
thread.c
+++ b/
thread.c
@@
-502,7
+502,7
@@
void mutt_clear_threads (CONTEXT * ctx)
ctx->tree = NULL;
if (ctx->thread_hash)
ctx->tree = NULL;
if (ctx->thread_hash)
- hash_de
stroy
(&ctx->thread_hash, free);
+ hash_de
lete
(&ctx->thread_hash, free);
}
static int compare_threads (const void *a, const void *b)
}
static int compare_threads (const void *a, const void *b)
@@
-689,7
+689,7
@@
void mutt_sort_threads (CONTEXT * ctx, int init)
init = 1;
if (init)
init = 1;
if (init)
- ctx->thread_hash = hash_
create (ctx->msgcount * 2
);
+ ctx->thread_hash = hash_
new (ctx->msgcount * 2, 1
);
/* we want a quick way to see if things are actually attached to the top of the
* thread tree or if they're just dangling, so we attach everything to a top
/* we want a quick way to see if things are actually attached to the top of the
* thread tree or if they're just dangling, so we attach everything to a top
@@
-754,7
+754,7
@@
void mutt_sort_threads (CONTEXT * ctx, int init)
cur->thread = thread;
hash_insert (ctx->thread_hash,
cur->env->message_id ? cur->env->message_id : "",
cur->thread = thread;
hash_insert (ctx->thread_hash,
cur->env->message_id ? cur->env->message_id : "",
- thread
, 1
);
+ thread);
if (new) {
if (new->duplicate_thread)
if (new) {
if (new->duplicate_thread)
@@
-830,7
+830,7
@@
void mutt_sort_threads (CONTEXT * ctx, int init)
if ((new = hash_find (ctx->thread_hash, ref->data)) == NULL) {
new = p_new(THREAD, 1);
if ((new = hash_find (ctx->thread_hash, ref->data)) == NULL) {
new = p_new(THREAD, 1);
- hash_insert (ctx->thread_hash, ref->data, new
, 1
);
+ hash_insert (ctx->thread_hash, ref->data, new);
}
else {
if (new->duplicate_thread)
}
else {
if (new->duplicate_thread)
@@
-1190,35
+1190,35
@@
int mutt_messages_in_thread (CONTEXT * ctx, HEADER * hdr, int flag)
}
}
-
HASH
*mutt_make_id_hash (CONTEXT * ctx)
+
hash_t
*mutt_make_id_hash (CONTEXT * ctx)
{
int i;
HEADER *hdr;
{
int i;
HEADER *hdr;
-
HASH
*hash;
+
hash_t
*hash;
- hash = hash_
create (ctx->msgcount * 2
);
+ hash = hash_
new (ctx->msgcount * 2, 0
);
for (i = 0; i < ctx->msgcount; i++) {
hdr = ctx->hdrs[i];
if (hdr->env->message_id)
for (i = 0; i < ctx->msgcount; i++) {
hdr = ctx->hdrs[i];
if (hdr->env->message_id)
- hash_insert (hash, hdr->env->message_id, hdr
, 0
);
+ hash_insert (hash, hdr->env->message_id, hdr);
}
return hash;
}
}
return hash;
}
-
HASH
*mutt_make_subj_hash (CONTEXT * ctx)
+
hash_t
*mutt_make_subj_hash (CONTEXT * ctx)
{
int i;
HEADER *hdr;
{
int i;
HEADER *hdr;
-
HASH
*hash;
+
hash_t
*hash;
- hash = hash_
create (ctx->msgcount * 2
);
+ hash = hash_
new (ctx->msgcount * 2, 1
);
for (i = 0; i < ctx->msgcount; i++) {
hdr = ctx->hdrs[i];
if (hdr->env->real_subj)
for (i = 0; i < ctx->msgcount; i++) {
hdr = ctx->hdrs[i];
if (hdr->env->real_subj)
- hash_insert
(hash, hdr->env->real_subj, hdr, 1
);
+ hash_insert
(hash, hdr->env->real_subj, hdr
);
}
return hash;
}
return hash;