[ds6-devel] Re: [nc6-commit] nc6/src io_stream.c,1.24,1.25 main.c,1.28,1.29 network.c,1.45,1.46 parser.c,1.47,1.48 parser.h,1.12,1.13

Chris Leishman chris at leishman.org
Mon Jan 27 13:43:35 CET 2003


On Sat, Jan 25, 2003 at 03:42:39PM +0100, mauro at deepspace6.net wrote:
<snip>
> +++ parser.h	25 Jan 2003 14:42:36 -0000	1.13
> @@ -25,13 +25,8 @@
>  #include "connection.h"
>  #include "misc.h"
>  
> -extern int _verbosity_level;
> -
> -#define VERBOSE_MODE		0x01
> -#define VERY_VERBOSE_MODE	0x02
> -
> -#define verbose_mode()		(_verbosity_level >= VERBOSE_MODE)
> -#define very_verbose_mode()	(_verbosity_level >= VERY_VERBOSE_MODE)
> +bool verbose_mode(void);
> +bool very_verbose_mode(void);
>  

Um, I specifically defined these so as to avoid using a function.
Defining the extern int saves the function call overhead every time we
need to check verbose status.  Why has this been changed?

Regards,
Chris


More information about the ds6-devel mailing list