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

Commita5d7ba7

Browse files
committed
Adjust comments previously moved to column 1 by pgident.
1 parent9da50e1 commita5d7ba7

File tree

22 files changed

+45
-47
lines changed

22 files changed

+45
-47
lines changed

‎contrib/dbase/dbf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ dbf_put_record(dbhead * dbh, field * rec, u_long where)
505505
if (write(dbh->db_fd,data,dbh->db_rlen)!=dbh->db_rlen)
506506
returnDBF_ERROR;
507507

508-
/* There's a 0x1A at the end of a dbf-file */
508+
/* There's a 0x1A at the end of a dbf-file */
509509
if (where==dbh->db_records)
510510
{
511511
if (write(dbh->db_fd,&end,1)!=1)

‎contrib/fuzzystrmatch/dmetaphone.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848

4949

5050
/*
51-
* $Revision: 1.3 $
52-
* $Id: dmetaphone.c,v 1.3 2004/08/29 05:06:35 momjian Exp $
51+
* $Revision: 1.4 $
52+
* $Id: dmetaphone.c,v 1.4 2004/10/07 15:21:49 momjian Exp $
5353
*/
5454

5555

@@ -950,7 +950,7 @@ DoubleMetaphone(char *str, char **codes)
950950
current+=2;
951951
}
952952
else
953-
/* also takes care of 'HH' */
953+
/* also takes care of 'HH' */
954954
current+=1;
955955
break;
956956

‎contrib/intagg/int_aggregate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ int_enum(PG_FUNCTION_ARGS)
229229
pc->num=0;
230230
}
231231
else
232-
/* use an existing one */
232+
/* use an existing one */
233233
pc= (CTX*)fcinfo->context;
234234
/* Are we done yet? */
235235
if (pc->num >=pc->p->items)
@@ -242,7 +242,7 @@ int_enum(PG_FUNCTION_ARGS)
242242
rsi->isDone=ExprEndResult;
243243
}
244244
else
245-
/* nope, return the next value */
245+
/* nope, return the next value */
246246
{
247247
intval=pc->p->array[pc->num++];
248248

‎contrib/spi/refint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
495495

496496
}
497497
else
498-
/* DELETE */
498+
/* DELETE */
499499
snprintf(sql,sizeof(sql),"delete from %s where ",relname);
500500

501501
}

‎contrib/spi/timetravel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ timetravel(PG_FUNCTION_ARGS)
233233
/* end of INSERT */
234234
}
235235

236-
/* UPDATE/DELETE: */
236+
/* UPDATE/DELETE: */
237237
oldtimeon=SPI_getbinval(trigtuple,tupdesc,attnum[a_time_on],&isnull);
238238
if (isnull)
239239
elog(ERROR,"timetravel (%s): %s must be NOT NULL",relname,args[a_time_on]);
@@ -402,7 +402,7 @@ timetravel(PG_FUNCTION_ARGS)
402402
/* SPI_pfree(tmptuple); */
403403
}
404404
else
405-
/* DELETE case */
405+
/* DELETE case */
406406
rettuple=trigtuple;
407407

408408
SPI_finish();/* don't forget say Bye to SPI mgr */

‎contrib/tablefunc/tablefunc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ normal_rand(PG_FUNCTION_ARGS)
260260
SRF_RETURN_NEXT(funcctx,Float8GetDatum(result));
261261
}
262262
else
263-
/* do when there is no more left */
263+
/* do when there is no more left */
264264
SRF_RETURN_DONE(funcctx);
265265
}
266266

@@ -643,7 +643,7 @@ crosstab(PG_FUNCTION_ARGS)
643643
}
644644
}
645645
else
646-
/* do when there is no more left */
646+
/* do when there is no more left */
647647
{
648648
/* release SPI related resources */
649649
SPI_finish();

‎contrib/xml2/xslt_proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ xslt_process(PG_FUNCTION_ARGS)
6565
parse_params(params,paramstr);
6666
}
6767
else
68-
/* No parameters */
68+
/* No parameters */
6969
params[0]=NULL;
7070

7171
/* Setup parser */

‎src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.170 2004/09/16 16:58:26 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.171 2004/10/07 15:21:51 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -4306,7 +4306,7 @@ StartupXLOG(void)
43064306
ereport(FATAL,
43074307
(errmsg("requested recovery stop point is before end time of backup dump")));
43084308
else
4309-
/* ran off end of WAL */
4309+
/* ran off end of WAL */
43104310
ereport(FATAL,
43114311
(errmsg("WAL ends before end time of backup dump")));
43124312
}

‎src/backend/commands/typecmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.63 2004/08/29 05:06:41 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.64 2004/10/07 15:21:52 momjian Exp $
1212
*
1313
* DESCRIPTION
1414
* The "DefineFoo" routines take the parse tree and pick out the
@@ -1222,7 +1222,7 @@ AlterDomainDefault(List *names, Node *defaultRaw)
12221222
new_record_repl[Anum_pg_type_typdefault-1]='r';
12231223
}
12241224
else
1225-
/* Default is NULL, drop it */
1225+
/* Default is NULL, drop it */
12261226
{
12271227
new_record_nulls[Anum_pg_type_typdefaultbin-1]='n';
12281228
new_record_repl[Anum_pg_type_typdefaultbin-1]='r';

‎src/backend/optimizer/geqo/geqo_ox2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* OX2 operator according to Syswerda
77
* (The Genetic Algorithms Handbook, ed L Davis)
88
*
9-
* $PostgreSQL: pgsql/src/backend/optimizer/geqo/geqo_ox2.c,v 1.9 2003/11/29 22:39:49 pgsql Exp $
9+
* $PostgreSQL: pgsql/src/backend/optimizer/geqo/geqo_ox2.c,v 1.10 2004/10/07 15:21:52 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -102,7 +102,7 @@ ox2(Gene *tour1, Gene *tour2, Gene *offspring, int num_gene, City *city_table)
102102
select++;/* next city in the select list */
103103
}
104104
else
105-
/* city isn't used yet, so inherit from tour2 */
105+
/* city isn't used yet, so inherit from tour2 */
106106
offspring[k]=tour2[k];
107107
}
108108

‎src/backend/utils/adt/acl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.111 2004/08/29 05:06:49 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.112 2004/10/07 15:21:53 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1205,7 +1205,7 @@ makeaclitem(PG_FUNCTION_ARGS)
12051205
ACLITEM_SET_IDTYPE(*aclitem,ACL_IDTYPE_UID);
12061206
}
12071207
else
1208-
/* (g_grantee != 0) */
1208+
/* (g_grantee != 0) */
12091209
{
12101210
aclitem->ai_grantee=g_grantee;
12111211

‎src/backend/utils/adt/inet_net_pton.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
1515
* SOFTWARE.
1616
*
17-
* $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_pton.c,v 1.18 2003/11/29 19:51:58 pgsql Exp $
17+
* $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_pton.c,v 1.19 2004/10/07 15:21:53 momjian Exp $
1818
*/
1919

2020
#include"postgres.h"
@@ -206,7 +206,7 @@ inet_cidr_pton_ipv4(const char *src, u_char *dst, size_t size)
206206
elseif (*odst >=128)/* Class B */
207207
bits=16;
208208
else
209-
/* Class A */
209+
/* Class A */
210210
bits=8;
211211
/* If imputed mask is narrower than specified octets, widen. */
212212
if (bits >=8&&bits< ((dst-odst)*8))

‎src/backend/utils/adt/rowtypes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/rowtypes.c,v 1.6 2004/08/29 05:06:49 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/rowtypes.c,v 1.7 2004/10/07 15:21:53 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -146,7 +146,7 @@ record_in(PG_FUNCTION_ARGS)
146146
if (*ptr==',')
147147
ptr++;
148148
else
149-
/* *ptr must be ')' */
149+
/* *ptr must be ')' */
150150
ereport(ERROR,
151151
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
152152
errmsg("malformed record literal: \"%s\"",string),

‎src/backend/utils/error/elog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*
4343
*
4444
* IDENTIFICATION
45-
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.151 2004/09/22 03:55:26 neilc Exp $
45+
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.152 2004/10/07 15:21:54 momjian Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -1972,7 +1972,7 @@ write_stderr(const char *fmt,...)
19721972
write_eventlog(EVENTLOG_ERROR_TYPE,errbuf);
19731973
}
19741974
else
1975-
/* Not running as service, write to stderr */
1975+
/* Not running as service, write to stderr */
19761976
vfprintf(stderr,fmt,ap);
19771977
#endif
19781978
va_end(ap);

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.31 2004/09/02 20:07:50 tgl Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.32 2004/10/07 15:21:55 momjian Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -172,7 +172,7 @@ write_stderr(const char *fmt,...)
172172
write_eventlog(EVENTLOG_ERROR_TYPE,errbuf);
173173
}
174174
else
175-
/* Not running as service, write to stderr */
175+
/* Not running as service, write to stderr */
176176
vfprintf(stderr,fmt,ap);
177177
#endif
178178
va_end(ap);
@@ -777,7 +777,7 @@ do_status(void)
777777
fprintf(stdout,_("%s: a standalone backend \"postgres\" is running (PID: %ld)\n"),progname,pid);
778778
}
779779
else
780-
/* postmaster */
780+
/* postmaster */
781781
{
782782
char**optlines;
783783

@@ -1285,7 +1285,7 @@ main(int argc, char **argv)
12851285
if (strchr(optarg,'\\'))
12861286
register_username=xstrdup(optarg);
12871287
else
1288-
/* Prepend .\ for local accounts */
1288+
/* Prepend .\ for local accounts */
12891289
{
12901290
register_username=malloc(strlen(optarg)+3);
12911291
if (!register_username)

‎src/bin/pg_dump/pg_backup_tar.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
*
1818
* IDENTIFICATION
19-
*$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.44 2004/08/29 05:06:53 momjian Exp $
19+
*$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.45 2004/10/07 15:21:55 momjian Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
@@ -340,7 +340,7 @@ tarOpen(ArchiveHandle *AH, const char *filename, char mode)
340340
* Future: DO SEEK(0) and retry. */
341341
die_horribly(AH,modulename,"could not find file %s in archive\n",filename);
342342
else
343-
/* Any file OK, non left, so return NULL */
343+
/* Any file OK, non left, so return NULL */
344344
returnNULL;
345345
}
346346

@@ -1104,7 +1104,7 @@ _tarPositionTo(ArchiveHandle *AH, const char *filename)
11041104
if (filename)
11051105
die_horribly(AH,modulename,"could not find header for file %s in tar archive\n",filename);
11061106
else
1107-
/* We're just scanning the archibe for the next file, so return null */
1107+
/* We're just scanning the archibe for the next file, so return null */
11081108
{
11091109
free(th);
11101110
returnNULL;

‎src/bin/psql/command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.125 2004/08/29 05:06:54 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.126 2004/10/07 15:21:56 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"command.h"
@@ -982,7 +982,7 @@ do_connect(const char *new_dbname, const char *new_user)
982982
elseif (dbparam!=new_dbname)/* no new db */
983983
printf(gettext("You are now connected as new user \"%s\".\n"),new_user);
984984
else
985-
/* both new */
985+
/* both new */
986986
printf(gettext("You are now connected to database \"%s\" as user \"%s\".\n"),
987987
PQdb(pset.db),PQuser(pset.db));
988988
}

‎src/include/executor/execdebug.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/executor/execdebug.h,v 1.23 2004/08/29 04:13:06 momjian Exp $
10+
* $PostgreSQL: pgsql/src/include/executor/execdebug.h,v 1.24 2004/10/07 15:21:56 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -128,7 +128,7 @@ extern intNIndexTupleInserted;
128128
#defineIncrIndexProcessed()NIndexTupleProcessed++
129129
#defineIncrIndexInserted()NIndexTupleInserted++
130130
#else
131-
/*stop compiler warnings */
131+
/*stop compiler warnings */
132132
#defineIncrRetrieved()(void)(0)
133133
#defineIncrAppended()(void)(0)
134134
#defineIncrDeleted()(void)(0)

‎src/pl/plperl/plperl.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* ENHANCEMENTS, OR MODIFICATIONS.
3434
*
3535
* IDENTIFICATION
36-
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.52 2004/10/06 16:36:02 momjian Exp $
36+
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.53 2004/10/07 15:21:57 momjian Exp $
3737
*
3838
**********************************************************************/
3939

@@ -1150,8 +1150,7 @@ plperl_func_handler(PG_FUNCTION_ARGS)
11501150

11511151
}
11521152
else
1153-
/* perl string to Datum */
1154-
1153+
/* perl string to Datum */
11551154
retval=FunctionCall3(&prodesc->result_in_func,
11561155
PointerGetDatum(SvPV(perlret,PL_na)),
11571156
ObjectIdGetDatum(prodesc->result_typioparam),

‎src/port/exec.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/port/exec.c,v 1.28 2004/09/27 23:58:09 momjian Exp $
10+
* $PostgreSQL: pgsql/src/port/exec.c,v 1.29 2004/10/07 15:21:57 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -277,8 +277,7 @@ find_my_exec(const char *argv0, char *retpath)
277277
log_error("could not find a \"%s\" to execute",argv0);
278278
return-1;
279279

280-
#if0
281-
280+
#ifNOT_USED
282281
/*
283282
* Win32 has a native way to find the executable name, but the above
284283
* method works too.

‎src/port/getopt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const char *ostr;
119119
returnBADCH;
120120
}
121121
else
122-
/* white space */
122+
/* white space */
123123
optarg=nargv[optind];
124124
place=EMSG;
125125
++optind;

‎src/test/regress/regress.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/src/test/regress/regress.c,v 1.60 2004/04/0121:28:47 tgl Exp $
2+
* $PostgreSQL: pgsql/src/test/regress/regress.c,v 1.61 2004/10/07 15:21:58 momjian Exp $
33
*/
44

55
#include"postgres.h"
@@ -586,7 +586,7 @@ ttdummy(PG_FUNCTION_ARGS)
586586
cnulls[attnum[1]-1]=' ';
587587
}
588588
else
589-
/* DELETE */
589+
/* DELETE */
590590
{
591591
cvals[attnum[1]-1]=newoff;/* stop_date eq current date */
592592
cnulls[attnum[1]-1]=' ';
@@ -641,7 +641,7 @@ ttdummy(PG_FUNCTION_ARGS)
641641
SPI_freetuple(tmptuple);
642642
}
643643
else
644-
/* DELETE */
644+
/* DELETE */
645645
rettuple=trigtuple;
646646

647647
SPI_finish();/* don't forget say Bye to SPI mgr */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp