projects
/
dana
/
urxvt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
*** empty log message ***
[dana/urxvt.git]
/
src
/
salloc.h
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