--- parser3/src/include/pa_stack.h 2003/03/27 10:04:06 1.17.2.6.2.2 +++ parser3/src/include/pa_stack.h 2003/04/03 09:18:46 1.17.2.6.2.7 @@ -8,7 +8,7 @@ #ifndef PA_STACK_H #define PA_STACK_H -static const char* IDENT_STACK_H="$Date: 2003/03/27 10:04:06 $"; +static const char* IDENT_STACK_H="$Date: 2003/04/03 09:18:46 $"; #include "pa_config_includes.h" #include "pa_array.h" @@ -32,7 +32,7 @@ public: } size_t top_index() { return ftop-1; } - void top_index(int top_index) { ftop=top_index+1; } + void top_index(size_t top_index) { ftop=top_index+1; } T top_value() { return get(top_index()); } /// call this prior to collecting garbage [in unused part of stack there may be pointers(unused)] @@ -41,9 +41,9 @@ public: memset(&felements[fused], 0, (fallocated-fused)*sizeof(T)); } -private: +protected: - // deepest used index + // deepest used index+1 size_t ftop; };