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

Comparing rxvt-unicode/src/salloc.C (file contents):
Revision 1.2 by pcg, Wed Dec 24 09:07:01 2003 UTC vs.
Revision 1.4 by pcg, Sat Jan 31 00:20:21 2004 UTC

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
5rxvt_salloc::rxvt_salloc (int size) 5rxvt_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;
49} 49}
50 50
51void 51void
52rxvt_salloc::free (void *data) 52rxvt_salloc::free (void *data)
53{ 53{
54return;//D
55 chain *line = (chain *)data; 54 chain *line = (chain *)data;
56 line->next = firstline; 55 line->next = firstline;
57 firstline = line; 56 firstline = line;
58} 57}
59 58

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines