Diff for /parser3/src/include/pa_stack.h between versions 1.26 and 1.30

version 1.26, 2009/04/30 04:39:06 version 1.30, 2019/12/05 22:21:16
Line 1 Line 1
 /** @file  /** @file
         Parser: stack class decl.          Parser: stack class decl.
   
         Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
   
 #ifndef PA_STACK_H  #ifndef PA_STACK_H
 #define PA_STACK_H  #define PA_STACK_H
   
 static const char * const IDENT_STACK_H="$Date$";  #define IDENT_PA_STACK_H "$Id$"
   
 #include "pa_array.h"  #include "pa_array.h"
   
Line 39  public: Line 39  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(size_t above_top_size=this->fallocated-this->fused)                  if(size_t above_top_size=this->fallocated-this->fused)
                         memset(&this->felements[this->fused], 0, above_top_size*sizeof(T));                          memset((void *)&this->felements[this->fused], 0, above_top_size*sizeof(T));
         }          }
   
 protected:  protected:

Removed from v.1.26  
changed lines
  Added in v.1.30


E-mail: