Commit Graph

190 Commits

Author SHA1 Message Date
Peter Eisentraut
3f11971916 Remove extra newlines at end and beginning of files, add missing newlines
at end of files.
2010-08-19 05:57:36 +00:00
Bruce Momjian
9e15b476de Mention why one C file fails pgindent. 2010-07-06 19:26:28 +00:00
Bruce Momjian
52783b212c Update pgindent testing instructions. 2010-07-06 19:18:19 +00:00
Andrew Dunstan
7004434a46 Exclude unwanted typedef symbols in pgindent, including FD_SET which is found on some Windows platforms. Also, silence unnecessary messages and make awk happier about literal '*' on some platforms. 2010-04-05 03:09:09 +00:00
Andrew Dunstan
799c0d3f65 Use a file of patterns of filenames to exclude from pgindent runs, instead if using multiple invocations of egrep. Add perl ppport.h to the current list. 2010-04-01 14:44:39 +00:00
Bruce Momjian
4b0f822c77 Suggest gmake installcheck-world for pgindent testing. 2010-02-26 18:00:15 +00:00
Bruce Momjian
2cc6ff45f8 Revert pgindent changes to ecpg include files that are part of ecpg
regession test output, and update pgindent script to avoid them in the
future.
2010-02-26 17:07:55 +00:00
Bruce Momjian
98c356c8ad Wording improvements to README. 2010-02-26 15:57:34 +00:00
Bruce Momjian
55d1402f61 Update pgindent docs to use maintainer-clean. 2010-02-26 15:42:36 +00:00
Bruce Momjian
e0d4b9c66f Document why pgindent wants a fresh CVS checkout. 2010-02-26 13:50:34 +00:00
Bruce Momjian
637611585b Call output file typedefs.list; update README. 2010-02-26 02:58:49 +00:00
Bruce Momjian
4f96ddd1d3 Update pgindent instructions. 2010-02-26 02:11:52 +00:00
Bruce Momjian
16040575a0 Add pgindent typedefs file to CVS. 2010-02-26 01:55:35 +00:00
Bruce Momjian
a8307560e0 Update pgindent instructions to avoid changes to flex output files. 2010-02-26 01:40:15 +00:00
Bruce Momjian
6e8d957d35 Document struct/union problem with pgindent. 2009-06-11 22:21:44 +00:00
Bruce Momjian
6c4b3f5f8c Update pgindent instructions. 2009-06-10 01:51:44 +00:00
Bruce Momjian
78f3c3906e Document new location for typedef list. 2009-06-10 01:47:59 +00:00
Bruce Momjian
06c22d7f51 Small shell syntax improvement. 2008-11-03 15:56:47 +00:00
Bruce Momjian
d18f5c3eb0 Ignore blank lines in typedef file. 2008-04-16 21:03:08 +00:00
Bruce Momjian
fca9fff41b More README src cleanups. 2008-03-21 13:23:29 +00:00
Peter Eisentraut
79a323ab49 Change /contrib to contrib for consistency. 2008-01-24 06:23:33 +00:00
Bruce Momjian
bfde21a1a8 Improve usage message for pgindent. 2008-01-16 20:13:44 +00:00
Bruce Momjian
7b009a2a9d Modify pgindent to use an external typedefs file rather than included
list.

Remove pgjindent.
2007-12-21 14:20:36 +00:00
Bruce Momjian
812bf6984b Mention use all configure options when getting pgindent typedefs. 2007-12-17 02:02:48 +00:00
Bruce Momjian
55cfdd4400 Mention installing /contrib libraries for pgindent. 2007-12-17 01:56:43 +00:00
Bruce Momjian
d6fda1b0bb Better guard token used by pgindent. 2007-11-16 01:25:15 +00:00
Bruce Momjian
0c2c061eb0 Cleanup for new else/comment handling. 2007-11-16 01:11:04 +00:00
Bruce Momjian
7d4c99b414 Fix pgindent to properly handle 'else' and single-line comments on the
same line;  previous fix was only partial.  Re-run pgindent on files
that need it.
2007-11-15 23:23:44 +00:00
Bruce Momjian
da0b2cdff8 Beef up README instructions, again. 2007-11-15 22:15:46 +00:00
Bruce Momjian
6c8f69cd58 CUpdate README to suggest 'gmake distclean'. Add library typedefs. 2007-11-15 22:12:09 +00:00
Bruce Momjian
2a754d70d7 Update pgtools README to be clearer about typdefs. 2007-11-15 22:09:07 +00:00
Bruce Momjian
ab895f3b40 Update pgindent with current typedefs. 2007-11-15 22:06:07 +00:00
Bruce Momjian
1f735c32b2 Add blank lines to pgindent. 2007-11-15 21:52:39 +00:00
Tom Lane
5c681ab1cb Exclude snowball/libstemmer/ files from the set processed by pgindent.
There's not much point in prettifying machine-generated code, and it
seems best to keep these files exactly like upstream anyway.  Also add
some notes about why various files are excluded.
2007-08-21 16:08:23 +00:00
Bruce Momjian
7accb29478 Clean up pgindent handling of comments after 'else' by only moving
multi-line comments to the next line.
2006-12-27 23:03:52 +00:00
Bruce Momjian
abcf7603c0 Exclude pgindent from affecting the ecpg regression directory. 2006-10-04 20:42:19 +00:00
Bruce Momjian
451e419e98 Udpate typedefs for pgindent. 2006-10-04 00:02:10 +00:00
Bruce Momjian
eff77a759a Update typedef list for 8.2 pgindent run. 2006-10-03 22:09:42 +00:00
Bruce Momjian
f3d99d160d Add CVS tag lines to files that were lacking them. 2006-03-11 04:38:42 +00:00
Bruce Momjian
aac96b8994 Fix pgindent of libpq-fe.h by hacking pgindent script.
Remove pgbench comment that was causing problems.
2005-11-23 04:23:30 +00:00
Bruce Momjian
62fb1d6028 Prevent certain symbols that are used for both typedefs and variable
names from being added to pgindent's typedef list.  The existance of
them caused weird formatting in the date/type files, and in keywords.c.

