Revision: | 1.6 |
Committed: | Mon May 28 14:25:16 2012 UTC (12 years, 1 month ago) by root |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | HEAD |
Changes since 1.5: | +0 -0 lines |
State: | FILE REMOVED |
Log Message: | use one big chunk for all line_t's and rend/text data, get rid fo salloc |
# | User | Rev | Content |
---|---|---|---|
1 | pcg | 1.1 | #ifndef RXVT_SALLOC_H_ |
2 | #define RXVT_SALLOC_H_ | ||
3 | |||
4 | sf-exg | 1.5 | #include <stdlib.h> |
5 | pcg | 1.1 | |
6 | // small blocks allocator | ||
7 | |||
8 | root | 1.4 | struct rxvt_salloc |
9 | { | ||
10 | pcg | 1.1 | struct chain { |
11 | struct chain *next; | ||
12 | }; | ||
13 | |||
14 | chain *firstblock; | ||
15 | chain *firstline; | ||
16 | pcg | 1.2 | unsigned int firstfree; |
17 | unsigned int size; | ||
18 | pcg | 1.1 | |
19 | pcg | 1.2 | rxvt_salloc (unsigned int size); |
20 | pcg | 1.1 | ~rxvt_salloc (); |
21 | |||
22 | void *alloc (); | ||
23 | pcg | 1.3 | void *alloc (void *data, unsigned int datalen); |
24 | pcg | 1.1 | void free (void *data); |
25 | }; | ||
26 | |||
27 | #endif |