1 | #include "salloc.h" |
1 | #include "salloc.h" |
2 | |
2 | |
3 | #define SALLOC_BLOCK 65536 // size of basic block to allocate |
3 | #define SALLOC_BLOCK 65536 // size of basic block to allocate |
4 | |
4 | |
5 | rxvt_salloc::rxvt_salloc (int size) |
5 | rxvt_salloc::rxvt_salloc (unsigned int size) |
6 | { |
6 | { |
7 | this->size = size < sizeof (chain) ? sizeof (chain) : size; |
7 | this->size = size < sizeof (chain) ? sizeof (chain) : size; |
8 | firstline = 0; |
8 | firstline = 0; |
9 | firstblock = 0; |
9 | firstblock = 0; |
10 | firstfree = SALLOC_BLOCK; |
10 | firstfree = SALLOC_BLOCK; |