refact
This commit is contained in:
parent
b2106710a9
commit
0bf8d78c2a
|
@ -357,8 +357,8 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) {
|
|||
// Init the page header
|
||||
pPage->pPageHdr->flags = flags;
|
||||
pPage->pPageHdr->nCells = 0;
|
||||
pPage->pPageHdr->cellCont = pBt->pageSize;
|
||||
pPage->pPageHdr->freeCell = 0;
|
||||
pPage->pPageHdr->cCells = pBt->pageSize;
|
||||
pPage->pPageHdr->fCell = 0;
|
||||
pPage->pPageHdr->nFree = 0;
|
||||
|
||||
TDB_BTREE_ASSERT_FLAG(flags);
|
||||
|
|
|
@ -26,8 +26,8 @@ typedef u8 SCell;
|
|||
typedef struct __attribute__((__packed__)) {
|
||||
u16 flags;
|
||||
u16 nCells;
|
||||
u16 cellCont;
|
||||
u16 freeCell;
|
||||
u16 cCells;
|
||||
u16 fCell;
|
||||
u16 nFree;
|
||||
} SPageHdr;
|
||||
|
||||
|
@ -35,8 +35,8 @@ typedef struct __attribute__((__packed__)) {
|
|||
typedef struct __attribute__((__packed__)) {
|
||||
u16 flags;
|
||||
u8 nCells[3];
|
||||
u8 cellCont[3];
|
||||
u8 freeCell[3];
|
||||
u8 cCells[3];
|
||||
u8 fCell[3];
|
||||
u8 nFree[3];
|
||||
} SLPageHdr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue