diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-12-01 22:14:40 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-12-01 22:14:40 +0000 |
commit | 35ddc2edeea919bad940b3e0ca8619688adba4b1 (patch) | |
tree | 657717f5ea7e06458eb15f737854b66be513f5fc /src/bin/psql/common.h | |
parent | abd5d75c4c0d101d8559d3c7c74dc77661f085a6 (diff) | |
download | postgresql-35ddc2edeea919bad940b3e0ca8619688adba4b1.tar.gz |
This patch reduces some unsightly #ifdefs, and fixes two typos in
comments in the psql code. This doesn't make any functional change, so
feel free to save it for 7.5
Neil Conway
Diffstat (limited to 'src/bin/psql/common.h')
-rw-r--r-- | src/bin/psql/common.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bin/psql/common.h b/src/bin/psql/common.h index 74e6deb234..2e9cc5952e 100644 --- a/src/bin/psql/common.h +++ b/src/bin/psql/common.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.30 2003/11/29 19:52:06 pgsql Exp $ + * $PostgreSQL: pgsql/src/bin/psql/common.h,v 1.31 2003/12/01 22:14:40 momjian Exp $ */ #ifndef COMMON_H #define COMMON_H @@ -13,6 +13,13 @@ #include "pqsignal.h" #include "libpq-fe.h" +#ifdef USE_ASSERT_CHECKING +#include <assert.h> +#define psql_assert(p) assert(p) +#else +#define psql_assert(p) +#endif + extern char *xstrdup(const char *string); extern bool setQFout(const char *fname); |