[cvs] bogofilter/src token.c,1.113,1.114

Matthias Andree matthias.andree at gmx.de
Tue Mar 15 13:38:40 CET 2005


David Relson <relson at users.sourceforge.net> writes:

> Update of /cvsroot/bogofilter/bogofilter/src
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27329
>
> Modified Files:
> 	token.c 
> Log Message:
> Revert definition of WFREE.

This has reverted something that used to be a compound statement (and
was safe without braces in if/else branches and similar) to something
that makes surrounding braces mandatory - resolving this to make WFREE
as usable as a function call was the other half of my change, the do
... while(0) thingy.

>
> Index: token.c
> ===================================================================
> RCS file: /cvsroot/bogofilter/bogofilter/src/token.c,v
> retrieving revision 1.113
> retrieving revision 1.114
> diff -u -d -r1.113 -r1.114
> --- token.c	14 Mar 2005 09:59:15 -0000	1.113
> +++ token.c	14 Mar 2005 12:13:59 -0000	1.114
> @@ -65,8 +65,6 @@
>  #define NONBLANK "spc:invalid_end_of_header"
>  static word_t *nonblank_line = NULL;
>  
> -#define WFREE(n)	do { word_free((n)); (n) = NULL; } while(0)
> -
>  /* Function Prototypes */
>  
>  void token_clear(void);
> @@ -460,6 +458,8 @@
>      token_set( &msg_id, text, leng );
>  }
>  
> +#define WFREE(n)	word_free(n); n = NULL
> +
>  /* Cleanup storage allocation */
>  void token_cleanup()
>  {
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> bogofilter-cvs mailing list
> bogofilter-cvs at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bogofilter-cvs
>
>

-- 
Matthias Andree
_______________________________________________
Bogofilter-dev mailing list
Bogofilter-dev at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev



More information about the bogofilter-dev mailing list