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
Bruce Momjian
05584c9660
Code cleanup.
2001-10-25 06:27:56 +00:00
Bruce Momjian
59da2105d8
Update to prevent CATALOG() from wrapping.
2001-10-25 05:07:56 +00:00
Bruce Momjian
bbc7491de1
Add current typedef symbols to pgindent.
2001-10-25 03:56:35 +00:00
Bruce Momjian
3fb3678409
Create pgjindent for java.
2001-09-07 21:25:44 +00:00
Bruce Momjian
5840db21fb
Add back incremental patch for BSD indent.
2001-09-04 03:34:42 +00:00
Bruce Momjian
e5390263ed
Add patch for 0LL for BSD indent/pgindent.
2001-09-03 23:11:20 +00:00
Bruce Momjian
398b41a23f
pgindent fix for asterisk indented too much in return type, for Tom.
2001-06-06 20:51:31 +00:00
Bruce Momjian
a62c19e4ec
Fix for comments at top of functions.
2001-05-22 17:24:58 +00:00
Bruce Momjian
e7f47ed5b4
Pgindent fixes for Tom, mostly indenting problems.
2001-05-22 01:28:16 +00:00
Bruce Momjian
8266e8a84b
OK, now pgindent has blank lines before comment blocks, except when
...
there is a brace on the line above it.
2001-05-17 16:11:08 +00:00
Bruce Momjian
2d7795ebb4
Prevent forced blank line before comment block in pgindent.
2001-05-17 15:55:24 +00:00
Bruce Momjian
1e7b79cebc
Remove unused tables pg_variable, pg_inheritproc, pg_ipl tables. Initdb
...
forced.
2001-05-14 20:30:21 +00:00
Bruce Momjian
281b7d84fc
Add // -> /* */ mapping to pgindent.
2001-02-12 18:30:53 +00:00
Bruce Momjian
3152ef63a6
Source alignment cleanups.
2001-02-11 05:58:41 +00:00
Bruce Momjian
a952c79b23
More updates.
2001-02-11 05:15:25 +00:00
Bruce Momjian
26dc50141b
More cleanup.
2001-02-11 05:13:52 +00:00
Bruce Momjian
755a87332a
Run pgindent over ODBC source. We couldn't do this years ago because we
...
weren't the master source. We are now, and it really needs it.
2001-02-10 07:01:19 +00:00
Bruce Momjian
398bb1fcb6
Update pgindent
2000-04-12 01:01:49 +00:00
Bruce Momjian
83a57694d1
Update pgindent
2000-04-11 22:15:08 +00:00
Bruce Momjian
862d677682
Update pgindent for 7.0 release
2000-04-11 19:09:04 +00:00
Bruce Momjian
7acc237744
This patch implements ORACLE's COMMENT SQL command.
...
>From the ORACLE 7 SQL Language Reference Manual:
-----------------------------------------------------
COMMENT
Purpose:
To add a comment about a table, view, snapshot, or
column into the data dictionary.
Prerequisites:
The table, view, or snapshot must be in your own
schema
or you must have COMMENT ANY TABLE system privilege.
Syntax:
COMMENT ON [ TABLE table ] |
[ COLUMN table.column] IS 'text'
You can effectively drop a comment from the database
by setting it to the empty string ''.
-----------------------------------------------------
Example:
COMMENT ON TABLE workorders IS
'Maintains base records for workorder information';
COMMENT ON COLUMN workorders.hours IS
'Number of hours the engineer worked on the task';
to drop a comment:
COMMENT ON COLUMN workorders.hours IS '';
The current patch will simply perform the insert into
pg_description, as per the TODO. And, of course, when
the table is dropped, any comments relating to it
or any of its attributes are also dropped. I haven't
looked at the ODBC source yet, but I do know from
an ODBC client standpoint that the standard does
support the notion of table and column comments.
Hopefully the ODBC driver is already fetching these
values from pg_description, but if not, it should be
trivial.
Hope this makes the grade,
Mike Mascari
(mascarim@yahoo.com )
1999-10-15 01:49:49 +00:00
Bruce Momjian
e7cad7b0cb
Add TRUNCATE command, with psql help and sgml additions.
1999-09-23 17:03:39 +00:00
Bruce Momjian
c1d5e88b41
Make pgindent gnu test better.
1999-09-09 19:39:06 +00:00
Bruce Momjian
9c56b408c4
Add fix for 0x7fU constants to pgindent
1999-05-26 15:20:04 +00:00
Bruce Momjian
fcff1cdf4e
Another pgindent run. Sorry folks.
1999-05-25 22:43:53 +00:00
Bruce Momjian
07842084fe
pgindent run over code.
1999-05-25 16:15:34 +00:00
Bruce Momjian
8849655d24
I agree. I think, though, that the best argument presented in the
...
debate was from Paul Vixie, who wanted INET to be the name covering
both IPV4 and IPV6. The following kit makes the needed changes:
Tom Ivar Helbekkmo
1998-10-08 00:19:47 +00:00
Bruce Momjian
2d69fd90b9
Integrate new IP type from Tom Ivar Helbekkmo.
1998-10-03 05:41:01 +00:00
Bruce Momjian
f1ab71ec5f
The attached patches fix the following problems:
...
1. The UnixWare tas macro was reformatted (by indent or it like?) which caused
it to break. The asm macro construct is very particular about the %mem
construct -- it has to start in column 1.
2. When compiling libpq++, g++ was used even if configure found the C++ com-
piler to be CC.
3. When compiling libpq++, '-Wno-error' was added to CXXFLAGS, even if the
compiler wasn't g++.
Billy G. Allie
1998-09-11 16:56:24 +00:00
Bruce Momjian
fa1a8d6a97
OK, folks, here is the pgindent output.
1998-09-01 04:40:42 +00:00
Bruce Momjian
7971539020
heap_fetch requires buffer pointer, must be released; heap_getnext
...
no longer returns buffer pointer, can be gotten from scan;
descriptor; bootstrap can create multi-key indexes;
pg_procname index now is multi-key index; oidint2, oidint4, oidname
are gone (must be removed from regression tests); use System Cache
rather than sequential scan in many places; heap_modifytuple no
longer takes buffer parameter; remove unused buffer parameter in
a few other functions; oid8 is not index-able; remove some use of
single-character variable names; cleanup Buffer variables usage
and scan descriptor looping; cleaned up allocation and freeing of
tuples; 18k lines of diff;
1998-08-19 02:04:17 +00:00
Bruce Momjian
addddea313
Update pgindent.
1998-08-09 17:57:31 +00:00
Bruce Momjian
a08dc16c47
New pgindent.
1998-08-09 04:59:10 +00:00
Bruce Momjian
56bdbe1f4c
Add remove extra braces code to pgindent.
1998-06-15 20:45:57 +00:00
Bruce Momjian
0d203b745d
Re-apply Darren's char2-16 removal code.
1998-04-26 04:12:15 +00:00
Bruce Momjian
db21523314
Back out char2-char16 removal. Add later.
1998-04-07 18:14:38 +00:00
Bruce Momjian
57b5966405
The following uuencoded, gzip'd file will ...
...
1. Remove the char2, char4, char8 and char16 types from postgresql
2. Change references of char16 to name in the regression tests.
3. Rename the char16.sql regression test to name.sql. 4. Modify
the regression test scripts and outputs to match up.
Might require new regression.{SYSTEM} files...
Darren King
1998-03-30 17:28:21 +00:00
Bruce Momjian
748fab8d5d
Prevent pgindent from being run on odbc in the future.
1998-03-28 02:24:49 +00:00
Bruce Momjian
d067f83b27
pgindent changes for Thomas proc/lock cleanup
1998-02-25 00:31:23 +00:00
Marc G. Fournier
ba0b03de2e
Let's hope this fixes the "bug" that was introduced
1997-09-13 16:27:13 +00:00