FreeBASIC  0.91.0
pool.bi
Go to the documentation of this file.
1 #ifndef __POOL_BI__
2 #define __POOL_BI__
3 
4 #include once "list.bi"
5 
6 type TPOOLITEM
7  idx as integer
8 end type
9 
10 type TPOOL
11  chunks as integer
12  chunksize as integer
13  chunkTb as TLIST ptr
14 end type
15 
16 declare sub poolInit _
17  ( _
18  byval pool as TPOOL ptr, _
19  byval items as integer, _
20  byval minlen as integer, _
21  byval maxlen as integer _
22  )
23 
24 
25 declare sub poolEnd(byval pool as TPOOL ptr)
26 
27 declare function poolNewItem _
28  ( _
29  byval pool as TPOOL ptr, _
30  byval len_ as integer _
31  ) as any ptr
32 
33 declare sub poolDelItem _
34  ( _
35  byval pool as TPOOL ptr, _
36  byval node as any ptr _
37  )
38 
39 
40 #endif '' __POOL_BI__
41