Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
fb38a5d8
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fb38a5d8
编写于
7月 15, 1999
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove un-needed #include's from *.c files.
上级
353eb3da
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
11 addition
and
9 deletion
+11
-9
src/backend/utils/adt/arrayfuncs.c
src/backend/utils/adt/arrayfuncs.c
+1
-2
src/backend/utils/adt/arrayutils.c
src/backend/utils/adt/arrayutils.c
+2
-2
src/tools/pginclude/pginclude
src/tools/pginclude/pginclude
+2
-1
src/tools/pginclude/pgnoinclude
src/tools/pginclude/pgnoinclude
+6
-4
未找到文件。
src/backend/utils/adt/arrayfuncs.c
浏览文件 @
fb38a5d8
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.4
4 1999/07/15 15:20:07
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.4
5 1999/07/15 19:21:41
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -27,7 +27,6 @@
#include "storage/fd.h"
#include "fmgr.h"
#include "utils/array.h"
#include "libpq/libpq-fs.h"
#include "libpq/be-fsstubs.h"
...
...
src/backend/utils/adt/arrayutils.c
浏览文件 @
fb38a5d8
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayutils.c,v 1.
8 1999/07/15 15:20:10
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayutils.c,v 1.
9 1999/07/15 19:21:42
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,7 +15,7 @@
#define WEAK_C_OPTIMIZER
#include "postgres.h"
#include "utils/array.h"
int
GetOffset
(
int
n
,
int
*
dim
,
int
*
lb
,
int
*
indx
)
{
...
...
src/tools/pginclude/pginclude
浏览文件 @
fb38a5d8
...
...
@@ -5,10 +5,11 @@ do
sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
echo "#include \"postgres.h\"" >/tmp/$$.c
echo "#include \"/tmp/$$a\"" >>/tmp/$$.c
echo "void include_test(void);" >>/tmp/$$.c
echo "void include_test() {" >>/tmp/$$.c
pgdefine "$FILE" >>/tmp/$$.c
echo "}" >>/tmp/$$.c
cc -
Werror -Wall
-I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
cc -
fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations
-I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
if [ "$?" -ne 0 ]
then echo "$FILE"
if [ "$1" = "-v" ]
...
...
src/tools/pginclude/pgnoinclude
浏览文件 @
fb38a5d8
:
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
find . \( -name CVS -a -prune \) -o -type f -print | grep -v
postgres.h
|
find . \( -name CVS -a -prune \) -o -type f -print | grep -v
'\./postgres.h'
|
while read FILE
do
if [ "`echo $FILE | sed -n 's/^.*\.\([^\.]*\)$/\1/p'`" = "h" ]
...
...
@@ -18,6 +18,7 @@ do
while read INCLUDE
do
[ -s /usr/include/$INCLUDE ] && continue
[ "$INCLUDE" = postgres.h ] && continue
cat /tmp/$$a |
grep -v '^#include[ ]*[<"]'"$INCLUDE"'[>"]' >/tmp/$$b
if [ "$IS_INCLUDE" = "Y" ]
...
...
@@ -25,17 +26,18 @@ do
else >/tmp/$$.c
fi
echo "#include \"/tmp/$$b\"" >>/tmp/$$.c
echo "void include_test(void);" >>/tmp/$$.c
echo "void include_test() {" >>/tmp/$$.c
if [ "$IS_INCLUDE" = "Y" ]
then pgdefine "$FILE" >>/tmp/$$.c
fi
echo "}" >>/tmp/$$.c
cc -
Werror -Wall
-I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
cc -
fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations
-I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
if [ "$?" -eq 0 ]
then echo "$FILE $INCLUDE"
if [ "$IS_INCLUDE" = "N" ]
then grep -v '#include[ ]*[<"]$
FILE[>"]' >/tmp/$$a
mv /tmp/$$
a
"$FILE"
then grep -v '#include[ ]*[<"]$
INCLUDE[>"]' $FILE >/tmp/$$b
mv /tmp/$$
b
"$FILE"
fi
if [ "$1" = "-v" ]
then cat /tmp/$$
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录