diff options
| author | Bruce Momjian | 2005-11-23 04:23:30 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2005-11-23 04:23:30 +0000 |
| commit | aac96b899490c4d23204660b3b6d47e3dd4d918c (patch) | |
| tree | e6cfaddb86dcdd5f83c80d3234012a59f7b7f1b6 /src/tools | |
| parent | ce1d8293f0bd218ec33e5876621d30509496701f (diff) | |
Fix pgindent of libpq-fe.h by hacking pgindent script.
Remove pgbench comment that was causing problems.
Diffstat (limited to 'src/tools')
| -rwxr-xr-x | src/tools/pgindent/pgindent | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent index 887189ead6..530c6d2703 100755 --- a/src/tools/pgindent/pgindent +++ b/src/tools/pgindent/pgindent @@ -1993,6 +1993,14 @@ do } else print $0; }' | +# fix indenting of typedef caused by __cplusplus in libpq-fe.h + ( + if echo "$FILE" | grep -q 'libpq-fe.h$' + then sed 's/^[ ]*typedef enum/typedef enum/' + else cat + fi + ) | +# end cat >/tmp/$$ && cat /tmp/$$ >"$FILE" done |
