Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0c2c061e
Commit
0c2c061e
authored
Nov 16, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup for new else/comment handling.
parent
eae7e00f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
src/backend/utils/mb/conv.c
src/backend/utils/mb/conv.c
+2
-2
src/bin/psql/mbprint.c
src/bin/psql/mbprint.c
+5
-5
src/tools/pgindent/pgindent
src/tools/pgindent/pgindent
+6
-5
No files found.
src/backend/utils/mb/conv.c
View file @
0c2c061e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/mb/conv.c,v 1.6
4 2007/11/15 23:23:4
4 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/mb/conv.c,v 1.6
5 2007/11/16 01:11:0
4 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
...
src/bin/psql/mbprint.c
View file @
0c2c061e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright (c) 2000-2007, PostgreSQL Global Development Group
* Copyright (c) 2000-2007, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/psql/mbprint.c,v 1.2
7 2007/11/15 23:23:4
4 momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/mbprint.c,v 1.2
8 2007/11/16 01:11:0
4 momjian Exp $
*
*
* XXX this file does not really belong in psql/. Perhaps move to libpq?
* XXX this file does not really belong in psql/. Perhaps move to libpq?
* It also seems that the mbvalidate function is redundant with existing
* It also seems that the mbvalidate function is redundant with existing
...
...
src/tools/pgindent/pgindent
View file @
0c2c061e
#!/bin/sh
#!/bin/sh
# $PostgreSQL: pgsql/src/tools/pgindent/pgindent,v 1.9
4 2007/11/15 23:23:4
4 momjian Exp $
# $PostgreSQL: pgsql/src/tools/pgindent/pgindent,v 1.9
5 2007/11/16 01:11:0
4 momjian Exp $
# Known bugs:
# Known bugs:
#
#
...
@@ -46,9 +46,10 @@ do
...
@@ -46,9 +46,10 @@ do
# 'else' followed by a single-line comment, followed by
# 'else' followed by a single-line comment, followed by
# a brace on the next line confuses BSD indent, so we push
# a brace on the next line confuses BSD indent, so we push
# the comment down to the next line, then later pull it
# the comment down to the next line, then later pull it
# back up again.
# back up again. Add space before PGMV or indent will add
# it for us.
sed
's;\([} ]\)else[ ]*\(/\*\)\(.*\*/\)[ ]*$;\1else\
sed
's;\([} ]\)else[ ]*\(/\*\)\(.*\*/\)[ ]*$;\1else\
\2
PGINDENT_MOVED
\3;g'
|
\2
PGMV
\3;g'
|
# Indent multi-line after-'else' comment so BSD indent will move it properly.
# Indent multi-line after-'else' comment so BSD indent will move it properly.
# We already moved down single-line comments above. Check for '*' to make
# We already moved down single-line comments above. Check for '*' to make
...
@@ -2243,10 +2244,10 @@ do
...
@@ -2243,10 +2244,10 @@ do
{
{
if (NR != 1)
if (NR != 1)
{
{
if ($0 ~ "/\*
PGINDENT_MOVED
")
if ($0 ~ "/\*
PGMV
")
{
{
# remove tag
# remove tag
sub("
PGINDENT_MOVED
", "", $0);
sub("
PGMV
", "", $0);
# remove leading whitespace
# remove leading whitespace
sub("^[ ]*", "", $0);
sub("^[ ]*", "", $0);
# add comment with single tab prefix
# add comment with single tab prefix
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment