mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Remove useless whitespace at end of lines
This commit is contained in:
@ -143,7 +143,7 @@ function:
|
||||
}
|
||||
|
||||
If we wanted to add a third argument:
|
||||
|
||||
|
||||
void print_stuff(int arg1, int arg2, int arg3)
|
||||
{
|
||||
printf("stuff: %d %d %d\n", arg1, arg2, arg3);
|
||||
|
@ -1,4 +1,4 @@
|
||||
src/tools/backend/README
|
||||
|
||||
Just point your browser at the index.html file, and click on the
|
||||
Just point your browser at the index.html file, and click on the
|
||||
flowchart to see the description and source code.
|
||||
|
@ -339,7 +339,7 @@ i.e. '~'.</p>
|
||||
href="../../backend/port">port</a> - compatibility routines</h2>
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
<hr />
|
||||
<small>Maintainer: Bruce Momjian ( <a
|
||||
href="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</a>
|
||||
|
@ -13,7 +13,7 @@ if (@ARGV) {
|
||||
$path = $ARGV[0];
|
||||
shift @ARGV;
|
||||
} else {
|
||||
$path = ".";
|
||||
$path = ".";
|
||||
}
|
||||
|
||||
$[ = 1; # set array base to 1
|
||||
@ -86,7 +86,7 @@ line: while (<GRAM>) {
|
||||
if ($arr[$fieldIndexer] eq '|') {
|
||||
next;
|
||||
}
|
||||
|
||||
|
||||
# Put this keyword into the right list
|
||||
push @{$keywords{$kcat}}, $arr[$fieldIndexer];
|
||||
}
|
||||
|
@ -64,11 +64,11 @@
|
||||
|
||||
(add-hook 'c-mode-hook
|
||||
(function
|
||||
(lambda nil
|
||||
(lambda nil
|
||||
(if (string-match "pgsql" buffer-file-name)
|
||||
(progn
|
||||
(c-set-style "bsd")
|
||||
(setq c-basic-offset 4)
|
||||
(setq c-basic-offset 4)
|
||||
(setq tab-width 4)
|
||||
(c-set-offset 'case-label '+)
|
||||
(setq indent-tabs-mode t)
|
||||
|
@ -4,17 +4,17 @@
|
||||
#
|
||||
TARGET = entab
|
||||
BINDIR = /usr/local/bin
|
||||
XFLAGS =
|
||||
XFLAGS =
|
||||
CFLAGS = -O
|
||||
LIBS =
|
||||
LIBS =
|
||||
|
||||
$(TARGET) : entab.o halt.o
|
||||
$(CC) -o $(TARGET) $(XFLAGS) $(CFLAGS) entab.o halt.o $(LIBS)
|
||||
|
||||
entab.o : entab.c
|
||||
entab.o : entab.c
|
||||
$(CC) -c $(XFLAGS) $(CFLAGS) entab.c
|
||||
|
||||
halt.o : halt.c
|
||||
halt.o : halt.c
|
||||
$(CC) -c $(XFLAGS) $(CFLAGS) halt.c
|
||||
|
||||
clean:
|
||||
|
@ -41,7 +41,7 @@ leaving a large gap.
|
||||
The quote-protection option allows tab replacement without
|
||||
quoted strings being changed.
|
||||
Useful when strings in source code will not have the same tab stops
|
||||
when executed in the program.
|
||||
when executed in the program.
|
||||
.LP
|
||||
To change a text file created on a system with one size of tab
|
||||
stop to display properly on a device with different tab setting,
|
||||
|
@ -26,8 +26,8 @@ echo "
|
||||
|
||||
copy debug from '/tmp/"$$"';
|
||||
|
||||
select *
|
||||
into table debug2
|
||||
select *
|
||||
into table debug2
|
||||
from debug;
|
||||
|
||||
create index idebug on debug(scope,func);
|
||||
@ -35,8 +35,8 @@ echo "
|
||||
vacuum debug;
|
||||
vacuum debug2;
|
||||
|
||||
update debug2
|
||||
set scope = '_'
|
||||
update debug2
|
||||
set scope = '_'
|
||||
from debug
|
||||
where debug2.func = debug.func and
|
||||
debug2.scope = 'T' and debug.scope = 'U';
|
||||
|
@ -4,12 +4,12 @@
|
||||
|
||||
# This script attempts to find all typedef's in the postgres binaries
|
||||
# by using 'nm' to report all typedef debugging symbols.
|
||||
#
|
||||
# For this program to work, you must have compiled all binaries with
|
||||
#
|
||||
# For this program to work, you must have compiled all binaries with
|
||||
# debugging symbols.
|
||||
#
|
||||
# This is run on BSD/OS 4.0 or Linux, so you may need to make changes.
|
||||
#
|
||||
#
|
||||
# Ignore the nm errors about a file not being a binary file.
|
||||
#
|
||||
# It gets typedefs by reading "STABS":
|
||||
|
@ -14,7 +14,7 @@ for every file in the current directory. I can:
|
||||
cporig `grep -l HeapTuple *`
|
||||
|
||||
If I use mkid (from ftp.postgreSQL.org), I can do:
|
||||
|
||||
|
||||
cporig `lid -kn 'fsyncOff'`
|
||||
|
||||
and get a copy of every file containing that word. I can then do:
|
||||
@ -29,7 +29,7 @@ to edit all those files.
|
||||
|
||||
When I am ready to generate a patch, I run 'difforig' command from the top of
|
||||
the source tree:
|
||||
|
||||
|
||||
I pipe the output of this to a file to hold my patch, and the file names
|
||||
it processes appear on my screen. It creates a nice patch for me of all
|
||||
the files I used with cporig.
|
||||
|
@ -25,9 +25,9 @@ my $postgres;
|
||||
my $libpq;
|
||||
|
||||
my $contrib_defines = {'refint' => 'REFINT_VERBOSE'};
|
||||
my @contrib_uselibpq = ('dblink', 'oid2name', 'pgbench', 'pg_upgrade',
|
||||
my @contrib_uselibpq = ('dblink', 'oid2name', 'pgbench', 'pg_upgrade',
|
||||
'vacuumlo');
|
||||
my @contrib_uselibpgport = ('oid2name', 'pgbench', 'pg_standby',
|
||||
my @contrib_uselibpgport = ('oid2name', 'pgbench', 'pg_standby',
|
||||
'pg_archivecleanup', 'pg_upgrade', 'vacuumlo');
|
||||
my $contrib_extralibs = {'pgbench' => ['wsock32.lib']};
|
||||
my $contrib_extraincludes = {'tsearch2' => ['contrib/tsearch2'], 'dblink' => ['src/backend']};
|
||||
|
@ -18,13 +18,13 @@ perltidy -b -bl -nsfs -naws -l=100 -ole=unix *.pl *.pm
|
||||
Notes about Visual Studio Express
|
||||
---------------------------------
|
||||
To build PostgreSQL using Visual Studio Express, the Platform SDK
|
||||
has to be installed. Since this is not included in the product
|
||||
has to be installed. Since this is not included in the product
|
||||
originally, extra steps are needed to make it work.
|
||||
|
||||
First, download and install the latest Platform SDK from
|
||||
www.microsoft.com.
|
||||
First, download and install the latest Platform SDK from
|
||||
www.microsoft.com.
|
||||
|
||||
Locate the files vcprojectengine.dll.express.config and
|
||||
Locate the files vcprojectengine.dll.express.config and
|
||||
vcprojectengine.dll.config in the vc\vcpackages directory of
|
||||
the Visual C++ Express installation. In these files, add the paths
|
||||
to the Platform SDK to the Include, Library and Path tags. Be sure
|
||||
|
@ -4,7 +4,7 @@
|
||||
# src/tools/pginclude/pgrminclude
|
||||
|
||||
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
|
||||
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
|
||||
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
|
||||
grep -v '\./postgres.h' |
|
||||
grep -v '\./pg_config.h' |
|
||||
grep -v '\./c.h' |
|
||||
@ -14,7 +14,7 @@ do
|
||||
then IS_INCLUDE="Y"
|
||||
else IS_INCLUDE="N"
|
||||
fi
|
||||
|
||||
|
||||
# loop through all includes
|
||||
cat "$FILE" | grep "^#include" |
|
||||
sed 's/^#include[ ]*[<"]\([^>"]*\).*$/\1/g' |
|
||||
@ -39,7 +39,7 @@ do
|
||||
|
||||
# remove defines from include files
|
||||
if [ "$IS_INCLUDE" = "Y" ]
|
||||
then cat "$FILE" | grep -v "^#if" | grep -v "^#else" |
|
||||
then cat "$FILE" | grep -v "^#if" | grep -v "^#else" |
|
||||
grep -v "^#endif" | sed 's/->[a-zA-Z0-9_\.]*//g' >/tmp/$$a
|
||||
else cat "$FILE" >/tmp/$$a
|
||||
fi
|
||||
|
@ -4,7 +4,7 @@ pgindent
|
||||
========
|
||||
|
||||
This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
|
||||
*.l files.
|
||||
*.l files.
|
||||
|
||||
1) Change directory to the top of the build tree.
|
||||
|
||||
@ -36,8 +36,8 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
We have standardized on NetBSD's indent. We have fixed a few bugs which
|
||||
requre the NetBSD source to be patched with indent.bsd.patch patch. A
|
||||
We have standardized on NetBSD's indent. We have fixed a few bugs which
|
||||
requre the NetBSD source to be patched with indent.bsd.patch patch. A
|
||||
fully patched version is available at ftp://ftp.postgresql.org/pub/dev.
|
||||
|
||||
GNU indent, version 2.2.6, has several problems, and is not recommended.
|
||||
|
@ -39,7 +39,7 @@ if [ "$?" -eq 0 ]
|
||||
then echo "You appear to have GNU indent rather than BSD indent." >&2
|
||||
echo "See the pgindent/README file for a description of its problems." >&2
|
||||
EXTRA_OPTS="-cdb -bli0 -npcs -cli4 -sc"
|
||||
else
|
||||
else
|
||||
EXTRA_OPTS="-cli1"
|
||||
fi
|
||||
|
||||
@ -193,7 +193,7 @@ do
|
||||
# isn't needed for general use.
|
||||
# awk '
|
||||
# {
|
||||
# line3 = $0;
|
||||
# line3 = $0;
|
||||
# if (skips > 0)
|
||||
# skips--;
|
||||
# if (line1 ~ / *{$/ &&
|
||||
@ -221,7 +221,7 @@ do
|
||||
# Remove blank line between opening brace and block comment.
|
||||
awk '
|
||||
{
|
||||
line3 = $0;
|
||||
line3 = $0;
|
||||
if (skips > 0)
|
||||
skips--;
|
||||
if (line1 ~ / *{$/ &&
|
||||
@ -326,10 +326,10 @@ do
|
||||
print line1;
|
||||
}' |
|
||||
|
||||
# Move prototype names to the same line as return type. Useful for ctags.
|
||||
# Move prototype names to the same line as return type. Useful for ctags.
|
||||
# Indent should do this, but it does not. It formats prototypes just
|
||||
# like real functions.
|
||||
awk ' BEGIN {paren_level = 0}
|
||||
awk ' BEGIN {paren_level = 0}
|
||||
{
|
||||
if ($0 ~ /^[a-zA-Z_][a-zA-Z_0-9]*[^\(]*$/)
|
||||
{
|
||||
|
@ -18,12 +18,12 @@ TMP="/tmp/$$"
|
||||
|
||||
[ "X$1" != "X-n" ] && PGCLEAN=clean
|
||||
|
||||
(gmake $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) |
|
||||
(gmake $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) |
|
||||
(tee $TMP/0; exit `cat $TMP/ret`) &&
|
||||
cat $TMP/0 |
|
||||
# The following grep's have to be adjusted for your setup because
|
||||
# The following grep's have to be adjusted for your setup because
|
||||
# certain warnings are acceptable.
|
||||
grep -i warning |
|
||||
grep -v setproctitle |
|
||||
grep -v find_rule |
|
||||
grep -i warning |
|
||||
grep -v setproctitle |
|
||||
grep -v find_rule |
|
||||
grep -v yy_flex_realloc
|
||||
|
Reference in New Issue
Block a user