📄 heap.h
字号:
/****************************************************************************** * * Copyright (c) 2003 Gerhard W. Gruber * * PROJECT: pICE * $Source: /cvsroot/pice/pice/module/heap.h,v $ * $Revision: 1.3 $ * $Date: 2004/02/17 23:07:36 $ * $Author: lightweave $ * $Name: $ * * $Log: heap.h,v $ * Revision 1.3 2004/02/17 23:07:36 lightweave * * Improved the DEBUG facillity and replaced the configuration handler with a * new code which now can read MS Windows INI style files. See CHANGES.txt for * more details. * Also added a macro which prevents compiling for kernels before 2.4.19. * * Revision 1.2 2003/06/18 22:00:22 lightweave * DEBUG and DEBUG_SERIAL added * * *****************************************************************************//*++Copyright (c) 1998-2001 Klaus P. GerlicherModule Name: heap.hAbstract: HEADER for heap.cEnvironment: LINUX 2.2.X Kernel mode onlyAuthor: Klaus P. GerlicherRevision History: 13-Mar-2001: createdCopyright notice: This file may be distributed under the terms of the GNU Public License.--*/#ifndef _HEAP_H#define _HEAP_HBOOLEAN PICE_HeapInit(ULONG HeapSize);VOID PICE_HeapExit(void);VOID *PICE_HeapAlloc(ULONG size);VOID *PICE_HeapReAlloc(void *p, ULONG size);VOID PICE_HeapFree(PVOID p);VOID PICE_HeapDump(void);#ifdef __PICE__DEBUG__void PICE_HeapDumpDebug(void);#endif // __PICE__DEBUG__#define DECL_TEMP char* _pTemp#define ALLOC_TEMP(_size) _pTemp = PICE_HeapAlloc(_size);#define FREE_TEMP() if(_pTemp)PICE_HeapFree(_pTemp);#define TEMP _pTemp #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -