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

Commitaac96b8

Browse files
committed
Fix pgindent of libpq-fe.h by hacking pgindent script.
Remove pgbench comment that was causing problems.
1 parentce1d829 commitaac96b8

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

‎contrib/pgbench/pgbench.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.46 2005/11/22 18:17:04 momjian Exp $
2+
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.47 2005/11/23 04:23:28 momjian Exp $
33
*
44
* pgbench: a simple benchmark program for PostgreSQL
55
* written by Tatsuo Ishii
@@ -1110,8 +1110,7 @@ main(int argc, char **argv)
11101110
fprintf(stderr,"Use limit/ulimt to increase the limit before using pgbench.\n");
11111111
exit(1);
11121112
}
1113-
#endif/* #if !(defined(__CYGWIN__) ||
1114-
* defined(__MINGW32__)) */
1113+
#endif
11151114
break;
11161115
case'C':
11171116
is_connect=1;

‎src/interfaces/libpq/libpq-fe.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.121 2005/11/22 18:17:33 momjian Exp $
10+
* $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.122 2005/11/23 04:23:28 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -35,7 +35,7 @@ extern"C"
3535

3636
/* Application-visible enum types */
3737

38-
typedefenum
38+
typedefenum
3939
{
4040
/*
4141
* Although it is okay to add to this list, values which become unused

‎src/tools/pgindent/pgindent

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,6 +1993,14 @@ do
19931993
}
19941994
elseprint $0;
19951995
}'|
1996+
# fix indenting of typedef caused by __cplusplus in libpq-fe.h
1997+
(
1998+
ifecho"$FILE"| grep -q'libpq-fe.h$'
1999+
thensed's/^[]*typedef enum/typedef enum/'
2000+
elsecat
2001+
fi
2002+
)|
2003+
# end
19962004
cat>/tmp/$$&& cat /tmp/$$>"$FILE"
19972005
done
19982006

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp