Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf30fe7

Browse files
author
Bryan Henderson
committed
Remove use of "bool", which user program may not have defined.
1 parent8c72118 commitaf30fe7

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

‎src/interfaces/libpq/libpq-fe.h

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: libpq-fe.h,v 1.15 1996/12/10 07:05:12 bryanh Exp $
9+
* $Id: libpq-fe.h,v 1.16 1996/12/26 23:27:16 bryanh Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -144,13 +144,19 @@ typedef struct pg_result{
144144
PGconn*conn;
145145
}PGresult;
146146

147+
typedefcharpqbool;
148+
/* We can't use the conventional "bool", because we are designed to be
149+
included in a user's program, and user may already have that type
150+
defined. Pqbool, on the other hand, is unlikely to be used.
151+
*/
152+
147153
struct_PQprintOpt {
148-
boolheader;/* print output field headings and row count */
149-
boolalign;/* fill align the fields */
150-
boolstandard;/* old brain dead format */
151-
boolhtml3;/* output html tables */
152-
boolexpanded;/* expand tables */
153-
boolpager;/* use pager for output if needed */
154+
pqboolheader;/* print output field headings and row count */
155+
pqboolalign;/* fill align the fields */
156+
pqboolstandard;/* old brain dead format */
157+
pqboolhtml3;/* output html tables */
158+
pqboolexpanded;/* expand tables */
159+
pqboolpager;/* use pager for output if needed */
154160
char*fieldSep;/* field separator */
155161
char*tableOpt;/* insert to HTML <table ...> */
156162
char*caption;/* HTML <caption> */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp