Signed-off-by: Pierre Habouzit <madcoder@debian.org>
int exact; /* if this rule matches, don't evaluate any more */
struct score_t *next;
} score_t;
-
-score_t *Score = NULL;
-
DO_INIT(score_t, score);
static void score_wipe(score_t *sc)
{
}
DO_NEW(score_t, score);
DO_DELETE(score_t, score);
-
DO_SLIST(score_t, score, score_delete);
+static score_t *Score = NULL;
+
void mutt_check_rescore (CONTEXT * ctx)
{
int i;
(*last)->str = pattern;
}
pc = buf->data;
- if (*pc == '=') {
- (*last)->exact = 1;
- pc++;
- }
+ pc += (*last)->exact = (*pc == '=');
(*last)->val = atoi(pc);
set_option(OPTNEEDRESCORE);
return 0;