# HG changeset patch # User jwe # Date 795501616 0 # Node ID 9963da2d37554ed6f8153d7f84032cea5fbda1dd # Parent 95a92c971e1ef21e6b31b876f62a2414934163ac [project @ 1995-03-18 04:40:11 by jwe] diff -r 95a92c971e1e -r 9963da2d3755 src/pt-const.cc --- a/src/pt-const.cc Wed Mar 15 05:38:23 1995 +0000 +++ b/src/pt-const.cc Sat Mar 18 04:40:16 1995 +0000 @@ -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; diff -r 95a92c971e1e -r 9963da2d3755 src/tc-rep.cc --- a/src/tc-rep.cc Wed Mar 15 05:38:23 1995 +0000 +++ b/src/tc-rep.cc Sat Mar 18 04:40:16 1995 +0000 @@ -53,14 +53,11 @@ // TC_REP class. // Pointer to the blocks of memory we manage. -static TC_REP *newlist; +static TC_REP *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 TC_REP *newlist_tail = 0; - static int any_element_is_complex (const ComplexMatrix& a) { @@ -472,11 +469,6 @@ newlist[i].freeptr = &newlist[i+1]; newlist[i].freeptr = 0; - - if (newlist_tail) - newlist_tail->freeptr = newlist; - - newlist_tail = &newlist[i]; } TC_REP *tmp = newlist;