*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.17 1998/02/26 04:29:36 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.18 1998/04/06 17:27:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
-#ifndef NO_ASSERT_CHECKING
+#ifdef USE_ASSERT_CHECKING
static bool StrategyEvaluationIsValid(StrategyEvaluation evaluation);
static bool
StrategyExpressionIsValid(StrategyExpression expression,
maxAttributeNumber * maxStrategyNumber * sizeof(ScanKeyData);
}
-#ifndef NO_ASSERT_CHECKING
+#ifdef USE_ASSERT_CHECKING
/*
* StrategyTransformMapIsValid is now a macro in istrat.h -cim 4/27/91
*/
*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
stack->top = item;
}
-#ifndef NO_ASSERT_CHECKING
+#ifdef USE_ASSERT_CHECKING
/*
* FixedStackContains --
* True iff ordered stack contains given element.
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.17 1998/02/26 04:35:46 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.18 1998/04/06 17:27:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
if (!BindingTable)
{
/* Assert() is a macro now. substitutes inside quotes. */
-#ifndef NO_ASSERT_CHECKING
+#ifdef USE_ASSERT_CHECKING
char *strname = "BindingTable";
#endif
# Any additions from configure.in:
ac_default_prefix=/usr/local/pgsql
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
- --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
- --enable-locale enable locale support "
+ --enable-locale enable locale support "
ac_help="$ac_help
- --enable-recode enable cyrillic recode support "
+ --enable-recode enable cyrillic recode support "
ac_help="$ac_help
--with-pgport=
change default startup port "
ac_help="$ac_help
- --with-tcl use tcl "
+ --with-tcl use tcl "
ac_help="$ac_help
- --with-perl use perl "
+ --with-perl use perl "
ac_help="$ac_help
- --enable-cassert enable assertion checks (debugging) "
+ --enable-cassert enable assertion checks (debugging) "
ac_help="$ac_help
--with-x use the X Window System"
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
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
"" | y | ye | yes | n | no)
fi
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
"" | y | ye | yes | n | no)
AC_MSG_CHECKING(setting USE_LOCALE)
AC_ARG_ENABLE(
locale,
- [ --enable-locale enable locale support ],
+ [ --enable-locale enable locale support ],
AC_DEFINE(USE_LOCALE) AC_MSG_RESULT(enabled),
AC_MSG_RESULT(disabled)
)
AC_MSG_CHECKING(setting CYR_RECODE)
AC_ARG_ENABLE(
recode,
- [ --enable-recode enable cyrillic recode support ],
+ [ --enable-recode enable cyrillic recode support ],
AC_DEFINE(CYR_RECODE) AC_MSG_RESULT(enabled),
AC_MSG_RESULT(disabled)
)
AC_MSG_CHECKING(setting USE_TCL)
AC_ARG_WITH(
tcl,
- [ --with-tcl use tcl ],
+ [ --with-tcl use tcl ],
USE_TCL=true; AC_MSG_RESULT(enabled),
USE_TCL=false; AC_MSG_RESULT(disabled)
)
AC_MSG_CHECKING(setting USE_PERL)
AC_ARG_WITH(
perl,
- [ --with-perl use perl ],
+ [ --with-perl use perl ],
USE_PERL=true; AC_MSG_RESULT(enabled),
USE_PERL=false; AC_MSG_RESULT(disabled)
)
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),
+ [ --enable-cassert enable assertion checks (debugging) ],
+ AC_DEFINE(USE_ASSERT_CHECKING) AC_MSG_RESULT(enabled),
AC_MSG_RESULT(disabled)
)
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.38 1998/03/31 15:53:39 momjian Exp $
+ * $Id: c.h,v 1.39 1998/04/06 17:27:49 momjian Exp $
*
*-------------------------------------------------------------------------
*/
} 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
*/
/*
&(exception), \
(char*) NULL, __FILE__, __LINE__))))
-#ifdef NO_ASSERT_CHECKING
+#ifndef USE_ASSERT_CHECKING
#define Assert(condition)
#define AssertMacro(condition) true
#define AssertArg(condition)
#define AssertState(condition) \
Trap(!(condition), BadState)
-#endif /* NO_ASSERT_CHECKING */
+#endif /* USE_ASSERT_CHECKING */
/*
* LogTrap --
&(exception), \
form printArgs, __FILE__, __LINE__))))
-#ifdef NO_ASSERT_CHECKING
+#ifndef USE_ASSERT_CHECKING
#define LogAssert(condition, printArgs)
#define LogAssertMacro(condition, printArgs) true
#define LogAssertArg(condition, printArgs)
#define LogAssertState(condition, printArgs) \
LogTrap(!(condition), BadState, printArgs)
-#endif /* NO_ASSERT_CHECKING */
+#endif /* USE_ASSERT_CHECKING */
/* ----------------------------------------------------------------
* Section 8: Min, Max, Abs macros
#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