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