From 2a597151c9400c29b077cddeff7899db830e061d Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 18 Mar 2022 09:22:15 +0000 Subject: [PATCH] more TDB --- source/libs/tdb/src/page/tdbPage.c | 3 +++ source/libs/tdb/src/page/tdbPage.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/libs/tdb/src/page/tdbPage.c b/source/libs/tdb/src/page/tdbPage.c index 67ce1de184..3c8ba70a8d 100644 --- a/source/libs/tdb/src/page/tdbPage.c +++ b/source/libs/tdb/src/page/tdbPage.c @@ -23,6 +23,9 @@ typedef struct __attribute__((__packed__)) { u16 nFree; } SPageHdr; +extern SPageMethods pageMethods; +extern SPageMethods pageLargeMethods; + typedef struct __attribute__((__packed__)) { u8 szCell[2]; u8 nxOffset[2]; diff --git a/source/libs/tdb/src/page/tdbPage.h b/source/libs/tdb/src/page/tdbPage.h index fe5b65827a..9170392d23 100644 --- a/source/libs/tdb/src/page/tdbPage.h +++ b/source/libs/tdb/src/page/tdbPage.h @@ -47,9 +47,6 @@ typedef struct { void (*setCellOffset)(SPage *, int, int); } SPageMethods; -extern SPageMethods pageMethods; -extern SPageMethods pageLargeMethods; - // Page footer typedef struct __attribute__((__packed__)) { u8 cksm[4]; -- GitLab