[go: up one dir, main page]

File: score.h

package info (click to toggle)
slrn 1.0.0~pre18-1.3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,396 kB
  • sloc: ansic: 39,706; sh: 3,665; perl: 467; makefile: 289; sed: 24
file content (47 lines) | stat: -rw-r--r-- 1,626 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 This file is part of SLRN.

 Copyright (c) 1994, 1999, 2007-2009 John E. Davis <jed@jedsoft.org>
 Copyright (c) 2001-2006 Thomas Schultz <tststs@gmx.de>

 This program is free software; you can redistribute it and/or modify it
 under the terms of the GNU General Public License as published by the Free
 Software Foundation; either version 2 of the License, or (at your option)
 any later version.

 This program is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 more details.

 You should have received a copy of the GNU General Public License along
 with this program; if not, write to the Free Software Foundation, Inc.,
 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef _SLRN_SCORE_H
#define _SLRN_SCORE_H
extern int Slrn_Apply_Score;
extern char *Slrn_Scorefile_Open;
extern int slrn_read_score_file (char *);
extern void slrn_close_score (void);
extern int slrn_open_score (char *);
#define SLRN_XOVER_SCORING 1
#define SLRN_EXPENSIVE_SCORING 2
extern int Slrn_Perform_Scoring;
extern int Slrn_Prefer_Head;

/* This struct holds the information which scores match the selected article */
typedef struct Slrn_Score_Debug_Info_Type
{
   const char *filename;
   int linenumber;
   const char *description;
   int score;
   int stop_here;
   struct Slrn_Score_Debug_Info_Type *next;
}
Slrn_Score_Debug_Info_Type;

extern int slrn_score_header (Slrn_Header_Type *, char *,
			      Slrn_Score_Debug_Info_Type **);
#endif /* _SLRN_SCORE_H */