Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c4db0d9

Browse files
committed
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.
1 parent c880ed0 commit c4db0d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/include/regex/regcustom.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
2626
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727
*
28-
* $PostgreSQL: pgsql/src/include/regex/regcustom.h,v 1.5 2005/10/15 02:49:46 momjian Exp $
28+
* $PostgreSQL: pgsql/src/include/regex/regcustom.h,v 1.6 2007/10/06 16:01:51 tgl Exp $
2929
*/
3030

3131
/* headers if any */
@@ -41,7 +41,8 @@
4141
#define FUNCPTR(name, args) (*name) args
4242
#define MALLOC(n) malloc(n)
4343
#define FREE(p) free(VS(p))
44-
#define REALLOC(p,n) realloc(VS(p),n)
44+
#define REALLOC(p,n) realloc(VS(p),n)
45+
#define assert(x) Assert(x)
4546

4647
/* internal character type and related */
4748
typedef pg_wchar chr; /* the type itself */

0 commit comments

Comments
 (0)