]> granicus.if.org Git - postgresql/commit
Generate fmgr prototypes automatically
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 28 Dec 2016 17:00:00 +0000 (12:00 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 17 Jan 2017 19:06:07 +0000 (14:06 -0500)
commit352a24a1f9d6f7d4abb1175bfd22acc358f43140
treea27b51c7ceb1d5e50a7b7a1f1a74230043f204a6
parent323b96aa34239b5a8fe773d614a6ee50d731a683
Generate fmgr prototypes automatically

Gen_fmgrtab.pl creates a new file fmgrprotos.h, which contains
prototypes for all functions registered in pg_proc.h.  This avoids
having to manually maintain these prototypes across a random variety of
header files.  It also automatically enforces a correct function
signature, and since there are warnings about missing prototypes, it
will detect functions that are defined but not registered in
pg_proc.h (or otherwise used).

Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
98 files changed:
contrib/btree_gist/btree_bit.c
contrib/btree_gist/btree_bytea.c
contrib/btree_gist/btree_date.c
contrib/btree_gist/btree_interval.c
contrib/btree_gist/btree_time.c
contrib/intarray/_int_selfuncs.c
contrib/lo/lo.c
contrib/spi/moddatetime.c
src/backend/Makefile
src/backend/access/brin/brin.c
src/backend/access/brin/brin_inclusion.c
src/backend/access/brin/brin_minmax.c
src/backend/access/gin/ginfast.c
src/backend/access/gist/gist.c
src/backend/access/hash/hash.c
src/backend/access/hash/hashfunc.c
src/backend/access/index/amapi.c
src/backend/access/nbtree/nbtree.c
src/backend/access/spgist/spgutils.c
src/backend/access/transam/xlogfuncs.c
src/backend/catalog/namespace.c
src/backend/catalog/pg_proc.c
src/backend/commands/define.c
src/backend/executor/nodeSamplescan.c
src/backend/foreign/foreign.c
src/backend/storage/smgr/smgrtype.c
src/backend/tsearch/dict_ispell.c
src/backend/tsearch/dict_simple.c
src/backend/tsearch/dict_synonym.c
src/backend/tsearch/ts_selfuncs.c
src/backend/utils/.gitignore
src/backend/utils/Gen_fmgrtab.pl
src/backend/utils/Makefile
src/backend/utils/adt/array_selfuncs.c
src/backend/utils/adt/array_typanalyze.c
src/backend/utils/adt/ascii.c
src/backend/utils/adt/geo_selfuncs.c
src/backend/utils/adt/jsonb_op.c
src/backend/utils/adt/network_gist.c
src/backend/utils/adt/network_selfuncs.c
src/backend/utils/adt/network_spgist.c
src/backend/utils/adt/numeric.c
src/backend/utils/adt/pg_upgrade_support.c
src/backend/utils/adt/pgstatfuncs.c
src/backend/utils/adt/rangetypes_spgist.c
src/backend/utils/adt/tsgistidx.c
src/backend/utils/adt/tsquery_gist.c
src/backend/utils/adt/tsquery_op.c
src/backend/utils/adt/tsrank.c
src/backend/utils/adt/tsvector.c
src/backend/utils/adt/varbit.c
src/include/Makefile
src/include/access/amapi.h
src/include/access/brin.h
src/include/access/gin_private.h
src/include/access/gist_private.h
src/include/access/hash.h
src/include/access/nbtree.h
src/include/access/spgist.h
src/include/access/xlog_fn.h [deleted file]
src/include/catalog/pg_proc.h
src/include/commands/async.h
src/include/commands/sequence.h
src/include/commands/trigger.h
src/include/libpq/be-fsstubs.h
src/include/replication/logicalfuncs.h
src/include/replication/origin.h
src/include/replication/slot.h
src/include/replication/walreceiver.h
src/include/replication/walsender.h
src/include/storage/smgr.h
src/include/tsearch/ts_type.h
src/include/tsearch/ts_utils.h
src/include/utils/.gitignore
src/include/utils/acl.h
src/include/utils/array.h
src/include/utils/ascii.h
src/include/utils/builtins.h
src/include/utils/bytea.h
src/include/utils/cash.h
src/include/utils/date.h
src/include/utils/datetime.h
src/include/utils/formatting.h
src/include/utils/geo_decls.h
src/include/utils/inet.h
src/include/utils/int8.h
src/include/utils/json.h
src/include/utils/jsonb.h
src/include/utils/nabstime.h
src/include/utils/pg_lsn.h
src/include/utils/rangetypes.h
src/include/utils/selfuncs.h
src/include/utils/snapmgr.h
src/include/utils/timestamp.h
src/include/utils/varbit.h
src/include/utils/xml.h
src/tools/msvc/Solution.pm
src/tools/msvc/clean.bat