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:
@@ -28,16 +28,4 @@ extern char *asc_tolower(const char *buff, size_t nbytes);
|
||||
extern char *asc_toupper(const char *buff, size_t nbytes);
|
||||
extern char *asc_initcap(const char *buff, size_t nbytes);
|
||||
|
||||
extern Datum timestamp_to_char(PG_FUNCTION_ARGS);
|
||||
extern Datum timestamptz_to_char(PG_FUNCTION_ARGS);
|
||||
extern Datum interval_to_char(PG_FUNCTION_ARGS);
|
||||
extern Datum to_timestamp(PG_FUNCTION_ARGS);
|
||||
extern Datum to_date(PG_FUNCTION_ARGS);
|
||||
extern Datum numeric_to_number(PG_FUNCTION_ARGS);
|
||||
extern Datum numeric_to_char(PG_FUNCTION_ARGS);
|
||||
extern Datum int4_to_char(PG_FUNCTION_ARGS);
|
||||
extern Datum int8_to_char(PG_FUNCTION_ARGS);
|
||||
extern Datum float4_to_char(PG_FUNCTION_ARGS);
|
||||
extern Datum float8_to_char(PG_FUNCTION_ARGS);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user