[cvs] bogofilter bogofilter.c,1.77,1.78
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2002-11-11 01:11:14
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv25233 Modified Files: bogofilter.c Log Message: Change variable name from 'tok' to 'token_type', which is more descriptive. Index: bogofilter.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/bogofilter.c,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** bogofilter.c 11 Nov 2002 00:57:59 -0000 1.77 --- bogofilter.c 11 Nov 2002 01:11:10 -0000 1.78 *************** *** 103,109 **** for (;;){ ! token_t tok = get_token(); ! if (tok != FROM && tok != 0){ w = wordhash_insert(h, yylval, sizeof(wordprop_t), &wordprop_init); w->msg_freq++; --- 103,109 ---- for (;;){ ! token_t token_type = get_token(); ! if (token_type != FROM && token_type != 0){ w = wordhash_insert(h, yylval, sizeof(wordprop_t), &wordprop_init); w->msg_freq++; *************** *** 112,116 **** else { /* End of message. Update message counts. */ ! if (tok == FROM || (tok == 0 && msg_count == 0)) msg_count++; --- 112,116 ---- else { /* End of message. Update message counts. */ ! if (token_type == FROM || (token_type == 0 && msg_count == 0)) msg_count++; *************** *** 127,131 **** /* Want to process EOF, *then* drop out */ ! if (tok == 0) break; } --- 127,131 ---- /* Want to process EOF, *then* drop out */ ! if (token_type == 0) break; } |