diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2016-12-28 12:00:00 -0500 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2017-01-17 14:06:07 -0500 |
| commit | 352a24a1f9d6f7d4abb1175bfd22acc358f43140 (patch) | |
| tree | a27b51c7ceb1d5e50a7b7a1f1a74230043f204a6 /contrib | |
| parent | 323b96aa34239b5a8fe773d614a6ee50d731a683 (diff) | |
| download | postgresql-352a24a1f9d6f7d4abb1175bfd22acc358f43140.tar.gz | |
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>
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/btree_gist/btree_bit.c | 1 | ||||
| -rw-r--r-- | contrib/btree_gist/btree_bytea.c | 1 | ||||
| -rw-r--r-- | contrib/btree_gist/btree_date.c | 1 | ||||
| -rw-r--r-- | contrib/btree_gist/btree_interval.c | 1 | ||||
| -rw-r--r-- | contrib/btree_gist/btree_time.c | 1 | ||||
| -rw-r--r-- | contrib/intarray/_int_selfuncs.c | 1 | ||||
| -rw-r--r-- | contrib/lo/lo.c | 2 | ||||
| -rw-r--r-- | contrib/spi/moddatetime.c | 2 |
8 files changed, 8 insertions, 2 deletions
diff --git a/contrib/btree_gist/btree_bit.c b/contrib/btree_gist/btree_bit.c index af210439f0..f34fa87f9d 100644 --- a/contrib/btree_gist/btree_bit.c +++ b/contrib/btree_gist/btree_bit.c @@ -5,6 +5,7 @@ #include "btree_gist.h" #include "btree_utils_var.h" +#include "utils/builtins.h" #include "utils/bytea.h" #include "utils/varbit.h" diff --git a/contrib/btree_gist/btree_bytea.c b/contrib/btree_gist/btree_bytea.c index dfc25a45c6..df6c960ce5 100644 --- a/contrib/btree_gist/btree_bytea.c +++ b/contrib/btree_gist/btree_bytea.c @@ -5,6 +5,7 @@ #include "btree_gist.h" #include "btree_utils_var.h" +#include "utils/builtins.h" #include "utils/bytea.h" diff --git a/contrib/btree_gist/btree_date.c b/contrib/btree_gist/btree_date.c index bb516a9500..56031d4a76 100644 --- a/contrib/btree_gist/btree_date.c +++ b/contrib/btree_gist/btree_date.c @@ -5,6 +5,7 @@ #include "btree_gist.h" #include "btree_utils_num.h" +#include "utils/builtins.h" #include "utils/date.h" typedef struct diff --git a/contrib/btree_gist/btree_interval.c b/contrib/btree_gist/btree_interval.c index acccb8b42e..e5cd0a281d 100644 --- a/contrib/btree_gist/btree_interval.c +++ b/contrib/btree_gist/btree_interval.c @@ -5,6 +5,7 @@ #include "btree_gist.h" #include "btree_utils_num.h" +#include "utils/builtins.h" #include "utils/timestamp.h" typedef struct diff --git a/contrib/btree_gist/btree_time.c b/contrib/btree_gist/btree_time.c index 41d9959214..27f30bc112 100644 --- a/contrib/btree_gist/btree_time.c +++ b/contrib/btree_gist/btree_time.c @@ -5,6 +5,7 @@ #include "btree_gist.h" #include "btree_utils_num.h" +#include "utils/builtins.h" #include "utils/date.h" #include "utils/timestamp.h" diff --git a/contrib/intarray/_int_selfuncs.c b/contrib/intarray/_int_selfuncs.c index bdc8a8d007..9b4a22fe34 100644 --- a/contrib/intarray/_int_selfuncs.c +++ b/contrib/intarray/_int_selfuncs.c @@ -19,6 +19,7 @@ #include "catalog/pg_operator.h" #include "catalog/pg_statistic.h" #include "catalog/pg_type.h" +#include "utils/builtins.h" #include "utils/selfuncs.h" #include "utils/syscache.h" #include "utils/lsyscache.h" diff --git a/contrib/lo/lo.c b/contrib/lo/lo.c index 85e67130bb..050bd8a72a 100644 --- a/contrib/lo/lo.c +++ b/contrib/lo/lo.c @@ -9,7 +9,7 @@ #include "commands/trigger.h" #include "executor/spi.h" -#include "libpq/be-fsstubs.h" +#include "utils/builtins.h" #include "utils/rel.h" PG_MODULE_MAGIC; diff --git a/contrib/spi/moddatetime.c b/contrib/spi/moddatetime.c index 2d1f22c4e1..70476f77c2 100644 --- a/contrib/spi/moddatetime.c +++ b/contrib/spi/moddatetime.c @@ -19,8 +19,8 @@ OH, me, I'm Terry Mackintosh <terry@terrym.com> #include "catalog/pg_type.h" #include "executor/spi.h" #include "commands/trigger.h" +#include "utils/builtins.h" #include "utils/rel.h" -#include "utils/timestamp.h" PG_MODULE_MAGIC; |
