提交 fe1bd867 编写于 作者: H Hongze Cheng

more TDB

上级 f16c1eea
......@@ -56,8 +56,9 @@ struct SPage {
};
// Macros
#define TDB_PAGE_CELL_IDX_AT(pPage, idx) ((pPage)->aCellIdx[idx])
#define TDB_PAGE_CELL_AT(pPage, idx) ((pPage)->pData + TDB_PAGE_CELL_IDX_AT(pPage, idx))
#define TDB_PAGE_CELL_OFFSET_SIZE(pPage) (((pPage)->pageSize < 65536) ? 2 : 3)
#define TDB_PAGE_CELL_OFFSET_AT(pPage, idx) ((pPage)->aCellIdx[idx])
#define TDB_PAGE_CELL_AT(pPage, idx) ((pPage)->pData + TDB_PAGE_CELL_OFFSET_AT(pPage, idx))
// For page lock
#define P_LOCK_SUCC 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册