Added some comments
This commit is contained in:
parent
760ee8362e
commit
76cb7a0b33
1 changed files with 6 additions and 0 deletions
|
@ -69,10 +69,16 @@ new_mem(p) register p_info p; {
|
||||||
if (p->i_max >= p->i_top) { /* No more free elements */
|
if (p->i_max >= p->i_top) { /* No more free elements */
|
||||||
sz = p->i_size;
|
sz = p->i_size;
|
||||||
#if BIGMACHINE
|
#if BIGMACHINE
|
||||||
|
/*
|
||||||
|
Do not worry about size. Just double it.
|
||||||
|
*/
|
||||||
p->i_size += p->i_size;
|
p->i_size += p->i_size;
|
||||||
if (! p->i_size)
|
if (! p->i_size)
|
||||||
p->i_size += p->i_incr * p->i_esize;
|
p->i_size += p->i_incr * p->i_esize;
|
||||||
#else
|
#else
|
||||||
|
/*
|
||||||
|
Worry about size, so only increment in chunks of i_incr.
|
||||||
|
*/
|
||||||
p->i_size += p->i_incr * p->i_esize;
|
p->i_size += p->i_incr * p->i_esize;
|
||||||
#endif
|
#endif
|
||||||
p->i_ptr = !p->i_ptr ?
|
p->i_ptr = !p->i_ptr ?
|
||||||
|
|
Loading…
Reference in a new issue