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

Commit01835c4

Browse files
committed
Add comments to pgrminclude.
1 parent2fa7a04 commit01835c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/tools/pginclude/pgrminclude

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:
22
# remove extra #include's
33

4-
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.5 2006/07/10 16:45:44 momjian Exp $
4+
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.6 2006/07/11 19:25:41 momjian Exp $
55

66
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
77
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
@@ -39,19 +39,22 @@ do
3939
grep -A1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
4040
egrep -q '^#else|^#endif' && continue
4141

42+
# set up initial file contents
4243
cat /tmp/$$a |
4344
grep -v '^#include[ ]*[<"]'"$INCLUDE"'[>"]' >/tmp/$$b
4445
if [ "$IS_INCLUDE" = "Y" ]
4546
thenecho "#include \"postgres.h\"" >/tmp/$$.c
4647
else>/tmp/$$.c
4748
fi
49+
4850
echo "#include \"/tmp/$$b\"" >>/tmp/$$.c
4951
echo "void include_test(void);" >>/tmp/$$.c
5052
echo "void include_test() {" >>/tmp/$$.c
5153
if [ "$IS_INCLUDE" = "Y" ]
5254
thenpgdefine "$FILE" >>/tmp/$$.c
5355
fi
5456
echo "}" >>/tmp/$$.c
57+
5558
cc -fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations -I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
5659
if [ "$?" -eq 0 ]
5760
thenecho "$FILE $INCLUDE"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp