projects
/
dana
/
urxvt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix typos.
[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
{
10
struct chain {
11
struct chain *next;
12
};
13
14
chain *firstblock;
15
chain *firstline;
16
unsigned int firstfree;
17
unsigned int size;
18
19
rxvt_salloc (unsigned int size);
20
~rxvt_salloc ();
21
22
void *alloc ();
23
void *alloc (void *data, unsigned int datalen);
24
void free (void *data);
25
};
26
27
#endif