#ifndef BTREE_H #define BTREE_H #include "btypes.h" // integer definitions enum treeTypes { BT_CUSTOM, BT_PCHAR, BT_STRING, BT_SINGLE, BT_DOUBLE, BT_INT32, BT_INT64 }; typedef struct blockRun_t { int32 AG; uInt16 start; uInt16 len; } __attribute__((__packed__)); typedef blockRun_t inodeAddr; typedef union { int32 i; uInt32 u; float f; double d; void * p; inodeAddr iAddr; int64 offset; } uPtr; typedef struct bNodeData_t { uPtr link; union { char str[1]; float f; double d; int32 i; int64 x; } key; } __attribute__((__packed__)); #endif