Diff for /parser3/src/include/pa_stack.h between versions 1.23 and 1.25

version 1.23, 2005/03/16 14:37:51 version 1.25, 2006/04/09 13:38:47
Line 1 Line 1
 /** @file  /** @file
         Parser: stack class decl.          Parser: stack class decl.
   
         Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
   
Line 21  public: Line 21  public:
   
         void push(T item) {          void push(T item) {
                 if(ftop<this->count()) // cell is already allocated?                  if(ftop<this->count()) // cell is already allocated?
                         put(ftop, item); // use it                          this->put(ftop, item); // use it
                 else                  else
                         *this+=item; // append it                          *this+=item; // append it
                 ftop++;                  ftop++;

Removed from v.1.23  
changed lines
  Added in v.1.25


E-mail: