blockheap.h

来自「linux下的图形界面开发minigui最新源代码」· C头文件 代码 · 共 52 行

H
52
字号
/*** $Id: blockheap.h,v 1.5 2003/08/12 07:46:18 weiym Exp $**** blockheap.h: the head file of heap for block data.** ** Copyright (C) 2003 Feynman Software.** Copyright (C) 2001 ~ 2002 Wei Yongming.**** Create date: 2001/01/10*/#ifndef GUI_BLOCKHEAP_H    #define GUI_BLOCKHEAP_H#define BDS_FREE        0x0000#define BDS_SPECIAL     0x0001#define BDS_USED        0x0002#ifndef _MGUI_GDI_H /* included in include/gdi.h */typedef struct tagBLOCKHEAP{#ifndef _LITE_VERSION    pthread_mutex_t lock;#endif    size_t          bd_size;    size_t          heap_size;    int             free;    void*           heap;} BLOCKHEAP;typedef BLOCKHEAP* PBLOCKHEAP;#ifdef __cplusplusextern "C" {#endif  /* __cplusplus *//* Function definitions */void InitBlockDataHeap (PBLOCKHEAP heap, size_t bd_size, size_t heap_size);void* BlockDataAlloc (PBLOCKHEAP heap);void BlockDataFree (PBLOCKHEAP heap, void* data);void DestroyBlockDataHeap (PBLOCKHEAP heap);#ifdef __cplusplus}#endif  /* __cplusplus */#endif  /* GUI_GDI_H */#endif  /* GUI_BLOCKHEAP_H */

⌨️ 快捷键说明

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