summaryrefslogtreecommitdiff
path: root/unoidl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-22 17:49:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-11-22 18:58:20 +0100
commitadd28638db1bf367751c98631624c6dd7adc6c22 (patch)
treea2fc2ba96bb6999012b2d050ab54d06af32baa1a /unoidl
parent39831b1d17abd360b1d50c8820f09cfd095be337 (diff)
Fix unoidl sourceprovider typedef check
Change-Id: I7faa689c803f83687cfcc39dc7c4fd145584e849
Diffstat (limited to 'unoidl')
-rw-r--r--unoidl/source/sourceprovider-parser.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/unoidl/source/sourceprovider-parser.y b/unoidl/source/sourceprovider-parser.y
index 7b9e224544fc..ec8108363b26 100644
--- a/unoidl/source/sourceprovider-parser.y
+++ b/unoidl/source/sourceprovider-parser.y
@@ -1882,20 +1882,20 @@ typedefDefn:
unoidl::detail::SourceProviderType t(*$4);
delete $4;
OUString name(convertToFullName(data, $5));
- // There is no good reason to forbid typedefs to VOID and to instantiated
- // polymorphic struct types, but some old client code of registry data
- // expects this typedef restriction (like the assert(false) default in
- // handleTypedef in codemaker/source/javamaker/javatype.cxx), so forbid
- // them for now:
+ // There is no good reason to forbid typedefs to VOID, to instantiated
+ // polymorphic struct types, and to exception types, but some old client
+ // code of registry data expects this typedef restriction (like the
+ // assert(false) default in handleTypedef in
+ // codemaker/source/javamaker/javatype.cxx), so forbid them for now:
switch (t.type) {
case unoidl::detail::SourceProviderType::TYPE_VOID:
+ case unoidl::detail::SourceProviderType::TYPE_EXCEPTION:
case unoidl::detail::SourceProviderType::TYPE_INSTANTIATED_POLYMORPHIC_STRUCT:
error(@4, yyscanner, "bad typedef type");
YYERROR;
break;
case unoidl::detail::SourceProviderType::TYPE_ENUM:
case unoidl::detail::SourceProviderType::TYPE_PLAIN_STRUCT:
- case unoidl::detail::SourceProviderType::TYPE_EXCEPTION:
case unoidl::detail::SourceProviderType::TYPE_INTERFACE:
if ($2) {
bool unpub = false;