Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
2ffd7275
Commit
2ffd7275
authored
Apr 06, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASSERT fixes.
parent
d8077ab0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
31 deletions
+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
No files found.
src/backend/access/index/istrat.c
View file @
2ffd7275
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* 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 @@
...
@@ -26,7 +26,7 @@
#include <access/istrat.h>
#include <access/istrat.h>
#include <fmgr.h>
#include <fmgr.h>
#if
ndef NO
_ASSERT_CHECKING
#if
def USE
_ASSERT_CHECKING
static
bool
StrategyEvaluationIsValid
(
StrategyEvaluation
evaluation
);
static
bool
StrategyEvaluationIsValid
(
StrategyEvaluation
evaluation
);
static
bool
static
bool
StrategyExpressionIsValid
(
StrategyExpression
expression
,
StrategyExpressionIsValid
(
StrategyExpression
expression
,
...
@@ -113,7 +113,7 @@ AttributeNumberGetIndexStrategySize(AttrNumber maxAttributeNumber,
...
@@ -113,7 +113,7 @@ AttributeNumberGetIndexStrategySize(AttrNumber maxAttributeNumber,
maxAttributeNumber
*
maxStrategyNumber
*
sizeof
(
ScanKeyData
);
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
* StrategyTransformMapIsValid is now a macro in istrat.h -cim 4/27/91
*/
*/
...
...
src/backend/lib/fstack.c
View file @
2ffd7275
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* 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)
...
@@ -84,7 +84,7 @@ FixedStackPush(FixedStack stack, Pointer pointer)
stack
->
top
=
item
;
stack
->
top
=
item
;
}
}
#if
ndef NO
_ASSERT_CHECKING
#if
def USE
_ASSERT_CHECKING
/*
/*
* FixedStackContains --
* FixedStackContains --
* True iff ordered stack contains given element.
* True iff ordered stack contains given element.
...
...
src/backend/storage/ipc/shmem.c
View file @
2ffd7275
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* 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)
...
@@ -511,7 +511,7 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
if
(
!
BindingTable
)
if
(
!
BindingTable
)
{
{
/* Assert() is a macro now. substitutes inside quotes. */
/* Assert() is a macro now. substitutes inside quotes. */
#if
ndef NO
_ASSERT_CHECKING
#if
def USE
_ASSERT_CHECKING
char
*
strname
=
"BindingTable"
;
char
*
strname
=
"BindingTable"
;
#endif
#endif
...
...
src/configure
View file @
2ffd7275
...
@@ -13,21 +13,21 @@ ac_default_prefix=/usr/local
...
@@ -13,21 +13,21 @@ ac_default_prefix=/usr/local
# Any additions from configure.in:
# Any additions from configure.in:
ac_default_prefix
=
/usr/local/pgsql
ac_default_prefix
=
/usr/local/pgsql
ac_help
=
"
$ac_help
ac_help
=
"
$ac_help
--with-includes=DIR site header files for tk/tcl, etc in DIR"
--with-includes=DIR
site header files for tk/tcl, etc in DIR"
ac_help
=
"
$ac_help
ac_help
=
"
$ac_help
--with-libraries=DIR site library directories for tk/tcl, etc in DIR"
--with-libraries=DIR
site library directories for tk/tcl, etc in DIR"
ac_help
=
"
$ac_help
ac_help
=
"
$ac_help
--enable-locale
enable locale support "
--enable-locale enable locale support "
ac_help
=
"
$ac_help
ac_help
=
"
$ac_help
--enable-recode
enable cyrillic recode support "
--enable-recode enable cyrillic recode support "
ac_help
=
"
$ac_help
ac_help
=
"
$ac_help
--with-pgport=<portnum> change default startup port "
--with-pgport=<portnum> change default startup port "
ac_help
=
"
$ac_help
ac_help
=
"
$ac_help
--with-tcl
use tcl "
--with-tcl
use tcl "
ac_help
=
"
$ac_help
ac_help
=
"
$ac_help
--with-perl
use perl "
--with-perl
use perl "
ac_help
=
"
$ac_help
ac_help
=
"
$ac_help
--enable-cassert
enable assertion checks (debugging) "
--enable-cassert
enable assertion checks (debugging) "
ac_help
=
"
$ac_help
ac_help
=
"
$ac_help
--with-x use the X Window System"
--with-x use the X Window System"
...
@@ -877,7 +877,7 @@ echo "configure:876: checking setting ASSERT CHECKING" >&5
...
@@ -877,7 +877,7 @@ echo "configure:876: checking setting ASSERT CHECKING" >&5
if
test
"
${
enable_cassert
+set
}
"
=
set
;
then
if
test
"
${
enable_cassert
+set
}
"
=
set
;
then
enableval
=
"
$enable_cassert
"
enableval
=
"
$enable_cassert
"
cat
>>
confdefs.h
<<
\
EOF
cat
>>
confdefs.h
<<
\
EOF
#define
NO
_ASSERT_CHECKING 1
#define
USE
_ASSERT_CHECKING 1
EOF
EOF
echo
"
$ac_t
""enabled"
1>&6
echo
"
$ac_t
""enabled"
1>&6
else
else
...
...
src/configure.in
View file @
2ffd7275
...
@@ -142,7 +142,7 @@ LIBS=`grep '^LIBS:' $TEMPLATE | awk -F: '{print $2}'`
...
@@ -142,7 +142,7 @@ LIBS=`grep '^LIBS:' $TEMPLATE | awk -F: '{print $2}'`
AC_ARG_WITH(includes,
AC_ARG_WITH(includes,
[ --with-includes=DIR site header files for tk/tcl, etc in DIR],
[ --with-includes=DIR
site header files for tk/tcl, etc in DIR],
[
[
case "$withval" in
case "$withval" in
"" | y | ye | yes | n | no)
"" | y | ye | yes | n | no)
...
@@ -163,7 +163,7 @@ if test "$INCLUDE_DIRS"; then
...
@@ -163,7 +163,7 @@ if test "$INCLUDE_DIRS"; then
fi
fi
AC_ARG_WITH(libraries,
AC_ARG_WITH(libraries,
[ --with-libraries=DIR site library directories for tk/tcl, etc in DIR],
[ --with-libraries=DIR
site library directories for tk/tcl, etc in DIR],
[
[
case "$withval" in
case "$withval" in
"" | y | ye | yes | n | no)
"" | y | ye | yes | n | no)
...
@@ -191,7 +191,7 @@ dnl It defaults to disabled
...
@@ -191,7 +191,7 @@ dnl It defaults to disabled
AC_MSG_CHECKING(setting USE_LOCALE)
AC_MSG_CHECKING(setting USE_LOCALE)
AC_ARG_ENABLE(
AC_ARG_ENABLE(
locale,
locale,
[ --enable-locale
enable locale support ],
[ --enable-locale enable locale support ],
AC_DEFINE(USE_LOCALE) AC_MSG_RESULT(enabled),
AC_DEFINE(USE_LOCALE) AC_MSG_RESULT(enabled),
AC_MSG_RESULT(disabled)
AC_MSG_RESULT(disabled)
)
)
...
@@ -204,7 +204,7 @@ dnl It defaults to disabled
...
@@ -204,7 +204,7 @@ dnl It defaults to disabled
AC_MSG_CHECKING(setting CYR_RECODE)
AC_MSG_CHECKING(setting CYR_RECODE)
AC_ARG_ENABLE(
AC_ARG_ENABLE(
recode,
recode,
[ --enable-recode
enable cyrillic recode support ],
[ --enable-recode enable cyrillic recode support ],
AC_DEFINE(CYR_RECODE) AC_MSG_RESULT(enabled),
AC_DEFINE(CYR_RECODE) AC_MSG_RESULT(enabled),
AC_MSG_RESULT(disabled)
AC_MSG_RESULT(disabled)
)
)
...
@@ -223,7 +223,7 @@ dnl We exclude tcl support unless we override it with --with-tcl
...
@@ -223,7 +223,7 @@ dnl We exclude tcl support unless we override it with --with-tcl
AC_MSG_CHECKING(setting USE_TCL)
AC_MSG_CHECKING(setting USE_TCL)
AC_ARG_WITH(
AC_ARG_WITH(
tcl,
tcl,
[ --with-tcl
use tcl ],
[ --with-tcl
use tcl ],
USE_TCL=true; AC_MSG_RESULT(enabled),
USE_TCL=true; AC_MSG_RESULT(enabled),
USE_TCL=false; AC_MSG_RESULT(disabled)
USE_TCL=false; AC_MSG_RESULT(disabled)
)
)
...
@@ -255,7 +255,7 @@ dnl We exclude perl support unless we override it with --with-perl
...
@@ -255,7 +255,7 @@ dnl We exclude perl support unless we override it with --with-perl
AC_MSG_CHECKING(setting USE_PERL)
AC_MSG_CHECKING(setting USE_PERL)
AC_ARG_WITH(
AC_ARG_WITH(
perl,
perl,
[ --with-perl
use perl ],
[ --with-perl
use perl ],
USE_PERL=true; AC_MSG_RESULT(enabled),
USE_PERL=true; AC_MSG_RESULT(enabled),
USE_PERL=false; AC_MSG_RESULT(disabled)
USE_PERL=false; AC_MSG_RESULT(disabled)
)
)
...
@@ -279,8 +279,8 @@ dnl We need some explanatory text here.
...
@@ -279,8 +279,8 @@ dnl We need some explanatory text here.
AC_MSG_CHECKING(setting ASSERT CHECKING)
AC_MSG_CHECKING(setting ASSERT CHECKING)
AC_ARG_ENABLE(
AC_ARG_ENABLE(
cassert,
cassert,
[ --enable-cassert
enable assertion checks (debugging) ],
[ --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)
AC_MSG_RESULT(disabled)
)
)
...
...
src/include/c.h
View file @
2ffd7275
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* 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
...
@@ -583,12 +583,12 @@ typedef struct Exception
}
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
* - plai 9/5/90
*
*
* It should _NOT_ be undef'ed in releases or in benchmark copies
* 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
...
@@ -614,7 +614,7 @@ typedef struct Exception
&(exception), \
&(exception), \
(char*) NULL, __FILE__, __LINE__))))
(char*) NULL, __FILE__, __LINE__))))
#if
def NO
_ASSERT_CHECKING
#if
ndef USE
_ASSERT_CHECKING
#define Assert(condition)
#define Assert(condition)
#define AssertMacro(condition) true
#define AssertMacro(condition) true
#define AssertArg(condition)
#define AssertArg(condition)
...
@@ -632,7 +632,7 @@ typedef struct Exception
...
@@ -632,7 +632,7 @@ typedef struct Exception
#define AssertState(condition) \
#define AssertState(condition) \
Trap(!(condition), BadState)
Trap(!(condition), BadState)
#endif
/*
NO
_ASSERT_CHECKING */
#endif
/*
USE
_ASSERT_CHECKING */
/*
/*
* LogTrap --
* LogTrap --
...
@@ -655,7 +655,7 @@ typedef struct Exception
...
@@ -655,7 +655,7 @@ typedef struct Exception
&(exception), \
&(exception), \
form printArgs, __FILE__, __LINE__))))
form printArgs, __FILE__, __LINE__))))
#if
def NO
_ASSERT_CHECKING
#if
ndef USE
_ASSERT_CHECKING
#define LogAssert(condition, printArgs)
#define LogAssert(condition, printArgs)
#define LogAssertMacro(condition, printArgs) true
#define LogAssertMacro(condition, printArgs) true
#define LogAssertArg(condition, printArgs)
#define LogAssertArg(condition, printArgs)
...
@@ -673,7 +673,7 @@ typedef struct Exception
...
@@ -673,7 +673,7 @@ typedef struct Exception
#define LogAssertState(condition, printArgs) \
#define LogAssertState(condition, printArgs) \
LogTrap(!(condition), BadState, printArgs)
LogTrap(!(condition), BadState, printArgs)
#endif
/*
NO
_ASSERT_CHECKING */
#endif
/*
USE
_ASSERT_CHECKING */
/* ----------------------------------------------------------------
/* ----------------------------------------------------------------
* Section 8: Min, Max, Abs macros
* Section 8: Min, Max, Abs macros
...
...
src/include/config.h.in
View file @
2ffd7275
...
@@ -208,7 +208,7 @@ extern void srandom(int seed);
...
@@ -208,7 +208,7 @@ extern void srandom(int seed);
#undef CYR_RECODE
#undef CYR_RECODE
/* Set to 1 if you want to Disable ASSERT CHECKING */
/* 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
* Code below this point should not require changes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment