complete SQLite-3.8.1 porting, and auto generate porting code

This commit is contained in:
geniusgogo
2013-11-17 00:41:45 +08:00
committed by geniusgogo
parent 2315160531
commit 7d88b753d6
3 changed files with 91 additions and 86 deletions
+3 -2
View File
@@ -76,13 +76,14 @@ static malloc_zone_t* _sqliteZone_;
(_sqliteZone_ ? _sqliteZone_->size(_sqliteZone_,x) : malloc_size(x))
#elif defined(SQLITE_OS_RTT)
#include <rtthread.h>
/*
** Use standard C library malloc and free on non-Apple systems.
** 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_REALLOC(x,y) rt_realloc((x),(y))
#define SQLITE_REALLOC(x,y) rt_realloc((x),(rt_size_t)(y))
#if (!defined(SQLITE_WITHOUT_MSIZE)) \
&& (defined(HAVE_MALLOC_H) && defined(HAVE_MALLOC_USABLE_SIZE))
File diff suppressed because it is too large Load Diff
+2
View File
@@ -247,6 +247,7 @@ foreach file {
mutex_noop.c
mutex_unix.c
mutex_w32.c
mutex_rtt.c
malloc.c
printf.c
random.c
@@ -257,6 +258,7 @@ foreach file {
os_unix.c
os_win.c
os_rtt.c
bitvec.c
pcache.c