Revision: | 1.2 |
Committed: | Sat Jan 31 00:20:21 2004 UTC (20 years, 5 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 *** |
# | User | Rev | Content |
---|---|---|---|
1 | pcg | 1.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 | pcg | 1.2 | unsigned int firstfree; |
16 | unsigned int size; | ||
17 | pcg | 1.1 | |
18 | pcg | 1.2 | rxvt_salloc (unsigned int size); |
19 | pcg | 1.1 | ~rxvt_salloc (); |
20 | |||
21 | void *alloc (); | ||
22 | void free (void *data); | ||
23 | }; | ||
24 | |||
25 | #endif |