aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Henderson <bryanh@giraffe.netgate.net>1996-12-26 23:27:16 +0000
committerBryan Henderson <bryanh@giraffe.netgate.net>1996-12-26 23:27:16 +0000
commitaf30fe7852f37283f96cefb0d8c4465a8be97b8a (patch)
treef04907e7e55bc343805cc26d9d48abae4feb84b7 /src
parent8c721185271cba0c75e0de8a65432272879f57f3 (diff)
downloadpostgresql-af30fe7852f37283f96cefb0d8c4465a8be97b8a.tar.gz
postgresql-af30fe7852f37283f96cefb0d8c4465a8be97b8a.zip
Remove use of "bool", which user program may not have defined.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/libpq-fe.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h
index 48abb815320..1a494301e1d 100644
--- a/src/interfaces/libpq/libpq-fe.h
+++ b/src/interfaces/libpq/libpq-fe.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq-fe.h,v 1.15 1996/12/10 07:05:12 bryanh Exp $
+ * $Id: libpq-fe.h,v 1.16 1996/12/26 23:27:16 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
@@ -144,13 +144,19 @@ typedef struct pg_result{
PGconn* conn;
} PGresult;
+typedef char pqbool;
+ /* We can't use the conventional "bool", because we are designed to be
+ included in a user's program, and user may already have that type
+ defined. Pqbool, on the other hand, is unlikely to be used.
+ */
+
struct _PQprintOpt {
- bool header; /* print output field headings and row count */
- bool align; /* fill align the fields */
- bool standard; /* old brain dead format */
- bool html3; /* output html tables */
- bool expanded; /* expand tables */
- bool pager; /* use pager for output if needed */
+ pqbool header; /* print output field headings and row count */
+ pqbool align; /* fill align the fields */
+ pqbool standard; /* old brain dead format */
+ pqbool html3; /* output html tables */
+ pqbool expanded; /* expand tables */
+ pqbool pager; /* use pager for output if needed */
char *fieldSep; /* field separator */
char *tableOpt; /* insert to HTML <table ...> */
char *caption; /* HTML <caption> */