Skip to content

Commit aac96b8

Browse files
committed
Fix pgindent of libpq-fe.h by hacking pgindent script.
Remove pgbench comment that was causing problems.
1 parent ce1d829 commit aac96b8

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-
typedef enum
38+
typedef enum
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
else print $0;
19951995
}' |
1996+
# fix indenting of typedef caused by __cplusplus in libpq-fe.h
1997+
(
1998+
if echo "$FILE" | grep -q 'libpq-fe.h$'
1999+
then sed 's/^[ ]*typedef enum/typedef enum/'
2000+
else cat
2001+
fi
2002+
) |
2003+
# end
19962004
cat >/tmp/$$ && cat /tmp/$$ >"$FILE"
19972005
done
19982006

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy