--- parser3/src/include/pa_stack.h 2003/01/31 12:34:31 1.17.2.3 +++ parser3/src/include/pa_stack.h 2003/02/17 15:34:19 1.17.2.4 @@ -8,7 +8,7 @@ #ifndef PA_STACK_H #define PA_STACK_H -static const char* IDENT_STACK_H="$Date: 2003/01/31 12:34:31 $"; +static const char* IDENT_STACK_H="$Date: 2003/02/17 15:34:19 $"; #include "pa_config_includes.h" #include "pa_array.h" @@ -27,7 +27,9 @@ public: ftop++; } T pop() { - return get(--ftop); + T result=get(--ftop); + put(ftop, T()); + return result; } int top_index() { return ftop-1; }