]> granicus.if.org Git - postgresql/commitdiff
Remove use of "bool", which user program may not have defined.
authorBryan Henderson <bryanh@giraffe.netgate.net>
Thu, 26 Dec 1996 23:27:16 +0000 (23:27 +0000)
committerBryan Henderson <bryanh@giraffe.netgate.net>
Thu, 26 Dec 1996 23:27:16 +0000 (23:27 +0000)
src/interfaces/libpq/libpq-fe.h

index 48abb815320cd6b9212dadcc483a0578d0697c9e..1a494301e1d52a2137435e4f5e90c89dd3df91bf 100644 (file)
@@ -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> */