projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add some gcc hint defines
[mmh]
/
sbr
/
m_convert.c
diff --git
a/sbr/m_convert.c
b/sbr/m_convert.c
index
0a47568
..
d187a34
100644
(file)
--- a/
sbr/m_convert.c
+++ b/
sbr/m_convert.c
@@
-36,16
+36,6
@@
static char *delimp; /* delimiter pointer */
static int m_conv(struct msgs *, char *, int);
static int attr(struct msgs *, char *);
static int m_conv(struct msgs *, char *, int);
static int attr(struct msgs *, char *);
-
-static void
-addtosel(struct msgs *mp, int msg)
-{
- if (is_selected(mp, msg)) {
- return; /* dont select twice */
- }
- set_selected(mp, msg);
-}
-
int
m_convert(struct msgs *mp, char *name)
{
int
m_convert(struct msgs *mp, char *name)
{
@@
-74,7
+64,7
@@
m_convert(struct msgs *mp, char *name)
** Also, it is available in any folder.
*/
if ((mp->msgflags & ALLOW_BEYOND) && strcmp(cp, seq_beyond)==0) {
** Also, it is available in any folder.
*/
if ((mp->msgflags & ALLOW_BEYOND) && strcmp(cp, seq_beyond)==0) {
- addtosel(mp, getbeyond(mp));
+ set_selected(mp, getbeyond(mp));
return 1;
}
return 1;
}
@@
-219,7
+209,7
@@
badelim:
/* Cycle through the range and select the messages that exist. */
for (found=0; first <= last; first++) {
if (does_exist(mp, first)) {
/* Cycle through the range and select the messages that exist. */
for (found=0; first <= last; first++) {
if (does_exist(mp, first)) {
- addtosel(mp, first);
+ set_selected(mp, first);
found++;
}
}
found++;
}
}
@@
-420,7
+410,7
@@
attr(struct msgs *mp, char *cp)
if (does_exist(mp, j)
&& inverted ? !in_sequence(mp, i, j) :
in_sequence(mp, i, j)) {
if (does_exist(mp, j)
&& inverted ? !in_sequence(mp, i, j) :
in_sequence(mp, i, j)) {
- addtosel(mp, j);
+ set_selected(mp, j);
found++;
/*
found++;
/*