88 *
99 *
1010 * IDENTIFICATION
11- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.174 2001/08/1702:59:20 momjian Exp $
11+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.175 2001/08/1715:11:15 momjian Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -191,7 +191,7 @@ static int parseServiceInfo(PQconninfoOption *options,
191191PQExpBuffer errorMessage );
192192
193193
194- /*----------------
194+ /*
195195 *Connecting to a Database
196196 *
197197 * There are now four different ways a user of this API can connect to the
@@ -208,11 +208,9 @@ static int parseServiceInfo(PQconninfoOption *options,
208208 *
209209 * Internally, the static functions connectDBStart, connectDBComplete
210210 * are part of the connection procedure.
211- *
212- * ----------------
213211 */
214212
215- /* ----------------
213+ /*
216214 *PQconnectdb
217215 *
218216 * establishes a connection to a postgres backend through the postmaster
@@ -233,8 +231,6 @@ static int parseServiceInfo(PQconninfoOption *options,
233231 *
234232 * You should call PQfinish (if conn is not NULL) regardless of whether this
235233 * call succeeded.
236- *
237- * ----------------
238234 */
239235PGconn *
240236PQconnectdb (const char * conninfo )
@@ -247,7 +243,7 @@ PQconnectdb(const char *conninfo)
247243return conn ;
248244}
249245
250- /* ----------------
246+ /*
251247 *PQconnectStart
252248 *
253249 * Begins the establishment of a connection to a postgres backend through the
@@ -265,8 +261,6 @@ PQconnectdb(const char *conninfo)
265261 * this is necessary.
266262 *
267263 * See PQconnectPoll for more info.
268- *
269- * ----------------
270264 */
271265PGconn *
272266PQconnectStart (const char * conninfo )
@@ -346,7 +340,7 @@ PQconnectStart(const char *conninfo)
346340return conn ;
347341}
348342
349- /* ----------------
343+ /*
350344 *PQconndefaults
351345 *
352346 * Parse an empty string like PQconnectdb() would do and return the
@@ -360,7 +354,6 @@ PQconnectStart(const char *conninfo)
360354 * versions, the returned array was static, but that's not thread-safe.)
361355 * Pre-7.0 applications that use this function will see a small memory leak
362356 * until they are updated to call PQconninfoFree.
363- * ----------------
364357 */
365358PQconninfoOption *
366359PQconndefaults (void )
@@ -411,7 +404,6 @@ PQconndefaults(void)
411404 * the database name to lower case if it is not surrounded by double quotes.
412405 * Otherwise, strip the double quotes but leave the reset of the string intact.
413406 * - thomas 1997-11-08
414- *
415407 * ----------------
416408 */
417409PGconn *
@@ -1044,13 +1036,12 @@ connectDBStart(PGconn *conn)
10441036}
10451037
10461038
1047- /* ----------------
1039+ /*
10481040 *connectDBComplete
10491041 *
10501042 * Block and complete a connection.
10511043 *
10521044 * Returns 1 on success, 0 on failure.
1053- * ----------------
10541045 */
10551046static int
10561047connectDBComplete (PGconn * conn )
@@ -1520,13 +1511,11 @@ PQconnectPoll(PGconn *conn)
15201511}
15211512
15221513
1523- /* ----------------
1514+ /*
15241515 *PQsetenvStart
15251516 *
15261517 * Starts the process of passing the values of a standard set of environment
15271518 * variables to the backend.
1528- *
1529- * ----------------
15301519 */
15311520static bool
15321521PQsetenvStart (PGconn * conn )
@@ -1547,13 +1536,11 @@ PQsetenvStart(PGconn *conn)
15471536return true;
15481537}
15491538
1550- /* ----------------
1539+ /*
15511540 *PQsetenvPoll
15521541 *
15531542 * Polls the process of passing the values of a standard set of environment
15541543 * variables to the backend.
1555- *
1556- * ----------------
15571544 */
15581545static PostgresPollingStatusType
15591546PQsetenvPoll (PGconn * conn )
@@ -1784,7 +1771,7 @@ PQsetenvPoll(PGconn *conn)
17841771
17851772#ifdef NOT_USED
17861773
1787- /* ----------------
1774+ /*
17881775 *PQsetenv
17891776 *
17901777 * Passes the values of a standard set of environment variables to the
@@ -1795,7 +1782,6 @@ PQsetenvPoll(PGconn *conn)
17951782 * This function used to be exported for no particularly good reason.
17961783 * Since it's no longer used by libpq itself, let's try #ifdef'ing it out
17971784 * and see if anyone complains.
1798- * ----------------
17991785 */
18001786static bool
18011787PQsetenv (PGconn * conn )
@@ -2365,13 +2351,12 @@ parseServiceInfo(PQconninfoOption *options, PQExpBuffer errorMessage)
23652351}
23662352
23672353
2368- /* ----------------
2354+ /*
23692355 * Conninfo parser routine
23702356 *
23712357 * If successful, a malloc'd PQconninfoOption array is returned.
23722358 * If not successful, NULL is returned and an error message is
23732359 * left in errorMessage.
2374- * ----------------
23752360 */
23762361static PQconninfoOption *
23772362conninfo_parse (const char * conninfo ,PQExpBuffer errorMessage )