📄 mcoutmm.h
字号:
/*
*******************************************************************************
* The real-time kernel "rtCell" *
* Copyright 2007 taowentao, allrights reserved. *
*----------------------------Modifying from minix-----------------------------*
* File : mcOutMM.h *
* By : taowentao 2003-05-25 *
* 2004-12-30 *
*******************************************************************************
*/
#if !defined(MCOUTMM_H)
#define MCOUTMM_H
#if !defined(MCCLIB_H)
#include "giCell\Engine\mcCLib.h"
#endif
/*
*******************************************************************************
* The Global functions needed by microKernel *
*******************************************************************************
*/
#define NR_HOLES (256) /* max # entries in hole table */
#define NIL_HOLE (NULL)
typedef struct _FreeMemory *PFMM;
struct _FreeMemory {
BYTE *h_base; /* where does the hole begin? */
size_t h_len; /* how big is the hole? */
PFMM h_next;
};
typedef struct _FreeMemory FMM;
/*
*******************************************************************************
* *
*******************************************************************************
*/
void _cdecl_ mmAddToMemPool(BYTE *base, size_t size);
void _cdecl_ mmMemoryInit(BYTE *base, size_t size);
void * _cdecl_ mmAlloc_mem(size_t clicks);
void _cdecl_ mmFree_mem(BYTE *base, size_t clicks);
DWORD _cdecl_ mmGetFreeMemorySize(void);
/*
*******************************************************************************
* *
*******************************************************************************
*/
#endif /*end of mcOutMM.h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -