13 changes: 0 additions & 13 deletions contrib/btree_gist/btree_ts.c
Expand Up @@ -28,17 +28,6 @@ PG_FUNCTION_INFO_V1(gbt_tstz_distance);
PG_FUNCTION_INFO_V1(gbt_ts_penalty);
PG_FUNCTION_INFO_V1(gbt_ts_same);

Datum gbt_ts_compress(PG_FUNCTION_ARGS);
Datum gbt_tstz_compress(PG_FUNCTION_ARGS);
Datum gbt_ts_union(PG_FUNCTION_ARGS);
Datum gbt_ts_picksplit(PG_FUNCTION_ARGS);
Datum gbt_ts_consistent(PG_FUNCTION_ARGS);
Datum gbt_ts_distance(PG_FUNCTION_ARGS);
Datum gbt_tstz_consistent(PG_FUNCTION_ARGS);
Datum gbt_tstz_distance(PG_FUNCTION_ARGS);
Datum gbt_ts_penalty(PG_FUNCTION_ARGS);
Datum gbt_ts_same(PG_FUNCTION_ARGS);


#ifdef USE_FLOAT8_BYVAL
#define TimestampGetDatumFast(X) TimestampGetDatum(X)
Expand Down Expand Up @@ -149,7 +138,6 @@ static const gbtree_ninfo tinfo =


PG_FUNCTION_INFO_V1(ts_dist);
Datum ts_dist(PG_FUNCTION_ARGS);
Datum
ts_dist(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -178,7 +166,6 @@ ts_dist(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(tstz_dist);
Datum tstz_dist(PG_FUNCTION_ARGS);
Datum
tstz_dist(PG_FUNCTION_ARGS)
{
Expand Down
1 change: 0 additions & 1 deletion contrib/btree_gist/btree_utils_var.c
Expand Up @@ -29,7 +29,6 @@ typedef struct


PG_FUNCTION_INFO_V1(gbt_var_decompress);
Datum gbt_var_decompress(PG_FUNCTION_ARGS);


Datum
Expand Down
12 changes: 0 additions & 12 deletions contrib/chkpass/chkpass.c
Expand Up @@ -39,18 +39,6 @@ typedef struct chkpass
char password[16];
} chkpass;

/*
* Various forward declarations:
*/

Datum chkpass_in(PG_FUNCTION_ARGS);
Datum chkpass_out(PG_FUNCTION_ARGS);
Datum chkpass_rout(PG_FUNCTION_ARGS);

/* Only equal or not equal make sense */
Datum chkpass_eq(PG_FUNCTION_ARGS);
Datum chkpass_ne(PG_FUNCTION_ARGS);


/* This function checks that the password is a good one
* It's just a placeholder for now */
Expand Down
10 changes: 0 additions & 10 deletions contrib/citext/citext.c
Expand Up @@ -19,16 +19,6 @@ PG_MODULE_MAGIC;
*/

static int32 citextcmp(text *left, text *right, Oid collid);
extern Datum citext_cmp(PG_FUNCTION_ARGS);
extern Datum citext_hash(PG_FUNCTION_ARGS);
extern Datum citext_eq(PG_FUNCTION_ARGS);
extern Datum citext_ne(PG_FUNCTION_ARGS);
extern Datum citext_gt(PG_FUNCTION_ARGS);
extern Datum citext_ge(PG_FUNCTION_ARGS);
extern Datum citext_lt(PG_FUNCTION_ARGS);
extern Datum citext_le(PG_FUNCTION_ARGS);
extern Datum citext_smaller(PG_FUNCTION_ARGS);
extern Datum citext_larger(PG_FUNCTION_ARGS);

/*
* =================
Expand Down
40 changes: 0 additions & 40 deletions contrib/cube/cube.c
Expand Up @@ -47,19 +47,6 @@ PG_FUNCTION_INFO_V1(cube_ll_coord);
PG_FUNCTION_INFO_V1(cube_ur_coord);
PG_FUNCTION_INFO_V1(cube_subset);

Datum cube_in(PG_FUNCTION_ARGS);
Datum cube_a_f8_f8(PG_FUNCTION_ARGS);
Datum cube_a_f8(PG_FUNCTION_ARGS);
Datum cube_out(PG_FUNCTION_ARGS);
Datum cube_f8(PG_FUNCTION_ARGS);
Datum cube_f8_f8(PG_FUNCTION_ARGS);
Datum cube_c_f8(PG_FUNCTION_ARGS);
Datum cube_c_f8_f8(PG_FUNCTION_ARGS);
Datum cube_dim(PG_FUNCTION_ARGS);
Datum cube_ll_coord(PG_FUNCTION_ARGS);
Datum cube_ur_coord(PG_FUNCTION_ARGS);
Datum cube_subset(PG_FUNCTION_ARGS);

/*
** GiST support methods
*/
Expand All @@ -72,14 +59,6 @@ PG_FUNCTION_INFO_V1(g_cube_picksplit);
PG_FUNCTION_INFO_V1(g_cube_union);
PG_FUNCTION_INFO_V1(g_cube_same);

Datum g_cube_consistent(PG_FUNCTION_ARGS);
Datum g_cube_compress(PG_FUNCTION_ARGS);
Datum g_cube_decompress(PG_FUNCTION_ARGS);
Datum g_cube_penalty(PG_FUNCTION_ARGS);
Datum g_cube_picksplit(PG_FUNCTION_ARGS);
Datum g_cube_union(PG_FUNCTION_ARGS);
Datum g_cube_same(PG_FUNCTION_ARGS);

/*
** B-tree support functions
*/
Expand All @@ -91,14 +70,6 @@ PG_FUNCTION_INFO_V1(cube_le);
PG_FUNCTION_INFO_V1(cube_ge);
PG_FUNCTION_INFO_V1(cube_cmp);

Datum cube_eq(PG_FUNCTION_ARGS);
Datum cube_ne(PG_FUNCTION_ARGS);
Datum cube_lt(PG_FUNCTION_ARGS);
Datum cube_gt(PG_FUNCTION_ARGS);
Datum cube_le(PG_FUNCTION_ARGS);
Datum cube_ge(PG_FUNCTION_ARGS);
Datum cube_cmp(PG_FUNCTION_ARGS);

/*
** R-tree support functions
*/
Expand All @@ -110,24 +81,13 @@ PG_FUNCTION_INFO_V1(cube_union);
PG_FUNCTION_INFO_V1(cube_inter);
PG_FUNCTION_INFO_V1(cube_size);

Datum cube_contains(PG_FUNCTION_ARGS);
Datum cube_contained(PG_FUNCTION_ARGS);
Datum cube_overlap(PG_FUNCTION_ARGS);
Datum cube_union(PG_FUNCTION_ARGS);
Datum cube_inter(PG_FUNCTION_ARGS);
Datum cube_size(PG_FUNCTION_ARGS);

/*
** miscellaneous
*/
PG_FUNCTION_INFO_V1(cube_distance);
PG_FUNCTION_INFO_V1(cube_is_point);
PG_FUNCTION_INFO_V1(cube_enlarge);

Datum cube_distance(PG_FUNCTION_ARGS);
Datum cube_is_point(PG_FUNCTION_ARGS);
Datum cube_enlarge(PG_FUNCTION_ARGS);

/*
** For internal use only
*/
Expand Down
3 changes: 0 additions & 3 deletions contrib/dict_int/dict_int.c
Expand Up @@ -26,10 +26,7 @@ typedef struct


PG_FUNCTION_INFO_V1(dintdict_init);
Datum dintdict_init(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(dintdict_lexize);
Datum dintdict_lexize(PG_FUNCTION_ARGS);

Datum
dintdict_init(PG_FUNCTION_ARGS)
Expand Down
3 changes: 0 additions & 3 deletions contrib/dict_xsyn/dict_xsyn.c
Expand Up @@ -40,10 +40,7 @@ typedef struct


PG_FUNCTION_INFO_V1(dxsyn_init);
Datum dxsyn_init(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(dxsyn_lexize);
Datum dxsyn_lexize(PG_FUNCTION_ARGS);

static char *
find_word(char *in, char **end)
Expand Down
2 changes: 0 additions & 2 deletions contrib/earthdistance/earthdistance.c
Expand Up @@ -99,8 +99,6 @@ geo_distance_internal(Point *pt1, Point *pt2)

#ifdef USE_FLOAT8_BYVAL

Datum geo_distance(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(geo_distance);

Datum
Expand Down
3 changes: 0 additions & 3 deletions contrib/file_fdw/file_fdw.c
Expand Up @@ -102,9 +102,6 @@ typedef struct FileFdwExecutionState
/*
* SQL functions
*/
extern Datum file_fdw_handler(PG_FUNCTION_ARGS);
extern Datum file_fdw_validator(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(file_fdw_handler);
PG_FUNCTION_INFO_V1(file_fdw_validator);

Expand Down
3 changes: 0 additions & 3 deletions contrib/fuzzystrmatch/dmetaphone.c
Expand Up @@ -114,9 +114,6 @@ The remaining code is authored by Andrew Dunstan <amdunstan@ncshp.org> and
#include <stdarg.h>
#include <assert.h>

extern Datum dmetaphone(PG_FUNCTION_ARGS);
extern Datum dmetaphone_alt(PG_FUNCTION_ARGS);

/* prototype for the main function we got from the perl module */
static void DoubleMetaphone(char *, char **);

Expand Down
12 changes: 0 additions & 12 deletions contrib/fuzzystrmatch/fuzzystrmatch.c
Expand Up @@ -45,18 +45,6 @@

PG_MODULE_MAGIC;


/*
* External declarations for exported functions
*/
extern Datum levenshtein_with_costs(PG_FUNCTION_ARGS);
extern Datum levenshtein(PG_FUNCTION_ARGS);
extern Datum levenshtein_less_equal_with_costs(PG_FUNCTION_ARGS);
extern Datum levenshtein_less_equal(PG_FUNCTION_ARGS);
extern Datum metaphone(PG_FUNCTION_ARGS);
extern Datum soundex(PG_FUNCTION_ARGS);
extern Datum difference(PG_FUNCTION_ARGS);

/*
* Soundex
*/
Expand Down
1 change: 0 additions & 1 deletion contrib/hstore/hstore.h
Expand Up @@ -194,7 +194,6 @@ extern Pairs *hstoreArrayToPairs(ArrayType *a, int *npairs);
#if HSTORE_POLLUTE_NAMESPACE
#define HSTORE_POLLUTE(newname_,oldname_) \
PG_FUNCTION_INFO_V1(oldname_); \
Datum oldname_(PG_FUNCTION_ARGS); \
Datum newname_(PG_FUNCTION_ARGS); \
Datum oldname_(PG_FUNCTION_ARGS) { return newname_(fcinfo); } \
extern int no_such_variable
Expand Down
1 change: 0 additions & 1 deletion contrib/hstore/hstore_compat.c
Expand Up @@ -357,7 +357,6 @@ hstoreUpgrade(Datum orig)


PG_FUNCTION_INFO_V1(hstore_version_diag);
Datum hstore_version_diag(PG_FUNCTION_ARGS);
Datum
hstore_version_diag(PG_FUNCTION_ARGS)
{
Expand Down
3 changes: 0 additions & 3 deletions contrib/hstore/hstore_gin.c
Expand Up @@ -22,7 +22,6 @@
#define NULLFLAG 'N'

PG_FUNCTION_INFO_V1(gin_extract_hstore);
Datum gin_extract_hstore(PG_FUNCTION_ARGS);

/* Build an indexable text value */
static text *
Expand Down Expand Up @@ -76,7 +75,6 @@ gin_extract_hstore(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(gin_extract_hstore_query);
Datum gin_extract_hstore_query(PG_FUNCTION_ARGS);

Datum
gin_extract_hstore_query(PG_FUNCTION_ARGS)
Expand Down Expand Up @@ -148,7 +146,6 @@ gin_extract_hstore_query(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(gin_consistent_hstore);
Datum gin_consistent_hstore(PG_FUNCTION_ARGS);

Datum
gin_consistent_hstore(PG_FUNCTION_ARGS)
Expand Down
11 changes: 0 additions & 11 deletions contrib/hstore/hstore_gist.c
Expand Up @@ -69,10 +69,7 @@ typedef struct
#define WISH_F(a,b,c) (double)( -(double)(((a)-(b))*((a)-(b))*((a)-(b)))*(c) )

PG_FUNCTION_INFO_V1(ghstore_in);
Datum ghstore_in(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(ghstore_out);
Datum ghstore_out(PG_FUNCTION_ARGS);


Datum
Expand All @@ -97,14 +94,6 @@ PG_FUNCTION_INFO_V1(ghstore_picksplit);
PG_FUNCTION_INFO_V1(ghstore_union);
PG_FUNCTION_INFO_V1(ghstore_same);

Datum ghstore_consistent(PG_FUNCTION_ARGS);
Datum ghstore_compress(PG_FUNCTION_ARGS);
Datum ghstore_decompress(PG_FUNCTION_ARGS);
Datum ghstore_penalty(PG_FUNCTION_ARGS);
Datum ghstore_picksplit(PG_FUNCTION_ARGS);
Datum ghstore_union(PG_FUNCTION_ARGS);
Datum ghstore_same(PG_FUNCTION_ARGS);

Datum
ghstore_compress(PG_FUNCTION_ARGS)
{
Expand Down
13 changes: 0 additions & 13 deletions contrib/hstore/hstore_io.c
Expand Up @@ -401,7 +401,6 @@ hstorePairs(Pairs *pairs, int32 pcount, int32 buflen)


PG_FUNCTION_INFO_V1(hstore_in);
Datum hstore_in(PG_FUNCTION_ARGS);
Datum
hstore_in(PG_FUNCTION_ARGS)
{
Expand All @@ -422,7 +421,6 @@ hstore_in(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_recv);
Datum hstore_recv(PG_FUNCTION_ARGS);
Datum
hstore_recv(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -486,7 +484,6 @@ hstore_recv(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_from_text);
Datum hstore_from_text(PG_FUNCTION_ARGS);
Datum
hstore_from_text(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -523,7 +520,6 @@ hstore_from_text(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_from_arrays);
Datum hstore_from_arrays(PG_FUNCTION_ARGS);
Datum
hstore_from_arrays(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -641,7 +637,6 @@ hstore_from_arrays(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_from_array);
Datum hstore_from_array(PG_FUNCTION_ARGS);
Datum
hstore_from_array(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -755,7 +750,6 @@ typedef struct RecordIOData
} RecordIOData;

PG_FUNCTION_INFO_V1(hstore_from_record);
Datum hstore_from_record(PG_FUNCTION_ARGS);
Datum
hstore_from_record(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -909,7 +903,6 @@ hstore_from_record(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_populate_record);
Datum hstore_populate_record(PG_FUNCTION_ARGS);
Datum
hstore_populate_record(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -1122,7 +1115,6 @@ cpw(char *dst, char *src, int len)
}

PG_FUNCTION_INFO_V1(hstore_out);
Datum hstore_out(PG_FUNCTION_ARGS);
Datum
hstore_out(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -1194,7 +1186,6 @@ hstore_out(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_send);
Datum hstore_send(PG_FUNCTION_ARGS);
Datum
hstore_send(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -1241,7 +1232,6 @@ hstore_send(PG_FUNCTION_ARGS)
* (think zip codes or phone numbers starting with 0).
*/
PG_FUNCTION_INFO_V1(hstore_to_json_loose);
Datum hstore_to_json_loose(PG_FUNCTION_ARGS);
Datum
hstore_to_json_loose(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -1333,7 +1323,6 @@ hstore_to_json_loose(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(hstore_to_json);
Datum hstore_to_json(PG_FUNCTION_ARGS);
Datum
hstore_to_json(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -1377,7 +1366,6 @@ hstore_to_json(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(hstore_to_jsonb);
Datum hstore_to_jsonb(PG_FUNCTION_ARGS);
Datum
hstore_to_jsonb(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -1425,7 +1413,6 @@ hstore_to_jsonb(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(hstore_to_jsonb_loose);
Datum hstore_to_jsonb_loose(PG_FUNCTION_ARGS);
Datum
hstore_to_jsonb_loose(PG_FUNCTION_ARGS)
{
Expand Down
28 changes: 0 additions & 28 deletions contrib/hstore/hstore_op.c
Expand Up @@ -127,7 +127,6 @@ hstoreArrayToPairs(ArrayType *a, int *npairs)


PG_FUNCTION_INFO_V1(hstore_fetchval);
Datum hstore_fetchval(PG_FUNCTION_ARGS);
Datum
hstore_fetchval(PG_FUNCTION_ARGS)
{
Expand All @@ -149,7 +148,6 @@ hstore_fetchval(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_exists);
Datum hstore_exists(PG_FUNCTION_ARGS);
Datum
hstore_exists(PG_FUNCTION_ARGS)
{
Expand All @@ -163,7 +161,6 @@ hstore_exists(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_exists_any);
Datum hstore_exists_any(PG_FUNCTION_ARGS);
Datum
hstore_exists_any(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -198,7 +195,6 @@ hstore_exists_any(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_exists_all);
Datum hstore_exists_all(PG_FUNCTION_ARGS);
Datum
hstore_exists_all(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -233,7 +229,6 @@ hstore_exists_all(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_defined);
Datum hstore_defined(PG_FUNCTION_ARGS);
Datum
hstore_defined(PG_FUNCTION_ARGS)
{
Expand All @@ -249,7 +244,6 @@ hstore_defined(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_delete);
Datum hstore_delete(PG_FUNCTION_ARGS);
Datum
hstore_delete(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -296,7 +290,6 @@ hstore_delete(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_delete_array);
Datum hstore_delete_array(PG_FUNCTION_ARGS);
Datum
hstore_delete_array(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -376,7 +369,6 @@ hstore_delete_array(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_delete_hstore);
Datum hstore_delete_hstore(PG_FUNCTION_ARGS);
Datum
hstore_delete_hstore(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -476,7 +468,6 @@ hstore_delete_hstore(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_concat);
Datum hstore_concat(PG_FUNCTION_ARGS);
Datum
hstore_concat(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -575,7 +566,6 @@ hstore_concat(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_slice_to_array);
Datum hstore_slice_to_array(PG_FUNCTION_ARGS);
Datum
hstore_slice_to_array(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -639,7 +629,6 @@ hstore_slice_to_array(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_slice_to_hstore);
Datum hstore_slice_to_hstore(PG_FUNCTION_ARGS);
Datum
hstore_slice_to_hstore(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -702,7 +691,6 @@ hstore_slice_to_hstore(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_akeys);
Datum hstore_akeys(PG_FUNCTION_ARGS);
Datum
hstore_akeys(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -738,7 +726,6 @@ hstore_akeys(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_avals);
Datum hstore_avals(PG_FUNCTION_ARGS);
Datum
hstore_avals(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -835,7 +822,6 @@ hstore_to_array_internal(HStore *hs, int ndims)
}

PG_FUNCTION_INFO_V1(hstore_to_array);
Datum hstore_to_array(PG_FUNCTION_ARGS);
Datum
hstore_to_array(PG_FUNCTION_ARGS)
{
Expand All @@ -846,7 +832,6 @@ hstore_to_array(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(hstore_to_matrix);
Datum hstore_to_matrix(PG_FUNCTION_ARGS);
Datum
hstore_to_matrix(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -895,7 +880,6 @@ setup_firstcall(FuncCallContext *funcctx, HStore *hs,


PG_FUNCTION_INFO_V1(hstore_skeys);
Datum hstore_skeys(PG_FUNCTION_ARGS);
Datum
hstore_skeys(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -930,7 +914,6 @@ hstore_skeys(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_svals);
Datum hstore_svals(PG_FUNCTION_ARGS);
Datum
hstore_svals(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -979,7 +962,6 @@ hstore_svals(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_contains);
Datum hstore_contains(PG_FUNCTION_ARGS);
Datum
hstore_contains(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -1026,7 +1008,6 @@ hstore_contains(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_contained);
Datum hstore_contained(PG_FUNCTION_ARGS);
Datum
hstore_contained(PG_FUNCTION_ARGS)
{
Expand All @@ -1038,7 +1019,6 @@ hstore_contained(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_each);
Datum hstore_each(PG_FUNCTION_ARGS);
Datum
hstore_each(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -1100,7 +1080,6 @@ hstore_each(PG_FUNCTION_ARGS)
*/

PG_FUNCTION_INFO_V1(hstore_cmp);
Datum hstore_cmp(PG_FUNCTION_ARGS);
Datum
hstore_cmp(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -1182,7 +1161,6 @@ hstore_cmp(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_eq);
Datum hstore_eq(PG_FUNCTION_ARGS);
Datum
hstore_eq(PG_FUNCTION_ARGS)
{
Expand All @@ -1194,7 +1172,6 @@ hstore_eq(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(hstore_ne);
Datum hstore_ne(PG_FUNCTION_ARGS);
Datum
hstore_ne(PG_FUNCTION_ARGS)
{
Expand All @@ -1206,7 +1183,6 @@ hstore_ne(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(hstore_gt);
Datum hstore_gt(PG_FUNCTION_ARGS);
Datum
hstore_gt(PG_FUNCTION_ARGS)
{
Expand All @@ -1218,7 +1194,6 @@ hstore_gt(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(hstore_ge);
Datum hstore_ge(PG_FUNCTION_ARGS);
Datum
hstore_ge(PG_FUNCTION_ARGS)
{
Expand All @@ -1230,7 +1205,6 @@ hstore_ge(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(hstore_lt);
Datum hstore_lt(PG_FUNCTION_ARGS);
Datum
hstore_lt(PG_FUNCTION_ARGS)
{
Expand All @@ -1242,7 +1216,6 @@ hstore_lt(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(hstore_le);
Datum hstore_le(PG_FUNCTION_ARGS);
Datum
hstore_le(PG_FUNCTION_ARGS)
{
Expand All @@ -1255,7 +1228,6 @@ hstore_le(PG_FUNCTION_ARGS)


PG_FUNCTION_INFO_V1(hstore_hash);
Datum hstore_hash(PG_FUNCTION_ARGS);
Datum
hstore_hash(PG_FUNCTION_ARGS)
{
Expand Down
8 changes: 0 additions & 8 deletions contrib/intarray/_int_bool.c
Expand Up @@ -10,17 +10,9 @@

PG_FUNCTION_INFO_V1(bqarr_in);
PG_FUNCTION_INFO_V1(bqarr_out);
Datum bqarr_in(PG_FUNCTION_ARGS);
Datum bqarr_out(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(boolop);
Datum boolop(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(rboolop);
Datum rboolop(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(querytree);
Datum querytree(PG_FUNCTION_ARGS);


/* parser's states */
Expand Down
2 changes: 0 additions & 2 deletions contrib/intarray/_int_gin.c
Expand Up @@ -10,7 +10,6 @@
#include "_int.h"

PG_FUNCTION_INFO_V1(ginint4_queryextract);
Datum ginint4_queryextract(PG_FUNCTION_ARGS);

Datum
ginint4_queryextract(PG_FUNCTION_ARGS)
Expand Down Expand Up @@ -108,7 +107,6 @@ ginint4_queryextract(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(ginint4_consistent);
Datum ginint4_consistent(PG_FUNCTION_ARGS);

Datum
ginint4_consistent(PG_FUNCTION_ARGS)
Expand Down
8 changes: 0 additions & 8 deletions contrib/intarray/_int_gist.c
Expand Up @@ -21,14 +21,6 @@ PG_FUNCTION_INFO_V1(g_int_picksplit);
PG_FUNCTION_INFO_V1(g_int_union);
PG_FUNCTION_INFO_V1(g_int_same);

Datum g_int_consistent(PG_FUNCTION_ARGS);
Datum g_int_compress(PG_FUNCTION_ARGS);
Datum g_int_decompress(PG_FUNCTION_ARGS);
Datum g_int_penalty(PG_FUNCTION_ARGS);
Datum g_int_picksplit(PG_FUNCTION_ARGS);
Datum g_int_union(PG_FUNCTION_ARGS);
Datum g_int_same(PG_FUNCTION_ARGS);


/*
** The GiST Consistent method for _intments
Expand Down
21 changes: 0 additions & 21 deletions contrib/intarray/_int_op.c
Expand Up @@ -17,14 +17,6 @@ PG_FUNCTION_INFO_V1(_int_overlap);
PG_FUNCTION_INFO_V1(_int_union);
PG_FUNCTION_INFO_V1(_int_inter);

Datum _int_different(PG_FUNCTION_ARGS);
Datum _int_same(PG_FUNCTION_ARGS);
Datum _int_contains(PG_FUNCTION_ARGS);
Datum _int_contained(PG_FUNCTION_ARGS);
Datum _int_overlap(PG_FUNCTION_ARGS);
Datum _int_union(PG_FUNCTION_ARGS);
Datum _int_inter(PG_FUNCTION_ARGS);

Datum
_int_contained(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -188,19 +180,6 @@ PG_FUNCTION_INFO_V1(intarray_push_array);
PG_FUNCTION_INFO_V1(intarray_del_elem);
PG_FUNCTION_INFO_V1(intset_union_elem);
PG_FUNCTION_INFO_V1(intset_subtract);
Datum intset(PG_FUNCTION_ARGS);
Datum icount(PG_FUNCTION_ARGS);
Datum sort(PG_FUNCTION_ARGS);
Datum sort_asc(PG_FUNCTION_ARGS);
Datum sort_desc(PG_FUNCTION_ARGS);
Datum uniq(PG_FUNCTION_ARGS);
Datum idx(PG_FUNCTION_ARGS);
Datum subarray(PG_FUNCTION_ARGS);
Datum intarray_push_elem(PG_FUNCTION_ARGS);
Datum intarray_push_array(PG_FUNCTION_ARGS);
Datum intarray_del_elem(PG_FUNCTION_ARGS);
Datum intset_union_elem(PG_FUNCTION_ARGS);
Datum intset_subtract(PG_FUNCTION_ARGS);

Datum
intset(PG_FUNCTION_ARGS)
Expand Down
12 changes: 0 additions & 12 deletions contrib/intarray/_intbig_gist.c
Expand Up @@ -20,14 +20,6 @@ PG_FUNCTION_INFO_V1(g_intbig_picksplit);
PG_FUNCTION_INFO_V1(g_intbig_union);
PG_FUNCTION_INFO_V1(g_intbig_same);

Datum g_intbig_consistent(PG_FUNCTION_ARGS);
Datum g_intbig_compress(PG_FUNCTION_ARGS);
Datum g_intbig_decompress(PG_FUNCTION_ARGS);
Datum g_intbig_penalty(PG_FUNCTION_ARGS);
Datum g_intbig_picksplit(PG_FUNCTION_ARGS);
Datum g_intbig_union(PG_FUNCTION_ARGS);
Datum g_intbig_same(PG_FUNCTION_ARGS);

/* Number of one-bits in an unsigned byte */
static const uint8 number_of_ones[256] = {
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4,
Expand All @@ -49,11 +41,7 @@ static const uint8 number_of_ones[256] = {
};

PG_FUNCTION_INFO_V1(_intbig_in);
Datum _intbig_in(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(_intbig_out);
Datum _intbig_out(PG_FUNCTION_ARGS);


Datum
_intbig_in(PG_FUNCTION_ARGS)
Expand Down
4 changes: 0 additions & 4 deletions contrib/lo/lo.c
Expand Up @@ -18,10 +18,6 @@ PG_MODULE_MAGIC;
#define atooid(x) ((Oid) strtoul((x), NULL, 10))


/* forward declarations */
Datum lo_manage(PG_FUNCTION_ARGS);


/*
* This is the trigger that protects us from orphaned large objects
*/
Expand Down
11 changes: 0 additions & 11 deletions contrib/ltree/_ltree_gist.c
Expand Up @@ -14,22 +14,11 @@


PG_FUNCTION_INFO_V1(_ltree_compress);
Datum _ltree_compress(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(_ltree_same);
Datum _ltree_same(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(_ltree_union);
Datum _ltree_union(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(_ltree_penalty);
Datum _ltree_penalty(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(_ltree_picksplit);
Datum _ltree_picksplit(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(_ltree_consistent);
Datum _ltree_consistent(PG_FUNCTION_ARGS);

#define GETENTRY(vec,pos) ((ltree_gist *) DatumGetPointer((vec)->vector[(pos)].key))
#define NEXTVAL(x) ( (ltree*)( (char*)(x) + INTALIGN( VARSIZE(x) ) ) )
Expand Down
8 changes: 0 additions & 8 deletions contrib/ltree/_ltree_op.c
Expand Up @@ -22,20 +22,12 @@ PG_FUNCTION_INFO_V1(_lt_q_rregex);
PG_FUNCTION_INFO_V1(_ltxtq_exec);
PG_FUNCTION_INFO_V1(_ltxtq_rexec);

Datum _ltree_r_isparent(PG_FUNCTION_ARGS);
Datum _ltree_r_risparent(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(_ltree_extract_isparent);
PG_FUNCTION_INFO_V1(_ltree_extract_risparent);
PG_FUNCTION_INFO_V1(_ltq_extract_regex);
PG_FUNCTION_INFO_V1(_ltxtq_extract_exec);
Datum _ltree_extract_isparent(PG_FUNCTION_ARGS);
Datum _ltree_extract_risparent(PG_FUNCTION_ARGS);
Datum _ltq_extract_regex(PG_FUNCTION_ARGS);
Datum _ltxtq_extract_exec(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(_lca);
Datum _lca(PG_FUNCTION_ARGS);

typedef Datum (*PGCALL2) (PG_FUNCTION_ARGS);

Expand Down
16 changes: 0 additions & 16 deletions contrib/ltree/ltree_gist.c
Expand Up @@ -13,10 +13,7 @@
#define NEXTVAL(x) ( (lquery*)( (char*)(x) + INTALIGN( VARSIZE(x) ) ) )

PG_FUNCTION_INFO_V1(ltree_gist_in);
Datum ltree_gist_in(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(ltree_gist_out);
Datum ltree_gist_out(PG_FUNCTION_ARGS);

Datum
ltree_gist_in(PG_FUNCTION_ARGS)
Expand All @@ -37,25 +34,12 @@ ltree_gist_out(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(ltree_compress);
Datum ltree_compress(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(ltree_decompress);
Datum ltree_decompress(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(ltree_same);
Datum ltree_same(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(ltree_union);
Datum ltree_union(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(ltree_penalty);
Datum ltree_penalty(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(ltree_picksplit);
Datum ltree_picksplit(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(ltree_consistent);
Datum ltree_consistent(PG_FUNCTION_ARGS);

#define ISEQ(a,b) ( (a)->numlevel == (b)->numlevel && ltree_compare(a,b)==0 )
#define GETENTRY(vec,pos) ((ltree_gist *) DatumGetPointer((vec)->vector[(pos)].key))
Expand Down
7 changes: 0 additions & 7 deletions contrib/ltree/ltree_io.c
Expand Up @@ -12,16 +12,9 @@
#include "crc32.h"

PG_FUNCTION_INFO_V1(ltree_in);
Datum ltree_in(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(ltree_out);
Datum ltree_out(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(lquery_in);
Datum lquery_in(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(lquery_out);
Datum lquery_out(PG_FUNCTION_ARGS);


#define UNCHAR ereport(ERROR, \
Expand Down
19 changes: 0 additions & 19 deletions contrib/ltree/ltree_op.c
Expand Up @@ -38,25 +38,6 @@ PG_FUNCTION_INFO_V1(ltree2text);
PG_FUNCTION_INFO_V1(text2ltree);
PG_FUNCTION_INFO_V1(ltreeparentsel);

Datum ltree_cmp(PG_FUNCTION_ARGS);
Datum ltree_lt(PG_FUNCTION_ARGS);
Datum ltree_le(PG_FUNCTION_ARGS);
Datum ltree_eq(PG_FUNCTION_ARGS);
Datum ltree_ne(PG_FUNCTION_ARGS);
Datum ltree_ge(PG_FUNCTION_ARGS);
Datum ltree_gt(PG_FUNCTION_ARGS);
Datum nlevel(PG_FUNCTION_ARGS);
Datum subltree(PG_FUNCTION_ARGS);
Datum subpath(PG_FUNCTION_ARGS);
Datum ltree_index(PG_FUNCTION_ARGS);
Datum ltree_addltree(PG_FUNCTION_ARGS);
Datum ltree_addtext(PG_FUNCTION_ARGS);
Datum ltree_textadd(PG_FUNCTION_ARGS);
Datum lca(PG_FUNCTION_ARGS);
Datum ltree2text(PG_FUNCTION_ARGS);
Datum text2ltree(PG_FUNCTION_ARGS);
Datum ltreeparentsel(PG_FUNCTION_ARGS);

int
ltree_compare(const ltree *a, const ltree *b)
{
Expand Down
3 changes: 0 additions & 3 deletions contrib/ltree/ltxtquery_io.c
Expand Up @@ -12,10 +12,7 @@
#include "miscadmin.h"

PG_FUNCTION_INFO_V1(ltxtq_in);
Datum ltxtq_in(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(ltxtq_out);
Datum ltxtq_out(PG_FUNCTION_ARGS);


/* parser's states */
Expand Down
4 changes: 0 additions & 4 deletions contrib/pageinspect/btreefuncs.c
Expand Up @@ -35,10 +35,6 @@
#include "utils/rel.h"


extern Datum bt_metap(PG_FUNCTION_ARGS);
extern Datum bt_page_items(PG_FUNCTION_ARGS);
extern Datum bt_page_stats(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(bt_metap);
PG_FUNCTION_INFO_V1(bt_page_items);
PG_FUNCTION_INFO_V1(bt_page_stats);
Expand Down
2 changes: 0 additions & 2 deletions contrib/pageinspect/fsmfuncs.c
Expand Up @@ -25,8 +25,6 @@
#include "storage/fsm_internals.h"
#include "utils/builtins.h"

Datum fsm_page_contents(PG_FUNCTION_ARGS);

/*
* Dumps the contents of a FSM page.
*/
Expand Down
2 changes: 0 additions & 2 deletions contrib/pageinspect/heapfuncs.c
Expand Up @@ -30,8 +30,6 @@
#include "utils/builtins.h"
#include "miscadmin.h"

Datum heap_page_items(PG_FUNCTION_ARGS);


/*
* bits_to_text
Expand Down
4 changes: 0 additions & 4 deletions contrib/pageinspect/rawpage.c
Expand Up @@ -28,10 +28,6 @@

PG_MODULE_MAGIC;

Datum get_raw_page(PG_FUNCTION_ARGS);
Datum get_raw_page_fork(PG_FUNCTION_ARGS);
Datum page_header(PG_FUNCTION_ARGS);

static bytea *get_raw_page_internal(text *relname, ForkNumber forknum,
BlockNumber blkno);

Expand Down
2 changes: 0 additions & 2 deletions contrib/pg_buffercache/pg_buffercache_pages.c
Expand Up @@ -19,8 +19,6 @@

PG_MODULE_MAGIC;

Datum pg_buffercache_pages(PG_FUNCTION_ARGS);


/*
* Record structure holding the to be exposed cache data.
Expand Down
2 changes: 0 additions & 2 deletions contrib/pg_freespacemap/pg_freespacemap.c
Expand Up @@ -14,8 +14,6 @@

PG_MODULE_MAGIC;

Datum pg_freespace(PG_FUNCTION_ARGS);

/*
* Returns the amount of free space on a given page, according to the
* free space map.
Expand Down
2 changes: 0 additions & 2 deletions contrib/pg_prewarm/pg_prewarm.c
Expand Up @@ -28,8 +28,6 @@

PG_MODULE_MAGIC;

extern Datum pg_prewarm(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(pg_prewarm);

typedef enum
Expand Down
4 changes: 0 additions & 4 deletions contrib/pg_stat_statements/pg_stat_statements.c
Expand Up @@ -273,10 +273,6 @@ static bool pgss_save; /* whether to save stats across shutdown */
void _PG_init(void);
void _PG_fini(void);

Datum pg_stat_statements_reset(PG_FUNCTION_ARGS);
Datum pg_stat_statements_1_2(PG_FUNCTION_ARGS);
Datum pg_stat_statements(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(pg_stat_statements_reset);
PG_FUNCTION_INFO_V1(pg_stat_statements_1_2);
PG_FUNCTION_INFO_V1(pg_stat_statements);
Expand Down
7 changes: 0 additions & 7 deletions contrib/pg_trgm/trgm_gin.c
Expand Up @@ -10,16 +10,9 @@


PG_FUNCTION_INFO_V1(gin_extract_trgm);
Datum gin_extract_trgm(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gin_extract_value_trgm);
Datum gin_extract_value_trgm(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gin_extract_query_trgm);
Datum gin_extract_query_trgm(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gin_trgm_consistent);
Datum gin_trgm_consistent(PG_FUNCTION_ARGS);

/*
* This function can only be called if a pre-9.1 version of the GIN operator
Expand Down
19 changes: 0 additions & 19 deletions contrib/pg_trgm/trgm_gist.c
Expand Up @@ -28,34 +28,15 @@ typedef struct


PG_FUNCTION_INFO_V1(gtrgm_in);
Datum gtrgm_in(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gtrgm_out);
Datum gtrgm_out(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gtrgm_compress);
Datum gtrgm_compress(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gtrgm_decompress);
Datum gtrgm_decompress(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gtrgm_consistent);
Datum gtrgm_consistent(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gtrgm_distance);
Datum gtrgm_distance(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gtrgm_union);
Datum gtrgm_union(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gtrgm_same);
Datum gtrgm_same(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gtrgm_penalty);
Datum gtrgm_penalty(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(gtrgm_picksplit);
Datum gtrgm_picksplit(PG_FUNCTION_ARGS);

/* Number of one-bits in an unsigned byte */
static const uint8 number_of_ones[256] = {
Expand Down
11 changes: 0 additions & 11 deletions contrib/pg_trgm/trgm_op.c
Expand Up @@ -17,22 +17,11 @@ PG_MODULE_MAGIC;
float4 trgm_limit = 0.3f;

PG_FUNCTION_INFO_V1(set_limit);
Datum set_limit(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(show_limit);
Datum show_limit(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(show_trgm);
Datum show_trgm(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(similarity);
Datum similarity(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(similarity_dist);
Datum similarity_dist(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(similarity_op);
Datum similarity_op(PG_FUNCTION_ARGS);


Datum
Expand Down
13 changes: 0 additions & 13 deletions contrib/pg_upgrade_support/pg_upgrade_support.c
Expand Up @@ -25,19 +25,6 @@
PG_MODULE_MAGIC;
#endif

Datum set_next_pg_type_oid(PG_FUNCTION_ARGS);
Datum set_next_array_pg_type_oid(PG_FUNCTION_ARGS);
Datum set_next_toast_pg_type_oid(PG_FUNCTION_ARGS);

Datum set_next_heap_pg_class_oid(PG_FUNCTION_ARGS);
Datum set_next_index_pg_class_oid(PG_FUNCTION_ARGS);
Datum set_next_toast_pg_class_oid(PG_FUNCTION_ARGS);

Datum set_next_pg_enum_oid(PG_FUNCTION_ARGS);
Datum set_next_pg_authid_oid(PG_FUNCTION_ARGS);

Datum create_empty_extension(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(set_next_pg_type_oid);
PG_FUNCTION_INFO_V1(set_next_array_pg_type_oid);
PG_FUNCTION_INFO_V1(set_next_toast_pg_type_oid);
Expand Down
17 changes: 0 additions & 17 deletions contrib/pgcrypto/pgp-pgsql.c
Expand Up @@ -41,23 +41,6 @@
/*
* public functions
*/
Datum pgp_sym_encrypt_text(PG_FUNCTION_ARGS);
Datum pgp_sym_encrypt_bytea(PG_FUNCTION_ARGS);
Datum pgp_sym_decrypt_text(PG_FUNCTION_ARGS);
Datum pgp_sym_decrypt_bytea(PG_FUNCTION_ARGS);

Datum pgp_pub_encrypt_text(PG_FUNCTION_ARGS);
Datum pgp_pub_encrypt_bytea(PG_FUNCTION_ARGS);
Datum pgp_pub_decrypt_text(PG_FUNCTION_ARGS);
Datum pgp_pub_decrypt_bytea(PG_FUNCTION_ARGS);

Datum pgp_key_id_w(PG_FUNCTION_ARGS);

Datum pg_armor(PG_FUNCTION_ARGS);
Datum pg_dearmor(PG_FUNCTION_ARGS);

/* function headers */

PG_FUNCTION_INFO_V1(pgp_sym_encrypt_bytea);
PG_FUNCTION_INFO_V1(pgp_sym_encrypt_text);
PG_FUNCTION_INFO_V1(pgp_sym_decrypt_bytea);
Expand Down
2 changes: 0 additions & 2 deletions contrib/pgrowlocks/pgrowlocks.c
Expand Up @@ -43,8 +43,6 @@ PG_MODULE_MAGIC;

PG_FUNCTION_INFO_V1(pgrowlocks);

extern Datum pgrowlocks(PG_FUNCTION_ARGS);

/* ----------
* pgrowlocks:
* returns tids of rows being locked
Expand Down
6 changes: 0 additions & 6 deletions contrib/pgstattuple/pgstatindex.c
Expand Up @@ -47,12 +47,6 @@
* Those functions which have text-type input arg will be deprecated
* in the future release.
*/
extern Datum pgstatindex(PG_FUNCTION_ARGS);
extern Datum pgstatindexbyid(PG_FUNCTION_ARGS);
extern Datum pg_relpages(PG_FUNCTION_ARGS);
extern Datum pg_relpagesbyid(PG_FUNCTION_ARGS);
extern Datum pgstatginindex(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(pgstatindex);
PG_FUNCTION_INFO_V1(pgstatindexbyid);
PG_FUNCTION_INFO_V1(pg_relpages);
Expand Down
3 changes: 0 additions & 3 deletions contrib/pgstattuple/pgstattuple.c
Expand Up @@ -42,9 +42,6 @@ PG_MODULE_MAGIC;
PG_FUNCTION_INFO_V1(pgstattuple);
PG_FUNCTION_INFO_V1(pgstattuplebyid);

extern Datum pgstattuple(PG_FUNCTION_ARGS);
extern Datum pgstattuplebyid(PG_FUNCTION_ARGS);

/*
* struct pgstattuple_type
*
Expand Down
2 changes: 0 additions & 2 deletions contrib/postgres_fdw/option.c
Expand Up @@ -57,8 +57,6 @@ static bool is_libpq_option(const char *keyword);
*
* Raise an ERROR if the option or its value is considered invalid.
*/
extern Datum postgres_fdw_validator(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(postgres_fdw_validator);

Datum
Expand Down
2 changes: 0 additions & 2 deletions contrib/postgres_fdw/postgres_fdw.c
Expand Up @@ -228,8 +228,6 @@ typedef struct
/*
* SQL functions
*/
extern Datum postgres_fdw_handler(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(postgres_fdw_handler);

/*
Expand Down
7 changes: 0 additions & 7 deletions contrib/seg/seg.c
Expand Up @@ -52,13 +52,6 @@ PG_FUNCTION_INFO_V1(seg_lower);
PG_FUNCTION_INFO_V1(seg_upper);
PG_FUNCTION_INFO_V1(seg_center);

Datum seg_in(PG_FUNCTION_ARGS);
Datum seg_out(PG_FUNCTION_ARGS);
Datum seg_size(PG_FUNCTION_ARGS);
Datum seg_lower(PG_FUNCTION_ARGS);
Datum seg_upper(PG_FUNCTION_ARGS);
Datum seg_center(PG_FUNCTION_ARGS);

/*
** GiST support methods
*/
Expand Down
2 changes: 0 additions & 2 deletions contrib/spi/autoinc.c
Expand Up @@ -12,8 +12,6 @@

PG_MODULE_MAGIC;

extern Datum autoinc(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(autoinc);

Datum
Expand Down
2 changes: 0 additions & 2 deletions contrib/spi/insert_username.c
Expand Up @@ -17,8 +17,6 @@

PG_MODULE_MAGIC;

extern Datum insert_username(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(insert_username);

Datum
Expand Down
2 changes: 0 additions & 2 deletions contrib/spi/moddatetime.c
Expand Up @@ -23,8 +23,6 @@ OH, me, I'm Terry Mackintosh <terry@terrym.com>

PG_MODULE_MAGIC;

extern Datum moddatetime(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(moddatetime);

Datum
Expand Down
4 changes: 0 additions & 4 deletions contrib/spi/refint.c
Expand Up @@ -16,10 +16,6 @@

PG_MODULE_MAGIC;

extern Datum check_primary_key(PG_FUNCTION_ARGS);
extern Datum check_foreign_key(PG_FUNCTION_ARGS);


typedef struct
{
char *ident;
Expand Down
3 changes: 0 additions & 3 deletions contrib/spi/timetravel.c
Expand Up @@ -22,9 +22,6 @@
PG_MODULE_MAGIC;

/* AbsoluteTime currabstime(void); */
Datum timetravel(PG_FUNCTION_ARGS);
Datum set_timetravel(PG_FUNCTION_ARGS);
Datum get_timetravel(PG_FUNCTION_ARGS);

typedef struct
{
Expand Down
10 changes: 0 additions & 10 deletions contrib/sslinfo/sslinfo.c
Expand Up @@ -22,16 +22,6 @@
PG_MODULE_MAGIC;


Datum ssl_is_used(PG_FUNCTION_ARGS);
Datum ssl_version(PG_FUNCTION_ARGS);
Datum ssl_cipher(PG_FUNCTION_ARGS);
Datum ssl_client_cert_present(PG_FUNCTION_ARGS);
Datum ssl_client_serial(PG_FUNCTION_ARGS);
Datum ssl_client_dn_field(PG_FUNCTION_ARGS);
Datum ssl_issuer_field(PG_FUNCTION_ARGS);
Datum ssl_client_dn(PG_FUNCTION_ARGS);
Datum ssl_issuer_dn(PG_FUNCTION_ARGS);

static Datum X509_NAME_field_to_text(X509_NAME *name, text *fieldName);
static Datum X509_NAME_to_text(X509_NAME *name);
static Datum ASN1_STRING_to_text(ASN1_STRING *str);
Expand Down
4 changes: 0 additions & 4 deletions contrib/tcn/tcn.c
Expand Up @@ -27,10 +27,6 @@
PG_MODULE_MAGIC;


/* forward declarations */
Datum triggered_change_notification(PG_FUNCTION_ARGS);


/*
* Copy from s (for source) to r (for result), wrapping with q (quote)
* characters and doubling any quote characters found.
Expand Down
12 changes: 1 addition & 11 deletions contrib/test_parser/test_parser.c
Expand Up @@ -38,23 +38,13 @@ typedef struct
} LexDescr;

/*
* prototypes
* functions
*/
PG_FUNCTION_INFO_V1(testprs_start);
Datum testprs_start(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(testprs_getlexeme);
Datum testprs_getlexeme(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(testprs_end);
Datum testprs_end(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(testprs_lextype);
Datum testprs_lextype(PG_FUNCTION_ARGS);

/*
* functions
*/
Datum
testprs_start(PG_FUNCTION_ARGS)
{
Expand Down
2 changes: 0 additions & 2 deletions contrib/test_shm_mq/test.c
Expand Up @@ -23,8 +23,6 @@ PG_FUNCTION_INFO_V1(test_shm_mq);
PG_FUNCTION_INFO_V1(test_shm_mq_pipelined);

void _PG_init(void);
Datum test_shm_mq(PG_FUNCTION_ARGS);
Datum test_shm_mq_pipelined(PG_FUNCTION_ARGS);

static void verify_message(Size origlen, char *origdata, Size newlen,
char *newdata);
Expand Down
23 changes: 2 additions & 21 deletions contrib/tsearch2/tsearch2.c
Expand Up @@ -45,7 +45,7 @@ static Oid current_parser_oid = InvalidOid;
CStringGetDatum(text_to_cstring(text))))

#define UNSUPPORTED_FUNCTION(name) \
Datum name(PG_FUNCTION_ARGS); \
PG_FUNCTION_INFO_V1(name); \
Datum \
name(PG_FUNCTION_ARGS) \
{ \
Expand All @@ -57,30 +57,11 @@ static Oid current_parser_oid = InvalidOid;
/* keep compiler quiet */ \
PG_RETURN_NULL(); \
} \
PG_FUNCTION_INFO_V1(name)
extern int no_such_variable

static Oid GetCurrentDict(void);
static Oid GetCurrentParser(void);

Datum tsa_lexize_byname(PG_FUNCTION_ARGS);
Datum tsa_lexize_bycurrent(PG_FUNCTION_ARGS);
Datum tsa_set_curdict(PG_FUNCTION_ARGS);
Datum tsa_set_curdict_byname(PG_FUNCTION_ARGS);
Datum tsa_token_type_current(PG_FUNCTION_ARGS);
Datum tsa_set_curprs(PG_FUNCTION_ARGS);
Datum tsa_set_curprs_byname(PG_FUNCTION_ARGS);
Datum tsa_parse_current(PG_FUNCTION_ARGS);
Datum tsa_set_curcfg(PG_FUNCTION_ARGS);
Datum tsa_set_curcfg_byname(PG_FUNCTION_ARGS);
Datum tsa_to_tsvector_name(PG_FUNCTION_ARGS);
Datum tsa_to_tsquery_name(PG_FUNCTION_ARGS);
Datum tsa_plainto_tsquery_name(PG_FUNCTION_ARGS);
Datum tsa_headline_byname(PG_FUNCTION_ARGS);
Datum tsa_ts_stat(PG_FUNCTION_ARGS);
Datum tsa_tsearch2(PG_FUNCTION_ARGS);
Datum tsa_rewrite_accum(PG_FUNCTION_ARGS);
Datum tsa_rewrite_finish(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(tsa_lexize_byname);
PG_FUNCTION_INFO_V1(tsa_lexize_bycurrent);
PG_FUNCTION_INFO_V1(tsa_set_curdict);
Expand Down
3 changes: 0 additions & 3 deletions contrib/unaccent/unaccent.c
Expand Up @@ -216,7 +216,6 @@ findReplaceTo(TrieChar *node, unsigned char *src, int srclen)
}

PG_FUNCTION_INFO_V1(unaccent_init);
Datum unaccent_init(PG_FUNCTION_ARGS);
Datum
unaccent_init(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -258,7 +257,6 @@ unaccent_init(PG_FUNCTION_ARGS)
}

PG_FUNCTION_INFO_V1(unaccent_lexize);
Datum unaccent_lexize(PG_FUNCTION_ARGS);
Datum
unaccent_lexize(PG_FUNCTION_ARGS)
{
Expand Down Expand Up @@ -313,7 +311,6 @@ unaccent_lexize(PG_FUNCTION_ARGS)
* Function-like wrapper for dictionary
*/
PG_FUNCTION_INFO_V1(unaccent_dict);
Datum unaccent_dict(PG_FUNCTION_ARGS);
Datum
unaccent_dict(PG_FUNCTION_ARGS)
{
Expand Down
13 changes: 0 additions & 13 deletions contrib/uuid-ossp/uuid-ossp.c
Expand Up @@ -39,19 +39,6 @@
PG_MODULE_MAGIC;


Datum uuid_nil(PG_FUNCTION_ARGS);
Datum uuid_ns_dns(PG_FUNCTION_ARGS);
Datum uuid_ns_url(PG_FUNCTION_ARGS);
Datum uuid_ns_oid(PG_FUNCTION_ARGS);
Datum uuid_ns_x500(PG_FUNCTION_ARGS);

Datum uuid_generate_v1(PG_FUNCTION_ARGS);
Datum uuid_generate_v1mc(PG_FUNCTION_ARGS);
Datum uuid_generate_v3(PG_FUNCTION_ARGS);
Datum uuid_generate_v4(PG_FUNCTION_ARGS);
Datum uuid_generate_v5(PG_FUNCTION_ARGS);


PG_FUNCTION_INFO_V1(uuid_nil);
PG_FUNCTION_INFO_V1(uuid_ns_dns);
PG_FUNCTION_INFO_V1(uuid_ns_url);
Expand Down
1 change: 0 additions & 1 deletion contrib/worker_spi/worker_spi.c
Expand Up @@ -47,7 +47,6 @@ PG_FUNCTION_INFO_V1(worker_spi_launch);

void _PG_init(void);
void worker_spi_main(Datum);
Datum worker_spi_launch(PG_FUNCTION_ARGS);

/* flags set by signal handlers */
static volatile sig_atomic_t got_sighup = false;
Expand Down
11 changes: 0 additions & 11 deletions contrib/xml2/xpath.c
Expand Up @@ -26,17 +26,6 @@

PG_MODULE_MAGIC;

/* externally accessible functions */

Datum xml_is_well_formed(PG_FUNCTION_ARGS);
Datum xml_encode_special_chars(PG_FUNCTION_ARGS);
Datum xpath_nodeset(PG_FUNCTION_ARGS);
Datum xpath_string(PG_FUNCTION_ARGS);
Datum xpath_number(PG_FUNCTION_ARGS);
Datum xpath_bool(PG_FUNCTION_ARGS);
Datum xpath_list(PG_FUNCTION_ARGS);
Datum xpath_table(PG_FUNCTION_ARGS);

/* exported for use by xslt_proc.c */

PgXmlErrorContext *pgxml_parser_init(PgXmlStrictness strictness);
Expand Down
4 changes: 0 additions & 4 deletions contrib/xml2/xslt_proc.c
Expand Up @@ -32,10 +32,6 @@
#endif /* USE_LIBXSLT */


/* externally accessible functions */

Datum xslt_process(PG_FUNCTION_ARGS);

#ifdef USE_LIBXSLT

/* declarations to come from xpath.c */
Expand Down
1 change: 1 addition & 0 deletions src/include/fmgr.h
Expand Up @@ -348,6 +348,7 @@ typedef const Pg_finfo_record *(*PGFInfoFunction) (void);
* doesn't hurt to add PGDLLIMPORT in case they don't.
*/
#define PG_FUNCTION_INFO_V1(funcname) \
Datum funcname(PG_FUNCTION_ARGS); \
extern PGDLLEXPORT const Pg_finfo_record * CppConcat(pg_finfo_,funcname)(void); \
const Pg_finfo_record * \
CppConcat(pg_finfo_,funcname) (void) \
Expand Down
6 changes: 0 additions & 6 deletions src/pl/plperl/plperl.c
Expand Up @@ -240,12 +240,6 @@ static plperl_call_data *current_call_data = NULL;
/**********************************************************************
* Forward declarations
**********************************************************************/
Datum plperl_call_handler(PG_FUNCTION_ARGS);
Datum plperl_inline_handler(PG_FUNCTION_ARGS);
Datum plperl_validator(PG_FUNCTION_ARGS);
Datum plperlu_call_handler(PG_FUNCTION_ARGS);
Datum plperlu_inline_handler(PG_FUNCTION_ARGS);
Datum plperlu_validator(PG_FUNCTION_ARGS);
void _PG_init(void);

static PerlInterpreter *plperl_init_interp(void);
Expand Down
3 changes: 0 additions & 3 deletions src/pl/plpgsql/src/plpgsql.h
Expand Up @@ -950,9 +950,6 @@ extern void plpgsql_HashTableInit(void);
* ----------
*/
extern void _PG_init(void);
extern Datum plpgsql_call_handler(PG_FUNCTION_ARGS);
extern Datum plpgsql_inline_handler(PG_FUNCTION_ARGS);
extern Datum plpgsql_validator(PG_FUNCTION_ARGS);

/* ----------
* Functions in pl_exec.c
Expand Down
11 changes: 1 addition & 10 deletions src/pl/plpython/plpy_main.c
Expand Up @@ -40,16 +40,6 @@
#endif

extern void _PG_init(void);
extern Datum plpython_validator(PG_FUNCTION_ARGS);
extern Datum plpython_call_handler(PG_FUNCTION_ARGS);
extern Datum plpython_inline_handler(PG_FUNCTION_ARGS);

#if PY_MAJOR_VERSION < 3
/* Define aliases plpython2_call_handler etc */
extern Datum plpython2_validator(PG_FUNCTION_ARGS);
extern Datum plpython2_call_handler(PG_FUNCTION_ARGS);
extern Datum plpython2_inline_handler(PG_FUNCTION_ARGS);
#endif

PG_MODULE_MAGIC;

Expand All @@ -58,6 +48,7 @@ PG_FUNCTION_INFO_V1(plpython_call_handler);
PG_FUNCTION_INFO_V1(plpython_inline_handler);

#if PY_MAJOR_VERSION < 3
/* Define aliases plpython2_call_handler etc */
PG_FUNCTION_INFO_V1(plpython2_validator);
PG_FUNCTION_INFO_V1(plpython2_call_handler);
PG_FUNCTION_INFO_V1(plpython2_inline_handler);
Expand Down
2 changes: 0 additions & 2 deletions src/pl/tcl/pltcl.c
Expand Up @@ -192,8 +192,6 @@ static pltcl_proc_desc *pltcl_current_prodesc = NULL;
/**********************************************************************
* Forward declarations
**********************************************************************/
Datum pltcl_call_handler(PG_FUNCTION_ARGS);
Datum pltclu_call_handler(PG_FUNCTION_ARGS);
void _PG_init(void);

static void pltcl_init_interp(pltcl_interp_desc *interp_desc, bool pltrusted);
Expand Down
13 changes: 0 additions & 13 deletions src/test/regress/regress.c
Expand Up @@ -28,18 +28,10 @@
#define RDELIM ')'
#define DELIM ','

extern Datum regress_dist_ptpath(PG_FUNCTION_ARGS);
extern Datum regress_path_dist(PG_FUNCTION_ARGS);
extern PATH *poly2path(POLYGON *poly);
extern Datum interpt_pp(PG_FUNCTION_ARGS);
extern void regress_lseg_construct(LSEG *lseg, Point *pt1, Point *pt2);
extern Datum overpaid(PG_FUNCTION_ARGS);
extern Datum boxarea(PG_FUNCTION_ARGS);
extern char *reverse_name(char *string);
extern int oldstyle_length(int n, text *t);
extern Datum int44in(PG_FUNCTION_ARGS);
extern Datum int44out(PG_FUNCTION_ARGS);
extern Datum make_tuple_indirect(PG_FUNCTION_ARGS);

#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
Expand Down Expand Up @@ -236,7 +228,6 @@ typedef struct

WIDGET *widget_in(char *str);
char *widget_out(WIDGET * widget);
extern Datum pt_in_widget(PG_FUNCTION_ARGS);

#define NARGS 3

Expand Down Expand Up @@ -341,7 +332,6 @@ static int fd17b_level = 0;
static int fd17a_level = 0;
static bool fd17b_recursion = true;
static bool fd17a_recursion = true;
extern Datum funny_dup17(PG_FUNCTION_ARGS);

PG_FUNCTION_INFO_V1(funny_dup17);

Expand Down Expand Up @@ -453,9 +443,6 @@ funny_dup17(PG_FUNCTION_ARGS)
return PointerGetDatum(tuple);
}

extern Datum ttdummy(PG_FUNCTION_ARGS);
extern Datum set_ttdummy(PG_FUNCTION_ARGS);

#define TTDUMMY_INFINITY 999999

static SPIPlanPtr splan = NULL;
Expand Down