Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
2ffd7275
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,发现更多精彩内容 >>
提交
2ffd7275
编写于
4月 06, 1998
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ASSERT fixes.
上级
d8077ab0
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
31 addition
and
31 deletion
+31
-31
src/backend/access/index/istrat.c
src/backend/access/index/istrat.c
+3
-3
src/backend/lib/fstack.c
src/backend/lib/fstack.c
+2
-2
src/backend/storage/ipc/shmem.c
src/backend/storage/ipc/shmem.c
+2
-2
src/configure
src/configure
+8
-8
src/configure.in
src/configure.in
+8
-8
src/include/c.h
src/include/c.h
+7
-7
src/include/config.h.in
src/include/config.h.in
+1
-1
未找到文件。
src/backend/access/index/istrat.c
浏览文件 @
2ffd7275
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.1
7 1998/02/26 04:29:3
6 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.1
8 1998/04/06 17:27:0
6 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -26,7 +26,7 @@
#include <access/istrat.h>
#include <fmgr.h>
#if
ndef NO
_ASSERT_CHECKING
#if
def USE
_ASSERT_CHECKING
static
bool
StrategyEvaluationIsValid
(
StrategyEvaluation
evaluation
);
static
bool
StrategyExpressionIsValid
(
StrategyExpression
expression
,
...
...
@@ -113,7 +113,7 @@ AttributeNumberGetIndexStrategySize(AttrNumber maxAttributeNumber,
maxAttributeNumber
*
maxStrategyNumber
*
sizeof
(
ScanKeyData
);
}
#if
ndef NO
_ASSERT_CHECKING
#if
def USE
_ASSERT_CHECKING
/*
* StrategyTransformMapIsValid is now a macro in istrat.h -cim 4/27/91
*/
...
...
src/backend/lib/fstack.c
浏览文件 @
2ffd7275
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/lib/Attic/fstack.c,v 1.
6 1997/09/08 02:22:57
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/lib/Attic/fstack.c,v 1.
7 1998/04/06 17:27:11
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -84,7 +84,7 @@ FixedStackPush(FixedStack stack, Pointer pointer)
stack
->
top
=
item
;
}
#if
ndef NO
_ASSERT_CHECKING
#if
def USE
_ASSERT_CHECKING
/*
* FixedStackContains --
* True iff ordered stack contains given element.
...
...
src/backend/storage/ipc/shmem.c
浏览文件 @
2ffd7275
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.1
7 1998/02/26 04:35:46
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.1
8 1998/04/06 17:27:25
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -511,7 +511,7 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
if
(
!
BindingTable
)
{
/* Assert() is a macro now. substitutes inside quotes. */
#if
ndef NO
_ASSERT_CHECKING
#if
def USE
_ASSERT_CHECKING
char
*
strname
=
"BindingTable"
;
#endif
...
...
src/configure
浏览文件 @
2ffd7275
...
...
@@ -877,7 +877,7 @@ echo "configure:876: checking setting ASSERT CHECKING" >&5
if
test
"
${
enable_cassert
+set
}
"
=
set
;
then
enableval
=
"
$enable_cassert
"
cat
>>
confdefs.h
<<
\
EOF
#define
NO
_ASSERT_CHECKING 1
#define
USE
_ASSERT_CHECKING 1
EOF
echo
"
$ac_t
""enabled"
1>&6
else
...
...
src/configure.in
浏览文件 @
2ffd7275
...
...
@@ -280,7 +280,7 @@ AC_MSG_CHECKING(setting ASSERT CHECKING)
AC_ARG_ENABLE(
cassert,
[ --enable-cassert enable assertion checks (debugging) ],
AC_DEFINE(
NO
_ASSERT_CHECKING) AC_MSG_RESULT(enabled),
AC_DEFINE(
USE
_ASSERT_CHECKING) AC_MSG_RESULT(enabled),
AC_MSG_RESULT(disabled)
)
...
...
src/include/c.h
浏览文件 @
2ffd7275
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: c.h,v 1.3
8 1998/03/31 15:53:3
9 momjian Exp $
* $Id: c.h,v 1.3
9 1998/04/06 17:27:4
9 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -583,12 +583,12 @@ typedef struct Exception
}
Exception
;
/*
*
NO
_ASSERT_CHECKING, if defined, turns off all the assertions.
*
USE
_ASSERT_CHECKING, if defined, turns off all the assertions.
* - plai 9/5/90
*
* It should _NOT_ be undef'ed in releases or in benchmark copies
*
* #undef
NO
_ASSERT_CHECKING
* #undef
USE
_ASSERT_CHECKING
*/
/*
...
...
@@ -614,7 +614,7 @@ typedef struct Exception
&(exception), \
(char*) NULL, __FILE__, __LINE__))))
#if
def NO
_ASSERT_CHECKING
#if
ndef USE
_ASSERT_CHECKING
#define Assert(condition)
#define AssertMacro(condition) true
#define AssertArg(condition)
...
...
@@ -632,7 +632,7 @@ typedef struct Exception
#define AssertState(condition) \
Trap(!(condition), BadState)
#endif
/*
NO
_ASSERT_CHECKING */
#endif
/*
USE
_ASSERT_CHECKING */
/*
* LogTrap --
...
...
@@ -655,7 +655,7 @@ typedef struct Exception
&(exception), \
form printArgs, __FILE__, __LINE__))))
#if
def NO
_ASSERT_CHECKING
#if
ndef USE
_ASSERT_CHECKING
#define LogAssert(condition, printArgs)
#define LogAssertMacro(condition, printArgs) true
#define LogAssertArg(condition, printArgs)
...
...
@@ -673,7 +673,7 @@ typedef struct Exception
#define LogAssertState(condition, printArgs) \
LogTrap(!(condition), BadState, printArgs)
#endif
/*
NO
_ASSERT_CHECKING */
#endif
/*
USE
_ASSERT_CHECKING */
/* ----------------------------------------------------------------
* Section 8: Min, Max, Abs macros
...
...
src/include/config.h.in
浏览文件 @
2ffd7275
...
...
@@ -208,7 +208,7 @@ extern void srandom(int seed);
#undef CYR_RECODE
/* Set to 1 if you want to Disable ASSERT CHECKING */
#undef
NO
_ASSERT_CHECKING
#undef
USE
_ASSERT_CHECKING
/*
* Code below this point should not require changes
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录