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

Commit0686d49

Browse files
committed
Remove dashes in comments that don't need them, rewrap with pgindent.
1 parent9e15526 commit0686d49

File tree

100 files changed

+4522
-6023
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+4522
-6023
lines changed

‎contrib/pg_dumplo/lo_export.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -------------------------------------------------------------------------
22
* pg_dumplo
33
*
4-
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/lo_export.c,v 1.6 2001/03/2203:59:10 momjian Exp $
4+
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/lo_export.c,v 1.7 2001/03/2206:16:06 momjian Exp $
55
*
66
*Karel Zak 1999-2000
77
* -------------------------------------------------------------------------
@@ -32,15 +32,14 @@ load_lolist(LODumpMaster * pgLO)
3232
inti;
3333
intn;
3434

35-
/*----------
35+
/*
3636
* Now find any candidate tables who have columns of type oid.
3737
*
3838
* NOTE: System tables including pg_largeobject will be ignored.
3939
* Otherwise we'd end up dumping all LOs, referenced or not.
4040
*
4141
* NOTE: the system oid column is ignored, as it has attnum < 1.
4242
* This shouldn't matter for correctness, but it saves time.
43-
* ----------
4443
*/
4544
pgLO->res=PQexec(pgLO->conn,
4645
"SELECT c.relname, a.attname "
@@ -109,9 +108,8 @@ pglo_export(LODumpMaster * pgLO)
109108
for (ll=pgLO->lolist;ll->lo_table!=NULL;ll++)
110109
{
111110

112-
/*----------
111+
/*
113112
* Query: find the LOs referenced by this column
114-
* ----------
115113
*/
116114
sprintf(Qbuff,"SELECT DISTINCT l.loid FROM \"%s\" x, pg_largeobject l WHERE x.\"%s\" = l.loid",
117115
ll->lo_table,ll->lo_attr);
@@ -137,9 +135,8 @@ pglo_export(LODumpMaster * pgLO)
137135
intt;
138136
char*val;
139137

140-
/* ----------
138+
/*
141139
* Create DIR/FILE
142-
* ----------
143140
*/
144141
if (pgLO->action!=ACTION_SHOW)
145142
{

‎contrib/pg_dumplo/lo_import.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -------------------------------------------------------------------------
22
* pg_dumplo
33
*
4-
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/lo_import.c,v 1.4 2001/03/2203:59:10 momjian Exp $
4+
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/lo_import.c,v 1.5 2001/03/2206:16:06 momjian Exp $
55
*
66
*Karel Zak 1999-2000
77
* -------------------------------------------------------------------------
@@ -50,9 +50,8 @@ pglo_import(LODumpMaster * pgLO)
5050

5151
sprintf(lo_path,"%s/%s",pgLO->space,path);
5252

53-
/*----------
53+
/*
5454
* Import LO
55-
* ----------
5655
*/
5756
if ((new_oid=lo_import(pgLO->conn,lo_path))==0)
5857
{
@@ -79,9 +78,8 @@ pglo_import(LODumpMaster * pgLO)
7978

8079
pgLO->counter++;
8180

82-
/*----------
81+
/*
8382
* UPDATE oid in tab
84-
* ----------
8583
*/
8684
sprintf(Qbuff,"UPDATE \"%s\" SET \"%s\"=%u WHERE \"%s\"=%u",
8785
loa.lo_table,loa.lo_attr,new_oid,loa.lo_attr,loa.lo_oid);

‎contrib/pg_dumplo/main.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -------------------------------------------------------------------------
22
* pg_dumplo
33
*
4-
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/main.c,v 1.7 2001/03/2203:59:10 momjian Exp $
4+
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/main.c,v 1.8 2001/03/2206:16:06 momjian Exp $
55
*
66
*Karel Zak 1999-2000
77
* -------------------------------------------------------------------------
@@ -65,9 +65,8 @@ main(int argc, char **argv)
6565

6666
progname=argv[0];
6767

68-
/* ----------
68+
/*
6969
* Parse ARGV
70-
* ----------
7170
*/
7271
if (argc>1)
7372
{
@@ -153,9 +152,8 @@ main(int argc, char **argv)
153152
exit(RE_ERROR);
154153
}
155154

156-
/*----------
155+
/*
157156
* Check space
158-
* ----------
159157
*/
160158
if (!pgLO->space&& !pgLO->action==ACTION_SHOW)
161159
{
@@ -172,9 +170,8 @@ main(int argc, char **argv)
172170
exit(RE_ERROR);
173171
}
174172

175-
/*----------
173+
/*
176174
* Make connection
177-
* ----------
178175
*/
179176
pgLO->conn=PQsetdbLogin(pgLO->host,NULL,NULL,NULL,pgLO->db,
180177
pgLO->user,pwd);
@@ -189,9 +186,8 @@ main(int argc, char **argv)
189186
pgLO->user=PQuser(pgLO->conn);
190187

191188

192-
/*----------
189+
/*
193190
* Init index file
194-
* ----------
195191
*/
196192
if (pgLO->action!=ACTION_SHOW)
197193
index_file(pgLO);

‎src/backend/access/common/heaptuple.c

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.70 2001/03/2203:59:11 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.71 2001/03/2206:16:06 momjian Exp $
1313
*
1414
* NOTES
1515
* The old interface functions have been converted to macros
@@ -246,9 +246,8 @@ nocachegetattr(HeapTuple tuple,
246246
* there's a null somewhere in the tuple
247247
*/
248248

249-
/* ----------------
250-
*check to see if desired att is null
251-
* ----------------
249+
/*
250+
* check to see if desired att is null
252251
*/
253252

254253
#ifdefIN_MACRO
@@ -261,9 +260,8 @@ nocachegetattr(HeapTuple tuple,
261260
}
262261
#endif
263262

264-
/* ----------------
265-
*Now check to see if any preceding bits are null...
266-
* ----------------
263+
/*
264+
* Now check to see if any preceding bits are null...
267265
*/
268266
{
269267
intbyte=attnum >>3;
@@ -658,9 +656,8 @@ heap_modifytuple(HeapTuple tuple,
658656
HeapTuplenewTuple;
659657
uint8infomask;
660658

661-
/* ----------------
662-
*sanity checks
663-
* ----------------
659+
/*
660+
* sanity checks
664661
*/
665662
Assert(HeapTupleIsValid(tuple));
666663
Assert(RelationIsValid(relation));
@@ -670,10 +667,9 @@ heap_modifytuple(HeapTuple tuple,
670667

671668
numberOfAttributes=RelationGetForm(relation)->relnatts;
672669

673-
/* ----------------
674-
*allocate and fill *value and *nulls arrays from either
675-
*the tuple or the repl information, as appropriate.
676-
* ----------------
670+
/*
671+
* allocate and fill *value and *nulls arrays from either the tuple or
672+
* the repl information, as appropriate.
677673
*/
678674
value= (Datum*)palloc(numberOfAttributes*sizeof*value);
679675
nulls= (char*)palloc(numberOfAttributes*sizeof*nulls);
@@ -701,17 +697,16 @@ heap_modifytuple(HeapTuple tuple,
701697
}
702698
}
703699

704-
/* ----------------
705-
*create a new tuple from the *values and *nulls arrays
706-
* ----------------
700+
/*
701+
* create a new tuple from the *values and *nulls arrays
707702
*/
708703
newTuple=heap_formtuple(RelationGetDescr(relation),
709704
value,
710705
nulls);
711706

712-
/* ----------------
713-
*copy the header except for t_len, t_natts, t_hoff, t_bits, t_infomask
714-
*----------------
707+
/*
708+
*copy the header except for t_len, t_natts, t_hoff, t_bits,
709+
*t_infomask
715710
*/
716711
infomask=newTuple->t_data->t_infomask;
717712
memmove((char*)&newTuple->t_data->t_oid,/* XXX */

‎src/backend/access/common/indextuple.c

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.53 2001/03/2203:59:11 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.54 2001/03/2206:16:06 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -165,9 +165,8 @@ index_formtuple(TupleDesc tupleDescriptor,
165165

166166
infomask |=size;
167167

168-
/* ----------------
168+
/*
169169
* initialize metadata
170-
* ----------------
171170
*/
172171
tuple->t_info=infomask;
173172
returntuple;
@@ -205,9 +204,9 @@ nocache_index_getattr(IndexTuple tup,
205204
intdata_off;/* tuple data offset */
206205

207206
(void)isnull;/* not used */
208-
/* ----------------
209-
*sanity checks
210-
*----------------
207+
208+
/*
209+
*sanity checks
211210
*/
212211

213212
/* ----------------
@@ -246,9 +245,9 @@ nocache_index_getattr(IndexTuple tup,
246245
}
247246
else
248247
{/* there's a null somewhere in the tuple */
249-
/* ----------------
250-
*check to see if desired att is null
251-
*----------------
248+
249+
/*
250+
*check to see if desired att is null
252251
*/
253252

254253
/* XXX "knows" t_bits are just after fixed tuple header! */
@@ -264,9 +263,8 @@ nocache_index_getattr(IndexTuple tup,
264263
}
265264
#endif
266265

267-
/* ----------------
268-
*Now check to see if any preceding bits are null...
269-
* ----------------
266+
/*
267+
* Now check to see if any preceding bits are null...
270268
*/
271269
{
272270
intbyte=attnum >>3;

‎src/backend/access/common/printtup.c

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.58 2001/03/2203:59:11 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.59 2001/03/2206:16:06 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -155,16 +155,14 @@ printtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
155155
if (myState->attrinfo!=typeinfo||myState->nattrs!=natts)
156156
printtup_prepare_info(myState,typeinfo,natts);
157157

158-
/* ----------------
159-
*tell the frontend to expect new tuple data (in ASCII style)
160-
* ----------------
158+
/*
159+
* tell the frontend to expect new tuple data (in ASCII style)
161160
*/
162161
pq_beginmessage(&buf);
163162
pq_sendbyte(&buf,'D');
164163

165-
/* ----------------
166-
*send a bitmap of which attributes are not null
167-
* ----------------
164+
/*
165+
* send a bitmap of which attributes are not null
168166
*/
169167
j=0;
170168
k=1 <<7;
@@ -183,9 +181,8 @@ printtup(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
183181
if (k!= (1 <<7))/* flush last partial byte */
184182
pq_sendint(&buf,j,1);
185183

186-
/* ----------------
187-
*send the attributes of this tuple
188-
* ----------------
184+
/*
185+
* send the attributes of this tuple
189186
*/
190187
for (i=0;i<natts;++i)
191188
{
@@ -357,16 +354,14 @@ printtup_internal(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
357354
if (myState->attrinfo!=typeinfo||myState->nattrs!=natts)
358355
printtup_prepare_info(myState,typeinfo,natts);
359356

360-
/* ----------------
361-
*tell the frontend to expect new tuple data (in binary style)
362-
* ----------------
357+
/*
358+
* tell the frontend to expect new tuple data (in binary style)
363359
*/
364360
pq_beginmessage(&buf);
365361
pq_sendbyte(&buf,'B');
366362

367-
/* ----------------
368-
*send a bitmap of which attributes are not null
369-
* ----------------
363+
/*
364+
* send a bitmap of which attributes are not null
370365
*/
371366
j=0;
372367
k=1 <<7;
@@ -385,9 +380,8 @@ printtup_internal(HeapTuple tuple, TupleDesc typeinfo, DestReceiver *self)
385380
if (k!= (1 <<7))/* flush last partial byte */
386381
pq_sendint(&buf,j,1);
387382

388-
/* ----------------
389-
*send the attributes of this tuple
390-
* ----------------
383+
/*
384+
* send the attributes of this tuple
391385
*/
392386
#ifdefIPORTAL_DEBUG
393387
fprintf(stderr,"sending tuple with %d atts\n",natts);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp