mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Initial pgindent run with pg_bsd_indent version 2.0.
The new indent version includes numerous fixes thanks to Piotr Stefaniak. The main changes visible in this commit are: * Nicer formatting of function-pointer declarations. * No longer unexpectedly removes spaces in expressions using casts, sizeof, or offsetof. * No longer wants to add a space in "struct structname *varname", as well as some similar cases for const- or volatile-qualified pointers. * Declarations using PG_USED_FOR_ASSERTS_ONLY are formatted more nicely. * Fixes bug where comments following declarations were sometimes placed with no space separating them from the code. * Fixes some odd decisions for comments following case labels. * Fixes some cases where comments following code were indented to less than the expected column 33. On the less good side, it now tends to put more whitespace around typedef names that are not listed in typedefs.list. This might encourage us to put more effort into typedef name collection; it's not really a bug in indent itself. There are more changes coming after this round, having to do with comment indentation and alignment of lines appearing within parentheses. I wanted to limit the size of the diffs to something that could be reviewed without one's eyes completely glazing over, so it seemed better to split up the changes as much as practical. Discussion: https://postgr.es/m/E1dAmxK-0006EE-1r@gemulon.postgresql.org Discussion: https://postgr.es/m/30527.1495162840@sss.pgh.pa.us
This commit is contained in:
contrib
bloom
btree_gist
dblink
fuzzystrmatch
intarray
ltree
oid2name
pg_stat_statements
pg_trgm
pg_visibility
pgcrypto
pgstattuple
sepgsql
spi
uuid-ossp
vacuumlo
xml2
src
backend
access
common
gin
hash
heap
nbtree
spgist
transam
catalog
commands
executor
execCurrent.cfunctions.cnodeAgg.cnodeHashjoin.cnodeMaterial.cnodeMergejoin.cnodeProjectSet.cnodeSetOp.cnodeWindowAgg.c
lib
libpq
nodes
optimizer
parser
port
postmaster
regex
regc_color.cregc_cvec.cregc_lex.cregc_locale.cregc_nfa.cregcomp.crege_dfa.cregerror.cregexec.cregexport.cregprefix.c
replication
rewrite
snowball
statistics
storage
buffer
ipc
lmgr
smgr
tcop
tsearch
utils
adt
array_typanalyze.carrayfuncs.carrayutils.ccash.cdate.cdatetime.cdbsize.cencode.cformatting.cgeo_ops.cint.cjsonb.cjsonfuncs.clike_match.cnabstime.cpg_locale.crangetypes.cruleutils.cselfuncs.ctimestamp.ctsquery.ctsrank.ctsvector_op.ctsvector_parser.cvarlena.c
cache
error
fmgr
hash
mb
misc
mmgr
resowner
sort
bin
initdb
pg_dump
pg_upgrade
pgbench
pgevent
psql
common
fe_utils
include
access
amapi.hgin_private.hginxlog.hhash.hhash_xlog.hhio.hitup.hrelscan.hslru.htsmapi.htupdesc.htuptoaster.htwophase_rmgr.hxact.hxloginsert.hxlogreader.hxlogrecord.h
c.hcatalog
index.hnamespace.hobjectaccess.hpg_db_role_setting.hpg_description.hpg_extension.hpg_init_privs.hpg_largeobject.hpg_pltemplate.hpg_proc.hpg_replication_origin.hpg_seclabel.hpg_shdescription.hpg_shseclabel.hpg_subscription.hpg_trigger.h
commands
common
executor
fe_utils
fmgr.hforeign
getaddrinfo.hgetopt_long.hlib
libpq
mb
nodes
optimizer
parser
pg_getopt.hpgstat.hpgtime.hport.hport
postgres.hpostmaster
regex
replication
rewrite
rusagestub.hstatistics
storage
tcop
tsearch
utils
interfaces
ecpg
compatlib
ecpglib
include
ecpg_informix.hecpglib.hecpgtype.hpgtypes_date.hpgtypes_interval.hpgtypes_numeric.hpgtypes_timestamp.hsqlca.h
pgtypeslib
preproc
test
libpq
pl
port
crypt.cdirmod.cgetaddrinfo.cgetopt.cgetopt_long.cgetrusage.cgettimeofday.cinet_aton.cmkdtemp.cthread.cwin32error.cwin32setlocale.c
test
timezone
tools
tutorial
@ -21,7 +21,7 @@ static const struct
|
||||
{
|
||||
DWORD winerr;
|
||||
int doserr;
|
||||
} doserrors[] =
|
||||
} doserrors[] =
|
||||
|
||||
{
|
||||
{
|
||||
|
Reference in New Issue
Block a user