]> granicus.if.org Git - postgresql/commitdiff
Remove unnecessary prototypes
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 30 Aug 2016 16:00:00 +0000 (12:00 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 30 Sep 2016 18:04:16 +0000 (14:04 -0400)
Prototypes for functions implementing V1-callable functions are no
longer necessary.

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
contrib/bloom/bloom.h
contrib/btree_gist/btree_gist.h
contrib/dblink/dblink.h
contrib/isn/isn.h
contrib/pgcrypto/pgcrypto.h
contrib/tablefunc/tablefunc.h

index bc451a00dbe2ca43242faf86ec523b462fae0cea..18f5127059d46f9ef1ab1e17ba0f0c4812edc67a 100644 (file)
@@ -174,7 +174,6 @@ typedef BloomScanOpaqueData *BloomScanOpaque;
 
 /* blutils.c */
 extern void _PG_init(void);
-extern Datum blhandler(PG_FUNCTION_ARGS);
 extern void initBloomState(BloomState *state, Relation index);
 extern void BloomFillMetapage(Relation index, Page metaPage);
 extern void BloomInitMetapage(Relation index);
index dcffbb517841bf58baefb77be03abd978aef5f2a..191202aede8e967ae6dd2ecf808b18e928496433 100644 (file)
@@ -34,14 +34,4 @@ enum gbtree_type
        gbt_t_inet
 };
 
-
-
-/*
- * Generic btree functions
- */
-
-Datum          gbtreekey_in(PG_FUNCTION_ARGS);
-
-Datum          gbtreekey_out(PG_FUNCTION_ARGS);
-
 #endif
index 1b9491215247af27437b6b92d0c8f4411b13bfad..110223696748dd5dc0099ab02a7b03b6387347bb 100644 (file)
 
 #include "fmgr.h"
 
-/*
- * External declarations
- */
-extern Datum dblink_connect(PG_FUNCTION_ARGS);
-extern Datum dblink_disconnect(PG_FUNCTION_ARGS);
-extern Datum dblink_open(PG_FUNCTION_ARGS);
-extern Datum dblink_close(PG_FUNCTION_ARGS);
-extern Datum dblink_fetch(PG_FUNCTION_ARGS);
-extern Datum dblink_record(PG_FUNCTION_ARGS);
-extern Datum dblink_send_query(PG_FUNCTION_ARGS);
-extern Datum dblink_get_result(PG_FUNCTION_ARGS);
-extern Datum dblink_get_connections(PG_FUNCTION_ARGS);
-extern Datum dblink_is_busy(PG_FUNCTION_ARGS);
-extern Datum dblink_cancel_query(PG_FUNCTION_ARGS);
-extern Datum dblink_error_message(PG_FUNCTION_ARGS);
-extern Datum dblink_exec(PG_FUNCTION_ARGS);
-extern Datum dblink_get_pkey(PG_FUNCTION_ARGS);
-extern Datum dblink_build_sql_insert(PG_FUNCTION_ARGS);
-extern Datum dblink_build_sql_delete(PG_FUNCTION_ARGS);
-extern Datum dblink_build_sql_update(PG_FUNCTION_ARGS);
-extern Datum dblink_current_query(PG_FUNCTION_ARGS);
-extern Datum dblink_get_notify(PG_FUNCTION_ARGS);
-extern Datum dblink_fdw_validator(PG_FUNCTION_ARGS);
-
 #endif   /* DBLINK_H */
index d8291c2b06c87df98883e34f43062347c8c3bff7..e1a52b27d516d3397976c69dd01354bd13967d63 100644 (file)
@@ -30,25 +30,6 @@ typedef uint64 ean13;
 #define PG_GETARG_EAN13(n) PG_GETARG_INT64(n)
 #define PG_RETURN_EAN13(x) PG_RETURN_INT64(x)
 
-extern Datum isn_out(PG_FUNCTION_ARGS);
-extern Datum ean13_out(PG_FUNCTION_ARGS);
-extern Datum ean13_in(PG_FUNCTION_ARGS);
-extern Datum isbn_in(PG_FUNCTION_ARGS);
-extern Datum ismn_in(PG_FUNCTION_ARGS);
-extern Datum issn_in(PG_FUNCTION_ARGS);
-extern Datum upc_in(PG_FUNCTION_ARGS);
-
-extern Datum isbn_cast_from_ean13(PG_FUNCTION_ARGS);
-extern Datum ismn_cast_from_ean13(PG_FUNCTION_ARGS);
-extern Datum issn_cast_from_ean13(PG_FUNCTION_ARGS);
-extern Datum upc_cast_from_ean13(PG_FUNCTION_ARGS);
-
-extern Datum is_valid(PG_FUNCTION_ARGS);
-extern Datum make_valid(PG_FUNCTION_ARGS);
-
-extern Datum accept_weak_input(PG_FUNCTION_ARGS);
-extern Datum weak_input_status(PG_FUNCTION_ARGS);
-
 extern void initialize(void);
 
 #endif   /* ISN_H */
index dfc7a10590f1b7482d16c0f4f29b590be15e9954..65a1ed315748bcd1a55a18cca47a95433e0bec00 100644 (file)
 
 #include "fmgr.h"
 
-/* exported functions */
-Datum          pg_digest(PG_FUNCTION_ARGS);
-Datum          pg_hmac(PG_FUNCTION_ARGS);
-Datum          pg_gen_salt(PG_FUNCTION_ARGS);
-Datum          pg_gen_salt_rounds(PG_FUNCTION_ARGS);
-Datum          pg_crypt(PG_FUNCTION_ARGS);
-Datum          pg_encrypt(PG_FUNCTION_ARGS);
-Datum          pg_decrypt(PG_FUNCTION_ARGS);
-Datum          pg_encrypt_iv(PG_FUNCTION_ARGS);
-Datum          pg_decrypt_iv(PG_FUNCTION_ARGS);
-Datum          pg_random_bytes(PG_FUNCTION_ARGS);
-Datum          pg_random_uuid(PG_FUNCTION_ARGS);
-
 #endif
index 3477ed823f990f0f7d99b0ee69370d4ba9c07208..34d44a8fa1f96325d5c018fccefb333039da20a7 100644 (file)
 
 #include "fmgr.h"
 
-/*
- * External declarations
- */
-extern Datum normal_rand(PG_FUNCTION_ARGS);
-extern Datum crosstab(PG_FUNCTION_ARGS);
-extern Datum crosstab_hash(PG_FUNCTION_ARGS);
-extern Datum connectby_text(PG_FUNCTION_ARGS);
-extern Datum connectby_text_serial(PG_FUNCTION_ARGS);
-
 #endif   /* TABLEFUNC_H */