mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-24 00:21:05 +08:00
complete SQLite-3.8.1 porting, and auto generate porting code
This commit is contained in:
+3
-2
@@ -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))
|
||||
|
||||
+86
-84
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user