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

more

上级 650a40e7
# for tdb
set(TDB_SUBDIRS "db")
foreach(TDB_SUBDIR ${TDB_SUBDIRS})
aux_source_directory("src/${TDB_SUBDIR}" TDB_SRC)
......@@ -17,6 +17,16 @@ target_link_libraries(
PUBLIC util
)
# for tdb_sqlite
add_library(tdb_sqlite "")
target_sources(tdb_sqlite
PRIVATE
"src/sqlite/pcache.c"
"src/sqlite/pcache1.c"
)
target_include_directories(tdb_sqlite PUBLIC "src/sqliteinc")
# for test
if(${BUILD_TEST})
add_subdirectory(test)
endif(${BUILD_TEST})
/*
** 2001 September 15
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
** Internal interface definitions for SQLite.
**
*/
#include <stdint.h>
#ifndef SQLITEINT_H
#define SQLITEINT_H
typedef int8_t i8;
typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef struct sqlite3_pcache_page {
void *pBuf; /* The content of the page */
void *pExtra; /* Extra information associated with the page */
} sqlite3_pcache_page;
typedef u32 Pgno;
typedef struct Pager Pager;
#include "pcache.h"
#endif /* SQLITEINT_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册