mirror of
https://github.com/postgres/postgres.git
synced 2025-05-01 01:04:50 +03:00
Remove use of "bool", which user program may not have defined.
This commit is contained in:
parent
8c72118527
commit
af30fe7852
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* 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;
|
PGconn* conn;
|
||||||
} PGresult;
|
} 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 {
|
struct _PQprintOpt {
|
||||||
bool header; /* print output field headings and row count */
|
pqbool header; /* print output field headings and row count */
|
||||||
bool align; /* fill align the fields */
|
pqbool align; /* fill align the fields */
|
||||||
bool standard; /* old brain dead format */
|
pqbool standard; /* old brain dead format */
|
||||||
bool html3; /* output html tables */
|
pqbool html3; /* output html tables */
|
||||||
bool expanded; /* expand tables */
|
pqbool expanded; /* expand tables */
|
||||||
bool pager; /* use pager for output if needed */
|
pqbool pager; /* use pager for output if needed */
|
||||||
char *fieldSep; /* field separator */
|
char *fieldSep; /* field separator */
|
||||||
char *tableOpt; /* insert to HTML <table ...> */
|
char *tableOpt; /* insert to HTML <table ...> */
|
||||||
char *caption; /* HTML <caption> */
|
char *caption; /* HTML <caption> */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user