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

Commit381d4b7

Browse files
committed
Clean up c.h / postgres.h after Assert() move
Per Tom
1 parent5766228 commit381d4b7

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

‎src/include/c.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ typedef NameData *Name;
582582
#defineAssertArg(condition) assert(condition)
583583
#defineAssertState(condition) assert(condition)
584584

585-
#else/* USE_ASSERT_CHECKING && FRONTEND */
585+
#else/* USE_ASSERT_CHECKING &&!FRONTEND */
586586

587587
/*
588588
* Trap
@@ -619,6 +619,10 @@ typedef NameData *Name;
619619
#defineAssertState(condition) \
620620
Trap(!(condition), "BadState")
621621

622+
externvoidExceptionalCondition(constchar*conditionName,
623+
constchar*errorType,
624+
constchar*fileName,intlineNumber) __attribute__((noreturn));
625+
622626
#endif/* USE_ASSERT_CHECKING && !FRONTEND */
623627

624628

‎src/include/postgres.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,10 @@ extern Datum Float8GetDatum(float8 X);
638638
* ----------------------------------------------------------------
639639
*/
640640

641+
/*
642+
* This declaration supports the assertion-related macros in c.h. This is here
643+
* because that file doesn't have PGDLLIMPORT in the right place.
644+
*/
641645
externPGDLLIMPORTboolassert_enabled;
642646

643-
externvoidExceptionalCondition(constchar*conditionName,
644-
constchar*errorType,
645-
constchar*fileName,intlineNumber) __attribute__((noreturn));
646-
647647
#endif/* POSTGRES_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp