try catch 不处理动态内存,拆分riscv_rest
This commit is contained in:
@@ -11,18 +11,22 @@
|
||||
|
||||
|
||||
|
||||
typedef struct _map_def{
|
||||
size_t map_size;
|
||||
size_t mam_used;
|
||||
size_t mem_map[0];
|
||||
}map_def;
|
||||
// typedef struct _map_def{
|
||||
// size_t map_size;
|
||||
// size_t mam_used;
|
||||
// size_t mem_map[0];
|
||||
// }map_def;
|
||||
|
||||
|
||||
void __mem_clear(map_def **m);
|
||||
void __mem_mov(map_def **d,map_def **s);
|
||||
// void __mem_clear(map_def **m);
|
||||
// void __mem_mov(map_def **d,map_def **s);
|
||||
|
||||
void *mem_calloc(size_t memb_num, size_t memb_size);
|
||||
void *mem_malloc(size_t size);
|
||||
void mem_free(void *p);
|
||||
// void *mem_calloc(size_t memb_num, size_t memb_size);
|
||||
// void *mem_malloc(size_t size);
|
||||
// void mem_free(void *p);
|
||||
|
||||
#define mem_calloc calloc
|
||||
#define mem_malloc malloc
|
||||
#define mem_free free
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user