29 lines
399 B
C
29 lines
399 B
C
|
|
|
|
#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
|