ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/salloc.h
(Generate patch)

Comparing rxvt-unicode/src/salloc.h (file contents):
Revision 1.2 by pcg, Sat Jan 31 00:20:21 2004 UTC vs.
Revision 1.5 by sf-exg, Thu Jan 19 13:33:43 2012 UTC

1#ifndef RXVT_SALLOC_H_ 1#ifndef RXVT_SALLOC_H_
2#define RXVT_SALLOC_H_ 2#define RXVT_SALLOC_H_
3 3
4#include <cstdlib> 4#include <stdlib.h>
5 5
6// small blocks allocator 6// small blocks allocator
7 7
8struct rxvt_salloc { 8struct rxvt_salloc
9{
9 struct chain { 10 struct chain {
10 struct chain *next; 11 struct chain *next;
11 }; 12 };
12 13
13 chain *firstblock; 14 chain *firstblock;
17 18
18 rxvt_salloc (unsigned int size); 19 rxvt_salloc (unsigned int size);
19 ~rxvt_salloc (); 20 ~rxvt_salloc ();
20 21
21 void *alloc (); 22 void *alloc ();
23 void *alloc (void *data, unsigned int datalen);
22 void free (void *data); 24 void free (void *data);
23}; 25};
24 26
25#endif 27#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines