修改lvgl。cjson内存管理器
This commit is contained in:
1 parent
552a916705
commit
541738319d
11 files changed
+100
-26
No files matched your search
@@ -20727,13 +20727,13 @@ static malloc_zone_t* _sqliteZone_;
|
||||
** Use standard C library malloc and free on non-Apple systems.
|
||||
** Also used by rt-thread systems if SQLITE_WITHOUT_ZONEMALLOC is defined.
|
||||
*/
|
||||
extern struct rt_memheap sram_DTCMRAM;
|
||||
#define SQLITE_MALLOC(x) rt_memheap_alloc(&sram_DTCMRAM,(rt_size_t)x)
|
||||
/*extern struct rt_memheap sdram_heap;
|
||||
#define SQLITE_MALLOC(x) rt_memheap_alloc(&sdram_heap,(rt_size_t)x)
|
||||
#define SQLITE_FREE(x) rt_memheap_free(x)
|
||||
#define SQLITE_REALLOC(x,y) rt_memheap_realloc(&sram_DTCMRAM,(x),(rt_size_t)(y))
|
||||
//#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),(rt_size_t)(y))
|
||||
#define SQLITE_REALLOC(x,y) rt_memheap_realloc(&sdram_heap,(x),(rt_size_t)(y))*/
|
||||
#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),(rt_size_t)(y))
|
||||
|
||||
#if (!defined(SQLITE_WITHOUT_MSIZE)) \
|
||||
&& (defined(HAVE_MALLOC_H) && defined(HAVE_MALLOC_USABLE_SIZE))
|
||||
|
||||
Reference in new issue
Block a user