Commit c4db0d9a authored by Tom Lane's avatar Tom Lane

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.
parent c880ed0a
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * 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 */ /* headers if any */
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#define MALLOC(n) malloc(n) #define MALLOC(n) malloc(n)
#define FREE(p) free(VS(p)) #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 */ /* internal character type and related */
typedef pg_wchar chr; /* the type itself */ typedef pg_wchar chr; /* the type itself */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment