Revision: | 1.1 |
Committed: | Wed Dec 17 09:00:35 2003 UTC (20 years, 6 months ago) by pcg |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | rel-1-2, rel-1-3 |
Log Message: | *** empty log message *** |
# | Content |
---|---|
1 | #ifndef RXVT_SALLOC_H_ |
2 | #define RXVT_SALLOC_H_ |
3 | |
4 | #include <cstdlib> |
5 | |
6 | // small blocks allocator |
7 | |
8 | struct rxvt_salloc { |
9 | struct chain { |
10 | struct chain *next; |
11 | }; |
12 | |
13 | chain *firstblock; |
14 | chain *firstline; |
15 | int firstfree; |
16 | int size; |
17 | |
18 | rxvt_salloc (int size); |
19 | ~rxvt_salloc (); |
20 | |
21 | void *alloc (); |
22 | void free (void *data); |
23 | }; |
24 | |
25 | #endif |