Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2637f88

Browse files
committed
Remove some unneeded dashes from libpq comments.
1 parent 27c2729 commit 2637f88

File tree

6 files changed

+78
-93
lines changed

6 files changed

+78
-93
lines changed

src/interfaces/libpq/fe-auth.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.53 2001/08/17 15:02:18 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.54 2001/08/17 15:11:15 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -52,9 +52,8 @@
5252
#endif
5353

5454

55-
/*----------------------------------------------------------------
55+
/*
5656
* common definitions for generic fe/be routines
57-
*----------------------------------------------------------------
5857
*/
5958

6059
struct authsvc
@@ -98,9 +97,8 @@ static const struct authsvc authsvcs[] = {
9897
static const int n_authsvcs = sizeof(authsvcs) / sizeof(struct authsvc);
9998

10099
#ifdef KRB4
101-
/*----------------------------------------------------------------
100+
/*
102101
* MIT Kerberos authentication system - protocol version 4
103-
*----------------------------------------------------------------
104102
*/
105103

106104
#include "krb.h"
@@ -230,9 +228,8 @@ pg_krb4_sendauth(char *PQerrormsg, int sock,
230228
#endif /* KRB4 */
231229

232230
#ifdef KRB5
233-
/*----------------------------------------------------------------
231+
/*
234232
* MIT Kerberos authentication system - protocol version 5
235-
*----------------------------------------------------------------
236233
*/
237234

238235
#include <krb5.h>

src/interfaces/libpq/fe-connect.c

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* 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 $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -191,7 +191,7 @@ static int parseServiceInfo(PQconninfoOption *options,
191191
PQExpBuffer 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
*/
239235
PGconn *
240236
PQconnectdb(const char *conninfo)
@@ -247,7 +243,7 @@ PQconnectdb(const char *conninfo)
247243
return 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
*/
271265
PGconn *
272266
PQconnectStart(const char *conninfo)
@@ -346,7 +340,7 @@ PQconnectStart(const char *conninfo)
346340
return 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
*/
365358
PQconninfoOption *
366359
PQconndefaults(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
*/
417409
PGconn *
@@ -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
*/
10551046
static int
10561047
connectDBComplete(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
*/
15311520
static bool
15321521
PQsetenvStart(PGconn *conn)
@@ -1547,13 +1536,11 @@ PQsetenvStart(PGconn *conn)
15471536
return 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
*/
15581545
static PostgresPollingStatusType
15591546
PQsetenvPoll(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
*/
18001786
static bool
18011787
PQsetenv(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
*/
23762361
static PQconninfoOption *
23772362
conninfo_parse(const char *conninfo, PQExpBuffer errorMessage)

src/interfaces/libpq/fe-exec.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.106 2001/08/15 18:42:15 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.107 2001/08/17 15:11:15 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -73,6 +73,7 @@ static int getNotice(PGconn *conn);
7373
* combine it with the first allocation block, but that would waste space
7474
* for the common case that no extra storage is actually needed (that is,
7575
* the SQL command did not return tuples).
76+
*
7677
* We also malloc the top-level array of tuple pointers separately, because
7778
* we need to be able to enlarge it via realloc, and our trivial space
7879
* allocator doesn't handle that effectively. (Too bad the FE/BE protocol
@@ -84,6 +85,7 @@ static int getNotice(PGconn *conn);
8485
* A query returning a small amount of data will thus require three malloc
8586
* calls: one for the PGresult, one for the tuples pointer array, and one
8687
* PGresult_data block.
88+
*
8789
* Only the most recently allocated PGresult_data block is a candidate to
8890
* have more stuff added to it --- any extra space left over in older blocks
8991
* is wasted. We could be smarter and search the whole chain, but the point

src/interfaces/libpq/fe-lobj.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.36 2001/08/03 22:11:39 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.37 2001/08/17 15:11:15 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -507,13 +507,12 @@ lo_export(PGconn *conn, Oid lobjId, const char *filename)
507507
}
508508

509509

510-
/* ----------------
510+
/*
511511
* lo_initialize
512512
*
513513
* Initialize the large object interface for an existing connection.
514514
* We ask the backend about the functions OID's in pg_proc for all
515515
* functions that are required for large object operations.
516-
* ----------------
517516
*/
518517
static int
519518
lo_initialize(PGconn *conn)

0 commit comments

Comments
 (0)