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/stringutils.c | |
parent | abd5d75c4c0d101d8559d3c7c74dc77661f085a6 (diff) | |
download | postgresql-35ddc2edeea919bad940b3e0ca8619688adba4b1.tar.gz postgresql-35ddc2edeea919bad940b3e0ca8619688adba4b1.zip |
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/stringutils.c')
-rw-r--r-- | src/bin/psql/stringutils.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/bin/psql/stringutils.c b/src/bin/psql/stringutils.c index 1dbc369df9b..c90abb2cdd6 100644 --- a/src/bin/psql/stringutils.c +++ b/src/bin/psql/stringutils.c @@ -3,14 +3,14 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/stringutils.c,v 1.35 2003/11/29 19:52:07 pgsql Exp $ + * $PostgreSQL: pgsql/src/bin/psql/stringutils.c,v 1.36 2003/12/01 22:14:40 momjian Exp $ */ #include "postgres_fe.h" -#include <assert.h> #include <ctype.h> #include "libpq-fe.h" +#include "common.h" #include "settings.h" #include "stringutils.h" @@ -234,10 +234,8 @@ strip_quotes(char *source, char quote, char escape, int encoding) char *src; char *dst; -#ifdef USE_ASSERT_CHECKING - assert(source); - assert(quote); -#endif + psql_assert(source); + psql_assert(quote); src = dst = source; |