Diff for /parser3/src/include/pa_stack.h between versions 1.18 and 1.19

version 1.18, 2003/07/24 11:31:21 version 1.19, 2003/09/26 11:23:37
Line 41  public: Line 41  public:
   
         /// call this prior to collecting garbage [in unused part of stack there may be pointers(unused)]          /// call this prior to collecting garbage [in unused part of stack there may be pointers(unused)]
         void wipe_unused() {          void wipe_unused() {
                 if(!is_full())                  if(size_t above_top_size=fused-ftop)
                         memset(&felements[fused], 0, (fallocated-fused)*sizeof(T));                          memset(&felements[ftop], 0, above_top_size*sizeof(T));
         }          }
   
 protected:  protected:

Removed from v.1.18  
changed lines
  Added in v.1.19


E-mail: