mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
d747140279
provided by Andrew.
15 lines
433 B
C
15 lines
433 B
C
/* $PostgreSQL: pgsql/contrib/cube/cubedata.h,v 1.10 2009/06/11 14:48:50 momjian Exp $ */
|
|
|
|
#define CUBE_MAX_DIM (100)
|
|
|
|
typedef struct NDBOX
|
|
{
|
|
int32 vl_len_; /* varlena header (do not touch directly!) */
|
|
unsigned int dim;
|
|
double x[1];
|
|
} NDBOX;
|
|
|
|
#define DatumGetNDBOX(x) ((NDBOX*)DatumGetPointer(x))
|
|
#define PG_GETARG_NDBOX(x) DatumGetNDBOX( PG_DETOAST_DATUM(PG_GETARG_DATUM(x)) )
|
|
#define PG_RETURN_NDBOX(x) PG_RETURN_POINTER(x)
|