bmf

bmf (Bayesian Mail Filter) 0.9.4 fork + patches
git clone git://git.codemadness.org/bmf
Log | Files | Refs | README | LICENSE

commit b627d86afb6118bb029d5601078fe972d576ab3e
parent 57c341a511e88733eedf95a443567f27198247e3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 27 Oct 2018 20:05:38 +0200

function declaration: use the same parameter names

Diffstat:
lex.h | 10+++++-----
str.c | 8++++----
str.h | 9++++-----
vec.h | 2+-
4 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/lex.h b/lex.h @@ -33,12 +33,12 @@ typedef struct _lex char *pbuf; } lex_t; -void lex_create ( lex_t* plex, mbox_t mboxtype ); -void lex_destroy ( lex_t* plex ); +void lex_create ( lex_t* pthis, mbox_t mboxtype ); +void lex_destroy ( lex_t* pthis ); -bool_t lex_load ( lex_t* plex, int fd ); -void lex_nexttoken( lex_t* plex, tok_t* ptok ); +bool_t lex_load ( lex_t* pthis, int fd ); +void lex_nexttoken( lex_t* pthis, tok_t* ptok ); -void lex_passthru ( lex_t* plex, bool_t is_spam, double hits ); +void lex_passthru ( lex_t* pthis, bool_t is_spam, double hits ); #endif /* ndef TOK_H */ diff --git a/str.c b/str.c @@ -20,14 +20,14 @@ strncpylwr(char *d, const char *s, int n) } void -str_create(str_t *pstr) +str_create(str_t *pthis) { - pstr->p = NULL; - pstr->len = 0; + pthis->p = NULL; + pthis->len = 0; } int -str_casecmp(const str_t * pthis, const str_t * pother) +str_casecmp(const str_t *pthis, const str_t * pother) { int cmp; diff --git a/str.h b/str.h @@ -15,12 +15,11 @@ void strncpylwr( char* d, const char* s, int n ); typedef struct _str { - char* p; - uint len; + char *p; + uint len; } str_t; -void str_create ( str_t* pthis ); - -int str_casecmp( const str_t* pthis, const str_t* pother ); +void str_create (str_t *pthis); +int str_casecmp(const str_t *pthis, const str_t* pother); #endif /* ndef _STR_H */ diff --git a/vec.h b/vec.h @@ -31,7 +31,7 @@ void vec_addtail(vec_t * pthis, str_t * pstr); void vec_first(vec_t * pthis, veciter_t * piter); /* class sorted_vector */ -void svec_sort(vec_t * ptthis); +void svec_sort(vec_t * pthis); /* veciter_create not needed */ void veciter_destroy(veciter_t * pthis);