Backpatch to 8.1.X.
2005-11-15 14:45:10 +00:00
Bruce Momjian
02c43ffbec Fix recent problems with BSD indent, including indenting past 80
columns, shifting comment to the right when more than 150 'else if'
clauses were used, and update typedefs for 8.1.X.

NetBSD patched updated, with documentation.
2005-11-15 00:43:01 +00:00
Bruce Momjian
19cb457146 Revert pgindent length back to 79 because we are going to fix the BSD
indent bug.
2005-11-13 02:38:49 +00:00
Bruce Momjian
6521ea008e Lower pgident length to 77, document BSD indent bug. 2005-11-07 23:50:20 +00:00
Bruce Momjian
aaf8cb0c72 Change maximum pgindent length from 79 to 78, per Tom. 2005-11-07 22:52:41 +00:00
Bruce Momjian
790c01d280 Update pgindent typedef list. 2005-10-15 02:14:22 +00:00
Alvaro Herrera
a84429a1aa Remove an unused typedef. 2005-10-07 14:55:36 +00:00
Bruce Momjian
505b925276 Fix #elif spacing too. 2005-07-13 15:59:32 +00:00
Bruce Momjian
5d0a43c585 Fix pgindent to not have blank line before #else in variable definition
section of a function.
2005-07-13 04:44:42 +00:00
Bruce Momjian
7690b41328 Add backslashes to parentheses in awk regex because if not, they are
treated as regex groups.
2005-07-13 04:00:28 +00:00
Bruce Momjian
b3d06e5a95 Update typedefs for pgindent. 2005-06-28 23:55:30 +00:00
Bruce Momjian
249802725d Change awk ~ pattern from "" to //.
Remove extra backslash in pattern.  Luke Lonergan
2005-06-28 23:16:33 +00:00
Bruce Momjian
cdc84adbdb Indent comment pushed to new line by else so it is indented by BSD
indent.
2004-10-07 14:15:50 +00:00
Bruce Momjian
8a28f50f8a Improve pgindent processing of comment after 'else'.
Improve comment of pg_dump Win32 link workaround.
2004-10-07 13:45:51 +00:00
Bruce Momjian
4e28b08e53 Improve comment after 'else' handling of pgindent. 2004-10-07 02:32:06 +00:00
Bruce Momjian
b3f2b19218 Update length from 75 to 79. 2004-10-02 01:10:58 +00:00
Bruce Momjian
409de6be6c Re-add brace removal code but comment it out so we know why we removed
it and have it in case we need it for some special case.
2004-09-12 22:21:30 +00:00
Bruce Momjian
47402a9b00 Remove code that delete braces around single statements. 2004-09-12 22:11:27 +00:00
Bruce Momjian
15d3f9f6b7 Another pgindent run with lib typedefs added. 2004-08-30 02:54:42 +00:00
Bruce Momjian
ee66401f31 Update typedefs with /lib info. 2004-08-29 17:31:42 +00:00
Bruce Momjian
90cb9c3051 Update with new typedefs. Remove java and c++ parts of readme. 2004-08-29 04:49:45 +00:00
Bruce Momjian
e3107b2844 Mention grabbing typedefs from pgsql/lib too. 2004-01-04 00:11:29 +00:00
Bruce Momjian
a994d5984f Adjust pgindent for newer awks.
Nigel J. Andrews
2003-09-28 00:25:22 +00:00
Bruce Momjian
b4ca39b956 Allow pgindent to work with newer BSD indents. 2003-09-28 00:22:58 +00:00
Bruce Momjian
16e4adc38f Update bsd indent patch. 2003-09-27 21:26:09 +00:00
Bruce Momjian
ee84100cc1 Cleanup pgindent patch. 2003-09-27 21:19:47 +00:00
Bruce Momjian
5a288903b9 Guard against pgindent changing =- to = -. 2003-08-30 14:59:34 +00:00
Bruce Momjian
0e2b12bd96 pgindent fix for new typedefs. 2003-08-08 21:25:06 +00:00
Bruce Momjian
c7fda55cc6 Update pgindent readme. 2003-08-07 15:02:43 +00:00
Bruce Momjian
78154363f9 Update typedef names for pgindent 7.4. 2003-08-07 05:18:14 +00:00
Bruce Momjian
4490c7b14b Update symbols for 7.3. 2002-09-04 19:11:06 +00:00
Bruce Momjian
2355482e28 Update for 7.3 typedefs. 2002-09-04 19:00:01 +00:00
Bruce Momjian
af3cf2cfa8 Update to reflect Tom's suggestions. 2002-09-04 18:45:52 +00:00
Bruce Momjian
d54ae2aff2 Add C++ indent tool. 2002-06-15 19:13:04 +00:00
Bruce Momjian
09634eafe1 Indent jdbc case labels using pgjindent. 2001-11-19 23:16:46 +00:00
Bruce Momjian
46d50783bf Update pgindent README so it gets *.java.in files. 2001-11-19 22:36:11 +00:00
Bruce Momjian
876c7009fb Make extern C handling more flexible. 2001-11-08 17:03:23 +00:00
Bruce Momjian
c6e25ed1af Fix replacement of extern C string. 2001-11-07 22:10:02 +00:00
Bruce Momjian
1233d4fd6c Fix typo. 2001-11-07 21:29:04 +00:00
Bruce Momjian
e644fc25c7 Prevent indenting of 'extern "C"' blocks. 2001-11-07 21:24:28 +00:00
Bruce Momjian
ea08e6cd55 New pgindent run with fixes suggested by Tom. Patch manually reviewed,
initdb/regression tests pass.
2001-11-05 17:46:40 +00:00
Bruce Momjian
0f450dae8b More cleanup for stuff after closing brace in first column. 2001-11-05 06:37:51 +00:00
Bruce Momjian
d447dbf392 Handle tabs after closing brace in first column with less indenting. 2001-11-05 05:47:50 +00:00
Bruce Momjian
158129be72 Improve readability of script. 2001-11-05 05:18:43 +00:00
Bruce Momjian
3bb110ebb3 Pull in variables defined in structs; had too many tabs. 2001-11-04 21:27:41 +00:00
Bruce Momjian
8ee7c19e3c Require closing paren on line above brace to identify function
difinition, just for formatting workaround, per Tom's discovery.
2001-11-03 22:34:13 +00:00
Bruce Momjian
f008976bcd More updates for GNU indent. 2001-11-03 12:34:15 +00:00
Bruce Momjian
ffba91cd1e Make pgindent use GNU Indent version 2.X better. 2001-11-03 01:49:22 +00:00
Bruce Momjian
04550d3c90 Add check for 'extern "C"' for pgindent. 2001-11-02 23:43:24 +00:00
Bruce Momjian
c41b6b1b9c Fix small problem Tom Lane found with pgindent run. 2001-10-30 05:38:56 +00:00
Bruce Momjian
6783b2372e Another pgindent run. Fixes enum indenting, and improves #endif
spacing.  Also adds space for one-line comments.
2001-10-28 06:26:15 +00:00
Bruce Momjian
c29797deeb Add code to trip trailing newlines in a file. 2001-10-27 13:54:45 +00:00
Bruce Momjian
5ef74fe593 Correct fix for indenting. 2001-10-27 03:31:36 +00:00
Bruce Momjian
b93939a6a7 Adjust NR tests. More accurate. 2001-10-26 17:54:45 +00:00
Bruce Momjian
8c1f4e574b Add code to not indent enum, per Tom Lane. 2001-10-26 16:21:13 +00:00
Bruce Momjian
99a9f2f6f4 Add ODBC typedefs. 2001-10-26 15:42:54 +00:00
Bruce Momjian
80b9a00439 Add blank line before #endif to #endif's at the end of the file. 2001-10-25 19:57:03 +00:00
Bruce Momjian
3231341eed Add slash for comment spacing, for Tom. 2001-10-25 19:22:05 +00:00
Bruce Momjian
81d9a9674e Add comment spaces for trailing ) and comment. 2001-10-25 18:44:42 +00:00
Bruce Momjian
cae059ba5e Add spacing for single-line comments with trailing semicolon _and_
comma, per Tom.
2001-10-25 18:25:23 +00:00