Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4db0d9

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-cassertdebug builds will get better coverage for regex testing.
1 parentc880ed0 commitc4db0d9

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
#defineFUNCPTR(name,args) (*name) args
4242
#defineMALLOC(n)malloc(n)
4343
#defineFREE(p)free(VS(p))
44-
#defineREALLOC(p,n)realloc(VS(p),n)
44+
#defineREALLOC(p,n)realloc(VS(p),n)
45+
#defineassert(x)Assert(x)
4546

4647
/* internal character type and related */
4748
typedefpg_wcharchr;/* the type itself */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp