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

Commita977db6

Browse files
committed
Tweak cpluspluscheck to avoid directly #include'ing gram.h.
gram.h has ordering dependencies, which are satisfied when it's includedfrom gramparse.h, but might not be if it's pulled in directly.
1 parent2754119 commita977db6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

‎src/tools/pginclude/cpluspluscheck

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ tmp=`mktemp -d /tmp/$me.XXXXXX`
1515
echo' extern "C" {'
1616
echo'#include "postgres.h"'
1717

18-
# Omit port/, because it's platform specific, and c.h includes it anyway. Omit
19-
# regex/ and snowball/, because those files came from elsewhere, and they would
20-
# need extra work if someone cared to fix them. kwlist.h is not meant to be
21-
# included directly. rusagestub.h will be included by ./utils/pg_rusage.h if
22-
# necessary.
23-
forfilein`find.\( -name port -prune -o -name regex -prune -o -name snowball -prune\) -o -name'*.h' -not -name kwlist.h -not -name rusagestub.h -print`;do
18+
# Omit port/, because it's platform specific, and c.h includes the relevant
19+
# file anyway.
20+
# Omit regex/ and snowball/, because those files came from elsewhere, and
21+
# they would need extra work if someone cared to fix them.
22+
# gram.h will be included by ./parser/gramparse.h.
23+
# kwlist.h is not meant to be included without having defined PG_KEYWORD.
24+
# rusagestub.h will be included by ./utils/pg_rusage.h if necessary.
25+
forfilein`find.\( -name port -prune -o -name regex -prune -o -name snowball -prune\) -o -name'*.h' -not -name gram.h -not -name kwlist.h -not -name rusagestub.h -print`;do
2426
f=`echo$file| sed's,^\./,,'`
2527
echo"#include\"$f\""
2628
done

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp