]> diplodocus.org Git - nmh/commitdiff
When debugging is enabled, replace the ctype functions with
authorDavid Levine <levinedl@acm.org>
Thu, 7 Feb 2013 02:39:06 +0000 (20:39 -0600)
committerDavid Levine <levinedl@acm.org>
Thu, 7 Feb 2013 02:39:06 +0000 (20:39 -0600)
macros that index into arrays.  This allows the compiler to
catch use of char, instead of unsigned char, arguments to
those functions.  gcc uses -Wchar-subscripts, which is enabled
with the -Wall that we use by default.  Thanks to Tom Lane for
suggesting this approach.

This feature can be enabled by undef'ing NDEBUG in config.h.
configure --enable-debug does that.  We can now use the same
mechanism to enable and disable assert(3), too.


No differences found