try catch 不处理动态内存,拆分riscv_rest

This commit is contained in:
2025-06-24 17:59:23 +08:00
parent d9baa7f7a3
commit b64401d556
14 changed files with 115 additions and 83 deletions

View File

@@ -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