8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.174 2001/08/17 02:59:20 momjian Exp $
11
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.175 2001/08/17 15:11:15 momjian Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -191,7 +191,7 @@ static int parseServiceInfo(PQconninfoOption *options,
191
191
PQExpBuffer errorMessage );
192
192
193
193
194
- /* ----------------
194
+ /*
195
195
* Connecting to a Database
196
196
*
197
197
* There are now four different ways a user of this API can connect to the
@@ -208,11 +208,9 @@ static int parseServiceInfo(PQconninfoOption *options,
208
208
*
209
209
* Internally, the static functions connectDBStart, connectDBComplete
210
210
* are part of the connection procedure.
211
- *
212
- * ----------------
213
211
*/
214
212
215
- /* ----------------
213
+ /*
216
214
* PQconnectdb
217
215
*
218
216
* establishes a connection to a postgres backend through the postmaster
@@ -233,8 +231,6 @@ static int parseServiceInfo(PQconninfoOption *options,
233
231
*
234
232
* You should call PQfinish (if conn is not NULL) regardless of whether this
235
233
* call succeeded.
236
- *
237
- * ----------------
238
234
*/
239
235
PGconn *
240
236
PQconnectdb (const char * conninfo )
@@ -247,7 +243,7 @@ PQconnectdb(const char *conninfo)
247
243
return conn ;
248
244
}
249
245
250
- /* ----------------
246
+ /*
251
247
* PQconnectStart
252
248
*
253
249
* Begins the establishment of a connection to a postgres backend through the
@@ -265,8 +261,6 @@ PQconnectdb(const char *conninfo)
265
261
* this is necessary.
266
262
*
267
263
* See PQconnectPoll for more info.
268
- *
269
- * ----------------
270
264
*/
271
265
PGconn *
272
266
PQconnectStart (const char * conninfo )
@@ -346,7 +340,7 @@ PQconnectStart(const char *conninfo)
346
340
return conn ;
347
341
}
348
342
349
- /* ----------------
343
+ /*
350
344
* PQconndefaults
351
345
*
352
346
* Parse an empty string like PQconnectdb() would do and return the
@@ -360,7 +354,6 @@ PQconnectStart(const char *conninfo)
360
354
* versions, the returned array was static, but that's not thread-safe.)
361
355
* Pre-7.0 applications that use this function will see a small memory leak
362
356
* until they are updated to call PQconninfoFree.
363
- * ----------------
364
357
*/
365
358
PQconninfoOption *
366
359
PQconndefaults (void )
@@ -411,7 +404,6 @@ PQconndefaults(void)
411
404
* the database name to lower case if it is not surrounded by double quotes.
412
405
* Otherwise, strip the double quotes but leave the reset of the string intact.
413
406
* - thomas 1997-11-08
414
- *
415
407
* ----------------
416
408
*/
417
409
PGconn *
@@ -1044,13 +1036,12 @@ connectDBStart(PGconn *conn)
1044
1036
}
1045
1037
1046
1038
1047
- /* ----------------
1039
+ /*
1048
1040
* connectDBComplete
1049
1041
*
1050
1042
* Block and complete a connection.
1051
1043
*
1052
1044
* Returns 1 on success, 0 on failure.
1053
- * ----------------
1054
1045
*/
1055
1046
static int
1056
1047
connectDBComplete (PGconn * conn )
@@ -1520,13 +1511,11 @@ PQconnectPoll(PGconn *conn)
1520
1511
}
1521
1512
1522
1513
1523
- /* ----------------
1514
+ /*
1524
1515
* PQsetenvStart
1525
1516
*
1526
1517
* Starts the process of passing the values of a standard set of environment
1527
1518
* variables to the backend.
1528
- *
1529
- * ----------------
1530
1519
*/
1531
1520
static bool
1532
1521
PQsetenvStart (PGconn * conn )
@@ -1547,13 +1536,11 @@ PQsetenvStart(PGconn *conn)
1547
1536
return true;
1548
1537
}
1549
1538
1550
- /* ----------------
1539
+ /*
1551
1540
* PQsetenvPoll
1552
1541
*
1553
1542
* Polls the process of passing the values of a standard set of environment
1554
1543
* variables to the backend.
1555
- *
1556
- * ----------------
1557
1544
*/
1558
1545
static PostgresPollingStatusType
1559
1546
PQsetenvPoll (PGconn * conn )
@@ -1784,7 +1771,7 @@ PQsetenvPoll(PGconn *conn)
1784
1771
1785
1772
#ifdef NOT_USED
1786
1773
1787
- /* ----------------
1774
+ /*
1788
1775
* PQsetenv
1789
1776
*
1790
1777
* Passes the values of a standard set of environment variables to the
@@ -1795,7 +1782,6 @@ PQsetenvPoll(PGconn *conn)
1795
1782
* This function used to be exported for no particularly good reason.
1796
1783
* Since it's no longer used by libpq itself, let's try #ifdef'ing it out
1797
1784
* and see if anyone complains.
1798
- * ----------------
1799
1785
*/
1800
1786
static bool
1801
1787
PQsetenv (PGconn * conn )
@@ -2365,13 +2351,12 @@ parseServiceInfo(PQconninfoOption *options, PQExpBuffer errorMessage)
2365
2351
}
2366
2352
2367
2353
2368
- /* ----------------
2354
+ /*
2369
2355
* Conninfo parser routine
2370
2356
*
2371
2357
* If successful, a malloc'd PQconninfoOption array is returned.
2372
2358
* If not successful, NULL is returned and an error message is
2373
2359
* left in errorMessage.
2374
- * ----------------
2375
2360
*/
2376
2361
static PQconninfoOption *
2377
2362
conninfo_parse (const char * conninfo , PQExpBuffer errorMessage )
0 commit comments