Diff for /parser3/src/include/pa_stack.h between versions 1.2 and 1.7

version 1.2, 2001/02/22 13:33:24 version 1.7, 2001/03/19 15:29:38
Line 1 Line 1
 /*  /** @file
   $Id$          Parser
           Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
           Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
   
           $Id$
 */  */
   
 #ifndef PA_STACK_H  #ifndef PA_STACK_H
Line 7 Line 11
   
 #include "pa_array.h"  #include "pa_array.h"
   
   /// simple stack based on Array
 class Stack : public Array {  class Stack : public Array {
 public:  public:
   
Line 24  public: Line 29  public:
                 return get(--ftop);                  return get(--ftop);
         }          }
   
         Item *operator [] (int top_offset) {          int top_index() { return ftop-1; }
                 return get(ftop-top_offset-1);          Item *top_value() { return get(top_index()); }
         }  
   
         int top() { return ftop; }  
   
 private:  private:
   

Removed from v.1.2  
changed lines
  Added in v.1.7


E-mail: