From: David Levine Date: Thu, 7 Feb 2013 02:39:06 +0000 (-0600) Subject: When debugging is enabled, replace the ctype functions with X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/82f1f1db8de7b833068a3ef0dc7d10759bb94941?hp=82f1f1db8de7b833068a3ef0dc7d10759bb94941 When debugging is enabled, replace the ctype functions with 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. ---