Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
83dab27e
...
83dab27ec074a3033c9e6344b4f58fbb6aa8825e
authored
2007-06-22 09:19:54 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Stable sort
1 parent
ecfff4ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
mh/sortm.c
mh/sortm.c
View file @
83dab27
...
...
@@ -292,7 +292,7 @@ compare_action (void *item, void *data)
}
static
int
compare_messages
(
mu_message_t
a
,
mu_message_t
b
)
compare_messages
(
mu_message_t
a
,
mu_message_t
b
,
size_t
anum
,
size_t
bnum
)
{
struct
comp_data
d
;
...
...
@@ -300,6 +300,14 @@ compare_messages (mu_message_t a, mu_message_t b)
d
.
m
[
0
]
=
a
;
d
.
m
[
1
]
=
b
;
mu_list_do
(
oplist
,
compare_action
,
&
d
);
if
(
d
.
r
==
0
)
{
if
(
anum
<
bnum
)
d
.
r
=
-
1
;
else
if
(
anum
>
bnum
)
d
.
r
=
1
;
}
if
(
verbose
>
1
)
fprintf
(
stderr
,
"%d
\n
"
,
d
.
r
);
return
d
.
r
;
...
...
@@ -380,7 +388,7 @@ comp0 (size_t na, size_t nb)
_
(
"comparing messages %s and %s: "
),
mu_umaxtostr
(
0
,
na
),
mu_umaxtostr
(
1
,
nb
));
return
compare_messages
(
a
,
b
);
return
compare_messages
(
a
,
b
,
na
,
nb
);
}
int
...
...
Please
register
or
sign in
to post a comment