--- parser3/src/include/pa_stack.h 2001/03/19 15:29:38 1.7 +++ parser3/src/include/pa_stack.h 2002/03/18 15:29:46 1.14 @@ -1,14 +1,16 @@ /** @file - Parser - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Parser: stack class decl. - $Id: pa_stack.h,v 1.7 2001/03/19 15:29:38 paf Exp $ + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) + + $Id: pa_stack.h,v 1.14 2002/03/18 15:29:46 paf Exp $ */ #ifndef PA_STACK_H #define PA_STACK_H +#include "pa_config_includes.h" #include "pa_array.h" /// simple stack based on Array @@ -30,6 +32,7 @@ public: } int top_index() { return ftop-1; } + void top_index(int top_index) { ftop=top_index+1; } Item *top_value() { return get(top_index()); } private: