diff options
Diffstat (limited to 'TAO/TAO_IDL/util')
-rw-r--r-- | TAO/TAO_IDL/util/utl_err.cpp | 2 | ||||
-rw-r--r-- | TAO/TAO_IDL/util/utl_error.cpp | 2 | ||||
-rw-r--r-- | TAO/TAO_IDL/util/utl_stack.cpp | 5 |
3 files changed, 6 insertions, 3 deletions
diff --git a/TAO/TAO_IDL/util/utl_err.cpp b/TAO/TAO_IDL/util/utl_err.cpp index d12395206c5..33f1eace574 100644 --- a/TAO/TAO_IDL/util/utl_err.cpp +++ b/TAO/TAO_IDL/util/utl_err.cpp @@ -452,6 +452,8 @@ parse_state_to_error_message(IDL_GlobalData::ParseState ps) case IDL_GlobalData::PS_DeclsDeclSeen: return GTDEVEL("Illegal syntax after declarator in declarators list"); + case IDL_GlobalData::PS_PragmaPrefixSyntax: + return GTDEVEL ("Illegal syntax for #pragma prefix"); default: return GTDEVEL("Some syntax error"); } diff --git a/TAO/TAO_IDL/util/utl_error.cpp b/TAO/TAO_IDL/util/utl_error.cpp index d12395206c5..33f1eace574 100644 --- a/TAO/TAO_IDL/util/utl_error.cpp +++ b/TAO/TAO_IDL/util/utl_error.cpp @@ -452,6 +452,8 @@ parse_state_to_error_message(IDL_GlobalData::ParseState ps) case IDL_GlobalData::PS_DeclsDeclSeen: return GTDEVEL("Illegal syntax after declarator in declarators list"); + case IDL_GlobalData::PS_PragmaPrefixSyntax: + return GTDEVEL ("Illegal syntax for #pragma prefix"); default: return GTDEVEL("Some syntax error"); } diff --git a/TAO/TAO_IDL/util/utl_stack.cpp b/TAO/TAO_IDL/util/utl_stack.cpp index 719f6642cf7..2e70c1bb7c5 100644 --- a/TAO/TAO_IDL/util/utl_stack.cpp +++ b/TAO/TAO_IDL/util/utl_stack.cpp @@ -69,6 +69,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. */ #include "idl.h" +#include "ast_decl.h" #include "idl_extern.h" ACE_RCSID(util, utl_stack, "$Id$") @@ -138,11 +139,9 @@ UTL_ScopeStack::push(UTL_Scope *el) void UTL_ScopeStack::pop() { - UTL_Scope *s; - if (pd_stack_top <= 0) return; - s = pd_stack_data[--pd_stack_top]; + pd_stack_data[--pd_stack_top]; } // Return top element on stack |