提交 7d88b753 编写于 作者: xpxyr's avatar xpxyr 提交者: geniusgogo

complete SQLite-3.8.1 porting, and auto generate porting code

上级 23151605
...@@ -76,13 +76,14 @@ static malloc_zone_t* _sqliteZone_; ...@@ -76,13 +76,14 @@ static malloc_zone_t* _sqliteZone_;
(_sqliteZone_ ? _sqliteZone_->size(_sqliteZone_,x) : malloc_size(x)) (_sqliteZone_ ? _sqliteZone_->size(_sqliteZone_,x) : malloc_size(x))
#elif defined(SQLITE_OS_RTT) #elif defined(SQLITE_OS_RTT)
#include <rtthread.h>
/* /*
** Use standard C library malloc and free on non-Apple systems. ** Use standard C library malloc and free on non-Apple systems.
** Also used by rt-thread systems if SQLITE_WITHOUT_ZONEMALLOC is defined. ** Also used by rt-thread systems if SQLITE_WITHOUT_ZONEMALLOC is defined.
*/ */
#define SQLITE_MALLOC(x) rt_malloc(x) #define SQLITE_MALLOC(x) rt_malloc((rt_size_t)x)
#define SQLITE_FREE(x) rt_free(x) #define SQLITE_FREE(x) rt_free(x)
#define SQLITE_REALLOC(x,y) rt_realloc((x),(y)) #define SQLITE_REALLOC(x,y) rt_realloc((x),(rt_size_t)(y))
#if (!defined(SQLITE_WITHOUT_MSIZE)) \ #if (!defined(SQLITE_WITHOUT_MSIZE)) \
&& (defined(HAVE_MALLOC_H) && defined(HAVE_MALLOC_USABLE_SIZE)) && (defined(HAVE_MALLOC_H) && defined(HAVE_MALLOC_USABLE_SIZE))
......
...@@ -247,6 +247,7 @@ foreach file { ...@@ -247,6 +247,7 @@ foreach file {
mutex_noop.c mutex_noop.c
mutex_unix.c mutex_unix.c
mutex_w32.c mutex_w32.c
mutex_rtt.c
malloc.c malloc.c
printf.c printf.c
random.c random.c
...@@ -257,6 +258,7 @@ foreach file { ...@@ -257,6 +258,7 @@ foreach file {
os_unix.c os_unix.c
os_win.c os_win.c
os_rtt.c
bitvec.c bitvec.c
pcache.c pcache.c
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册