postgresql/contrib/cube/cubedata.h

15 lines
431 B
C
Raw Normal View History

/* $PostgreSQL: pgsql/contrib/cube/cubedata.h,v 1.9 2007/03/07 21:21:12 teodor Exp $ */
#define CUBE_MAX_DIM (100)
2001-03-22 12:01:46 +08:00
typedef struct NDBOX
{
int32 vl_len_; /* varlena header (do not touch directly!) */
2001-03-22 12:01:46 +08:00
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)