lmalloc.h

来自「一个操作系统源代码 用于嵌入式设备 在Vc++环境下仿真 成功移植到多款处理器上」· C头文件 代码 · 共 45 行

H
45
字号
/*************************************************************************
 *
 *  Copyright (C) Asic Center. 2001
 *  All Rights Reserved
 *
 *  Filename : malloc.h
 *  Function : 
 *  Revision :
 *          2001/10/16  Pessia      Create this file 
 ************************************************************************/
#ifndef LMALLOC_H
#define LMALLOC_H

#include <asixdef.h>

/* the material to be allocated */
/* 500000 bytes */
/*Modified by DSA 2004.07.02*/
//#define		Heapsize	500000
#define		Heapsize 5000000
/*end M*/

//#define		Memsem		USERSEMSTART + 1//semid

/* Disable debug */
#define		Memdebug	0	
//#define		DEBUG_CHL

#ifdef HOT_RESET_DEBUG_CODE_ENABLE
PUBLIC void SysLmallocInit(void);
#endif

PUBLIC void *SysLmalloc(DWORD nb);
PUBLIC void SysLfree(void * blk);
PUBLIC void *SysLrealloc(void *area, DWORD size);
PUBLIC void *SysLcalloc(DWORD size);

/* we don't use semaphore to wait for enough memory */
//void *SysLmallocw(WORD nb);
//void *SysLcallocw(unsigned size);

#endif /* LMALLOC_H */

 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?