#ifndef BS_DATE_H #define BS_DATE_H #include "postgres.h" #include "fmgr.h" #include "src/date_converter.h" #include "utils/builtins.h" #include "utils/date.h" #include "utils/datetime.h" #include "utils/timestamp.h" typedef int32 BSDateADT; // bs_date_casts.c Datum text_to_bs_date(PG_FUNCTION_ARGS); // bs_date_funcs.c Datum ad_to_bs(PG_FUNCTION_ARGS); Datum bs_date_to_char(PG_FUNCTION_ARGS); // bs_date_io.c Datum bs_date_in(PG_FUNCTION_ARGS); Datum bs_date_out(PG_FUNCTION_ARGS); // bs_date_io.c Datum bs_eq(PG_FUNCTION_ARGS); Datum bs_ne(PG_FUNCTION_ARGS); Datum bs_lt(PG_FUNCTION_ARGS); Datum bs_le(PG_FUNCTION_ARGS); Datum bs_gt(PG_FUNCTION_ARGS); Datum bs_ge(PG_FUNCTION_ARGS); Datum bs_date_cmp(PG_FUNCTION_ARGS); // bs_date_utils.c BSDateADT parse_bs_date_internal(const char *str); #endif