ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/salloc.h
Revision: 1.4
Committed: Wed Nov 5 14:43:54 2008 UTC (15 years, 6 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: before_dynamic_fontidx, rel-9_14, rel-9_11, rel-9_10, rel-9_12, dynamic_fontidx, rel-9_09, rel-9_06, rel-9_07
Changes since 1.3: +2 -1 lines
Log Message:
minor overlay refactoring, syntax changes

File Contents

# 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 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