| Revision: | 1.3 |
| Committed: | Sun May 9 18:19:49 2004 UTC (22 years, 5 months ago) by pcg |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | rel-7_3, rel-7_1, rel-7_0, rel-7_6, rel-7_5, rel-9_0, rel-6_2, rel-6_3, rel-7_9, rel-7_8, rel-5_5, rel-5_4, rel-5_7, rel-5_1, rel-5_0, rel-5_3, rel-5_2, rel-4_4, rel-7_7, rel-4_6, rel-4_7, rel-5_9, rel-5_8, rel-4_2, rel-4_3, rel-3_7, rel-3_8, rel-3_5, rel-3_4, rel-3_3, rel-3_2, rel-3_0, rel-7_4, rel-8_5a, rel-7_3a, rel-6_0, rel-8_9, rel-8_8, rel-6_1, rel-3_6, rel-8_0, rel-8_1, rel-8_2, rel-8_3, rel-8_4, rel-8_7, rel-8_6, rel-4_1, rel-9_02, rel-9_01, rel-9_05, rel-7_2, rel-4_0, rel-4_8, rel-4_9 |
| Changes since 1.2: | +1 -0 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 *alloc (void *data, unsigned int datalen); |
| 23 | void free (void *data); |
| 24 | }; |
| 25 | |
| 26 | #endif |