mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +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:
@ -25,29 +25,4 @@ typedef enum
|
||||
|
||||
extern int bytea_output; /* ByteaOutputType, but int for GUC enum */
|
||||
|
||||
/* functions are in utils/adt/varlena.c */
|
||||
extern Datum byteain(PG_FUNCTION_ARGS);
|
||||
extern Datum byteaout(PG_FUNCTION_ARGS);
|
||||
extern Datum bytearecv(PG_FUNCTION_ARGS);
|
||||
extern Datum byteasend(PG_FUNCTION_ARGS);
|
||||
extern Datum byteaoctetlen(PG_FUNCTION_ARGS);
|
||||
extern Datum byteaGetByte(PG_FUNCTION_ARGS);
|
||||
extern Datum byteaGetBit(PG_FUNCTION_ARGS);
|
||||
extern Datum byteaSetByte(PG_FUNCTION_ARGS);
|
||||
extern Datum byteaSetBit(PG_FUNCTION_ARGS);
|
||||
extern Datum byteaeq(PG_FUNCTION_ARGS);
|
||||
extern Datum byteane(PG_FUNCTION_ARGS);
|
||||
extern Datum bytealt(PG_FUNCTION_ARGS);
|
||||
extern Datum byteale(PG_FUNCTION_ARGS);
|
||||
extern Datum byteagt(PG_FUNCTION_ARGS);
|
||||
extern Datum byteage(PG_FUNCTION_ARGS);
|
||||
extern Datum byteacmp(PG_FUNCTION_ARGS);
|
||||
extern Datum bytea_sortsupport(PG_FUNCTION_ARGS);
|
||||
extern Datum byteacat(PG_FUNCTION_ARGS);
|
||||
extern Datum byteapos(PG_FUNCTION_ARGS);
|
||||
extern Datum bytea_substr(PG_FUNCTION_ARGS);
|
||||
extern Datum bytea_substr_no_len(PG_FUNCTION_ARGS);
|
||||
extern Datum byteaoverlay(PG_FUNCTION_ARGS);
|
||||
extern Datum byteaoverlay_no_len(PG_FUNCTION_ARGS);
|
||||
|
||||
#endif /* BYTEA_H */
|
||||
|
Reference in New Issue
Block a user