Revision: | 1.2 |
Committed: | Sat Jan 31 00:20:21 2004 UTC (20 years, 6 months ago) by pcg |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | rel-1_9, rel-2_1_0, rel-2_3, rel-2_8, rel-2_4, rel-2_0, rel-2_5, before_astyle, rel-2_2, after_astyle, rel-2_7 |
Changes since 1.1: | +3 -3 lines |
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 | unsigned int firstfree; |
16 | unsigned int size; |
17 | |
18 | rxvt_salloc (unsigned int size); |
19 | ~rxvt_salloc (); |
20 | |
21 | void *alloc (); |
22 | void free (void *data); |
23 | }; |
24 | |
25 | #endif |