初步实现异常捕获机制
This commit is contained in:
28
soft/mystdlib.h
Normal file
28
soft/mystdlib.h
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
|
||||
#ifndef mystdlib_h__
|
||||
#define mystdlib_h__
|
||||
|
||||
#include "stdint.h"
|
||||
#include "stdlib.h"
|
||||
|
||||
|
||||
#define MAP_SIZE_STEP 50
|
||||
|
||||
|
||||
|
||||
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_calloc(size_t memb_size,size_t memb_num);
|
||||
void *mem_malloc(size_t size);
|
||||
void mem_free(void *p);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user