[cvs] bogofilter/src bogoconfig.c,1.14,1.15 bogoconfig.h,1.4,1.5
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-03-01 16:25:39
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv3567 Modified Files: bogoconfig.c bogoconfig.h Log Message: Change declarations of select_algorithm() and config_algorithm() from external to static. Index: bogoconfig.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bogoconfig.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- bogoconfig.c 28 Feb 2003 14:50:19 -0000 1.14 +++ bogoconfig.c 1 Mar 2003 16:25:35 -0000 1.15 @@ -91,6 +91,9 @@ static void display_tag_array(const char *label, const char **array); +static bool config_algorithm(const unsigned char *s); +static bool select_algorithm(const unsigned char ch, bool cmdline); + /* externs for query_config() */ extern double robx, robs; @@ -149,12 +152,12 @@ { NULL, CP_NONE, { (void *) NULL } }, }; -bool config_algorithm(const unsigned char *s) +static bool config_algorithm(const unsigned char *s) { return select_algorithm(tolower(*s), false); } -bool select_algorithm(const unsigned char ch, bool cmdline) +static bool select_algorithm(const unsigned char ch, bool cmdline) { enum algorithm_e al = ch; Index: bogoconfig.h =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bogoconfig.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- bogoconfig.h 16 Feb 2003 16:58:01 -0000 1.4 +++ bogoconfig.h 1 Mar 2003 16:25:35 -0000 1.5 @@ -21,9 +21,6 @@ extern int process_args(int argc, char **argv); -extern bool select_algorithm(const unsigned char ch, bool cmdline); -extern bool config_algorithm(const unsigned char *s); - void query_config(void); #endif |