EPANET  2.1
All Data Structures Files Functions Modules Pages
mempool.h
1 /*
2 ** mempool.h
3 **
4 ** Header for mempool.c
5 **
6 ** The type alloc_handle_t provides an opaque reference to the
7 ** alloc pool - only the alloc routines know its structure.
8 */
9 
10 #ifndef MEMPOOL_H
11 #define MEMPOOL_H
12 
13 #ifndef DLLEXPORT
14  #ifdef DLL
15  #ifdef __cplusplus
16  #define DLLEXPORT extern "C" __declspec(dllexport)
17  #else
18  #define DLLEXPORT __declspec(dllexport) __stdcall
19  #endif
20  #elif defined(CYGWIN)
21  #define DLLEXPORT __stdcall
22  #else
23  #ifdef __cplusplus
24  #define DLLEXPORT
25  #else
26  #define DLLEXPORT
27  #endif
28  #endif
29 #endif
30 
31 
32 typedef struct
33 {
34  long dummy;
36 
37 DLLEXPORT alloc_handle_t *AllocInit(void);
38 DLLEXPORT char *Alloc(long);
39 DLLEXPORT alloc_handle_t *AllocSetPool(alloc_handle_t *);
40 DLLEXPORT void AllocReset(void);
41 DLLEXPORT void AllocFreePool(void);
42 
43 #endif
Definition: mempool.h:32