mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
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>
This commit is contained in:
@@ -66,50 +66,4 @@ typedef struct
|
||||
/* Mask that will cover exactly one byte, i.e. BITS_PER_BYTE bits */
|
||||
#define BITMASK 0xFF
|
||||
|
||||
|
||||
extern Datum bit_in(PG_FUNCTION_ARGS);
|
||||
extern Datum bit_out(PG_FUNCTION_ARGS);
|
||||
extern Datum bit_recv(PG_FUNCTION_ARGS);
|
||||
extern Datum bit_send(PG_FUNCTION_ARGS);
|
||||
extern Datum bittypmodin(PG_FUNCTION_ARGS);
|
||||
extern Datum bittypmodout(PG_FUNCTION_ARGS);
|
||||
extern Datum varbit_in(PG_FUNCTION_ARGS);
|
||||
extern Datum varbit_out(PG_FUNCTION_ARGS);
|
||||
extern Datum varbit_recv(PG_FUNCTION_ARGS);
|
||||
extern Datum varbit_send(PG_FUNCTION_ARGS);
|
||||
extern Datum varbittypmodin(PG_FUNCTION_ARGS);
|
||||
extern Datum varbittypmodout(PG_FUNCTION_ARGS);
|
||||
extern Datum bit(PG_FUNCTION_ARGS);
|
||||
extern Datum varbit_transform(PG_FUNCTION_ARGS);
|
||||
extern Datum varbit(PG_FUNCTION_ARGS);
|
||||
extern Datum biteq(PG_FUNCTION_ARGS);
|
||||
extern Datum bitne(PG_FUNCTION_ARGS);
|
||||
extern Datum bitlt(PG_FUNCTION_ARGS);
|
||||
extern Datum bitle(PG_FUNCTION_ARGS);
|
||||
extern Datum bitgt(PG_FUNCTION_ARGS);
|
||||
extern Datum bitge(PG_FUNCTION_ARGS);
|
||||
extern Datum bitcmp(PG_FUNCTION_ARGS);
|
||||
|
||||
/* avoid the names bitand and bitor, since they are C++ keywords */
|
||||
extern Datum bit_and(PG_FUNCTION_ARGS);
|
||||
extern Datum bit_or(PG_FUNCTION_ARGS);
|
||||
extern Datum bitxor(PG_FUNCTION_ARGS);
|
||||
extern Datum bitnot(PG_FUNCTION_ARGS);
|
||||
extern Datum bitshiftleft(PG_FUNCTION_ARGS);
|
||||
extern Datum bitshiftright(PG_FUNCTION_ARGS);
|
||||
extern Datum bitcat(PG_FUNCTION_ARGS);
|
||||
extern Datum bitsubstr(PG_FUNCTION_ARGS);
|
||||
extern Datum bitsubstr_no_len(PG_FUNCTION_ARGS);
|
||||
extern Datum bitoverlay(PG_FUNCTION_ARGS);
|
||||
extern Datum bitoverlay_no_len(PG_FUNCTION_ARGS);
|
||||
extern Datum bitlength(PG_FUNCTION_ARGS);
|
||||
extern Datum bitoctetlength(PG_FUNCTION_ARGS);
|
||||
extern Datum bitfromint4(PG_FUNCTION_ARGS);
|
||||
extern Datum bittoint4(PG_FUNCTION_ARGS);
|
||||
extern Datum bitfromint8(PG_FUNCTION_ARGS);
|
||||
extern Datum bittoint8(PG_FUNCTION_ARGS);
|
||||
extern Datum bitposition(PG_FUNCTION_ARGS);
|
||||
extern Datum bitsetbit(PG_FUNCTION_ARGS);
|
||||
extern Datum bitgetbit(PG_FUNCTION_ARGS);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user