Mercurial > hg > octave-lyh
diff src/pt-const.cc @ 1170:9963da2d3755
[project @ 1995-03-18 04:40:11 by jwe]
author | jwe |
---|---|
date | Sat, 18 Mar 1995 04:40:16 +0000 |
parents | e2036dce97ea |
children | b6360f2d4fa6 |
line wrap: on
line diff
--- a/src/pt-const.cc +++ b/src/pt-const.cc @@ -37,14 +37,11 @@ // tree_constant class. // Pointer to the blocks of memory we manage. -static tree_constant *newlist; +static tree_constant *newlist = 0; // Multiplier for allocating new blocks. static const int newlist_grow_size = 128; -// Pointer to the last element of the last block allocated. -static tree_constant *newlist_tail = 0; - Octave_map tree_constant::map_value (void) const { @@ -79,11 +76,6 @@ newlist[i].freeptr = &newlist[i+1]; newlist[i].freeptr = 0; - - if (newlist_tail) - newlist_tail->freeptr = newlist; - - newlist_tail = &newlist[i]; } tree_constant *tmp = newlist;