Adjust regcustom.h so that all those assert() calls in the regex package
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 6 Oct 2007 16:01:51 +0000 (16:01 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 6 Oct 2007 16:01:51 +0000 (16:01 +0000)
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.

src/include/regex/regcustom.h

index 12f1760a4fa7adf655eae9a7e6d984e31198a61a..2e3ac302aad97e05e4d4741b6e49db6adcfb201a 100644 (file)
@@ -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 */