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

Commitc6e9da1

Browse files
committed
Cleanup of script.
1 parentf261deb commitc6e9da1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

‎src/tools/pginclude/pgrminclude

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,7 @@ do
5151
cat "$FILE" |
5252
grep -v "^#if" |
5353
grep -v "^#else" |
54-
grep -v "^#endif" |
55-
if [ "$IS_INCLUDE" = "Y" ]
56-
then# remove struct references
57-
#sed 's/->[a-zA-Z0-9_\.]*//g'
58-
cat
59-
elsecat
60-
fi >/tmp/$$a
54+
grep -v "^#endif" >/tmp/$$a
6155

6256
# set up initial file contents
6357
grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' \
@@ -78,7 +72,7 @@ do
7872

7973
cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
8074
-Wmissing-declarations -I/pg/include -I/pg/backend \
81-
-I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -c /tmp/$$.c \
75+
-I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -O1 -c /tmp/$$.c \
8276
-o /tmp/$$.o >/tmp/$$ 2>&1
8377
if [ "$?" -eq 0 ]
8478
thenecho "$FILE $INCLUDE"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp