diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-10-06 16:01:51 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-10-06 16:01:51 +0000 |
commit | c4db0d9ae1cd3515c91e6003b09552e2adb39cdf (patch) | |
tree | 4ac5f2459b63e88bd7ca073e2eac29edecf1c98f | |
parent | c880ed0afb63b03d9eed0e7f8d2200ca39f8e8c5 (diff) | |
download | postgresql-c4db0d9ae1cd3515c91e6003b09552e2adb39cdf.tar.gz postgresql-c4db0d9ae1cd3515c91e6003b09552e2adb39cdf.zip |
Adjust regcustom.h so that all those assert() calls in the regex package
are converted to Postgres Assert() macros, instead of using <assert.h>
as formerly. No difference in production builds, but --enable-cassert
debug builds will get better coverage for regex testing.
-rw-r--r-- | src/include/regex/regcustom.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/regex/regcustom.h b/src/include/regex/regcustom.h index f3b92570e68..8471fb0b1cc 100644 --- a/src/include/regex/regcustom.h +++ b/src/include/regex/regcustom.h @@ -25,7 +25,7 @@ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $PostgreSQL: pgsql/src/include/regex/regcustom.h,v 1.5 2005/10/15 02:49:46 momjian Exp $ + * $PostgreSQL: pgsql/src/include/regex/regcustom.h,v 1.6 2007/10/06 16:01:51 tgl Exp $ */ /* headers if any */ @@ -41,7 +41,8 @@ #define FUNCPTR(name, args) (*name) args #define MALLOC(n) malloc(n) #define FREE(p) free(VS(p)) -#define REALLOC(p,n) realloc(VS(p),n) +#define REALLOC(p,n) realloc(VS(p),n) +#define assert(x) Assert(x) /* internal character type and related */ typedef pg_wchar chr; /* the type itself */ |