update the macro definition
[re-do full commit message due to errors in last one]
Switch to using a macro invocation Verbos(n, s) in place of the
flags.verbose checks.
Provide the mechanics for individual suppression of any of the
existing messages that were considered verbose.
Mechanics only - this code update does not provide any means of
setting the suppression bits.
flags.verbose = 0
is still a master suppression of all the verbose messages.
flags.verbose = 1
turns on the verbose messages only for those whose suppression
bit is 0 (not set).
#undef VB_ELEMENTS
extern long verbosity_suppressions[vb_elements]; /* in decl.c */
-#define Verbose(n,s) (flags.verbose && ((n) < vb_elements) \
- && !(verbosity_suppressions[(n)] & vb##n##s))
+#define Verbose(n,s) (flags.verbose && \
+ (((n) >= 0 && (n) < vb_elements) && \
+ !(verbosity_suppressions[(n)] & vb##n##s)))
+
#else /* NO_VERBOSE_GRANULARITY */
#define Verbose(n,s) (flags.verbose)
#endif /* !NO_VERBOSE_GRANULARITY */