diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-15 19:03:16 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-15 19:03:16 +0000 |
commit | f22e9de65338358c243758e151de8f7fac4c08d5 (patch) | |
tree | d26b17deb130c161cf97f08e3afa080b84f05e29 /TAO/TAO_IDL/be/be_union.cpp | |
parent | 4312f1cb892ddaa7f1fb9415c7354b3a49016c7c (diff) | |
download | ATCD-f22e9de65338358c243758e151de8f7fac4c08d5.tar.gz |
Added some switch cases and a union member to allow wchars as
a discriminator type.
Diffstat (limited to 'TAO/TAO_IDL/be/be_union.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_union.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_union.cpp b/TAO/TAO_IDL/be/be_union.cpp index 4aa4baa22fe..3844597bcbd 100644 --- a/TAO/TAO_IDL/be/be_union.cpp +++ b/TAO/TAO_IDL/be/be_union.cpp @@ -808,6 +808,10 @@ be_union::compute_default_value (void) if (total_case_members == ACE_OCTET_MAX+1) this->default_value_.computed_ = 0; break; + case AST_Expression::EV_wchar: + if (total_case_members == ACE_WCHAR_MAX+1) + this->default_value_.computed_ = 0; + break; case AST_Expression::EV_bool: if (total_case_members == 2) this->default_value_.computed_ = 0; @@ -895,6 +899,9 @@ be_union::compute_default_value (void) case AST_Expression::EV_char: this->default_value_.u.char_val = 0; break; + case AST_Expression::EV_wchar: + this->default_value_.u.wchar_val = 0; + break; case AST_Expression::EV_bool: this->default_value_.u.bool_val = 0; break; |