diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-04-15 17:46:27 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-04-15 17:46:27 +0000 |
commit | 9ecb9b09a686a1dcb627a7929e58faf5f9842490 (patch) | |
tree | 02951a66dbd1a81a7f5e69d6017bac068a709c10 /autodoc/source/parser/cpp/sownstck.hxx | |
parent | fbe0bed46bccfc77b818f9ab2636827383c2235a (diff) |
INTEGRATION: CWS adc5 (1.1.1.1.40); FILE MERGED
2003/04/09 15:23:44 np 1.1.1.1.40.1: 108787
Diffstat (limited to 'autodoc/source/parser/cpp/sownstck.hxx')
-rw-r--r-- | autodoc/source/parser/cpp/sownstck.hxx | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/autodoc/source/parser/cpp/sownstck.hxx b/autodoc/source/parser/cpp/sownstck.hxx index 9e27ee8da5e1..730fe9f9b092 100644 --- a/autodoc/source/parser/cpp/sownstck.hxx +++ b/autodoc/source/parser/cpp/sownstck.hxx @@ -2,9 +2,9 @@ * * $RCSfile: sownstck.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: np $ $Date: 2002-03-08 14:45:32 $ + * last change: $Author: hr $ $Date: 2003-04-15 18:46:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -72,6 +72,7 @@ #include <estack.hxx> // PARAMETERS #include <ary/cpp/c_namesp.hxx> +#include <x_parse.hxx> namespace cpp @@ -308,10 +309,17 @@ S_OwnerStack::CloseBlock() } else { - csv_assert( aStack_Classes.size() == 0 ); + // csv_assert( aStack_Classes.size() == 0 ); + if ( aStack_Classes.size() > 0 ) + throw X_Parser(X_Parser::x_UnspecifiedSyntaxError, "", udmstri::Null_(), 0); + csv_assert( pCurEnum == 0 ); aStack_Namespaces.pop(); - csv_assert( aStack_Namespaces.size() > 0 ); + + // csv_assert( aStack_Namespaces.size() > 0 ); + if( aStack_Namespaces.size() == 0 ) + throw X_Parser(X_Parser::x_UnspecifiedSyntaxError, "", udmstri::Null_(), 0); + } SetOwner_2CurNamespace(); } @@ -320,7 +328,10 @@ void ContextForAry:: S_OwnerStack::CloseClass() { - csv_assert( aStack_Classes.size() > 0 ); + // csv_assert( aStack_Classes.size() > 0 ); + if ( aStack_Classes.size() == 0 ) + throw X_Parser(X_Parser::x_UnspecifiedSyntaxError, "", udmstri::Null_(), 0); + aStack_Classes.pop(); if ( aStack_Classes.size() > 0 ) SetOwner_2CurClass(); |