diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-11-30 19:28:52 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-11-30 19:28:52 +0000 |
commit | 9697dc677e9a4292fa43071d23cc9b026b418ee9 (patch) | |
tree | e4cb0bb5b10615e8dd5b9a3a50add01d3d424ce0 /TAO/TAO_IDL | |
parent | 6c89a6bba6a5dd6662fb81b93b8a25491123767e (diff) | |
download | ATCD-9697dc677e9a4292fa43071d23cc9b026b418ee9.tar.gz |
ChangeLogTag: Tue Nov 30 11:42:50 2004 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r-- | TAO/TAO_IDL/be/be_codegen.cpp | 6 | ||||
-rw-r--r-- | TAO/TAO_IDL/be/be_decl.cpp | 2 | ||||
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_arg_traits.cpp | 43 | ||||
-rw-r--r-- | TAO/TAO_IDL/be_include/be_visitor_arg_traits.h | 2 | ||||
-rw-r--r-- | TAO/TAO_IDL/include/idl_global.h | 1 | ||||
-rw-r--r-- | TAO/TAO_IDL/util/utl_global.cpp | 4 |
6 files changed, 12 insertions, 46 deletions
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp index 0899ae45f6f..190156ddc84 100644 --- a/TAO/TAO_IDL/be/be_codegen.cpp +++ b/TAO/TAO_IDL/be/be_codegen.cpp @@ -1856,6 +1856,12 @@ TAO_CodeGen::gen_arg_file_includes (TAO_OutStream *stream) "tao/Var_Size_Argument_T.h", stream ); + + this->gen_cond_file_include ( + idl_global->decls_seen_masks.any_arg_seen_, + "tao/Any_Arg_Traits.h", + stream + ); } void diff --git a/TAO/TAO_IDL/be/be_decl.cpp b/TAO/TAO_IDL/be/be_decl.cpp index b777cf70b7c..f1847f11367 100644 --- a/TAO/TAO_IDL/be/be_decl.cpp +++ b/TAO/TAO_IDL/be/be_decl.cpp @@ -914,6 +914,8 @@ be_decl::set_arg_seen_bit (be_type *bt) case AST_PredefinedType::PT_any: ACE_SET_BITS (idl_global->decls_seen_info_, idl_global->decls_seen_masks.var_size_arg_seen_); + ACE_SET_BITS (idl_global->decls_seen_info_, + idl_global->decls_seen_masks.any_arg_seen_); break; case AST_PredefinedType::PT_char: case AST_PredefinedType::PT_wchar: diff --git a/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp b/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp index 740f339c30d..ade81923aad 100644 --- a/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp +++ b/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp @@ -597,49 +597,6 @@ be_visitor_arg_traits::visit_enum (be_enum *node) } int -be_visitor_arg_traits::visit_predefined_type (be_predefined_type *node) -{ - if (this->generated (node) || !node->seen_in_operation ()) - { - return 0; - } - - // Only for an Any used in an operation. - if (node->pt () != AST_PredefinedType::PT_any) - { - this->generated (node, I_TRUE); - return 0; - } - - // This should be generated even for imported nodes. The ifdef guard prevents - // multiple declarations. - TAO_OutStream *os = this->ctx_->stream (); - - *os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__; - - os->gen_ifdef_macro ("corba_any", "arg_traits"); - - *os << be_nl << be_nl - << "ACE_TEMPLATE_SPECIALIZATION" << be_nl - << "class " << be_global->stub_export_macro () << " " - << this->S_ << "Arg_Traits<CORBA::Any>" << be_idt_nl - << ": public" << be_idt << be_idt_nl - << "Var_Size_" << this->S_ << "Arg_Traits_T<" << be_idt << be_idt_nl - << "CORBA::Any," << be_nl - << "CORBA::Any_var," << be_nl - << "CORBA::Any_out" << be_uidt_nl - << ">" << be_uidt << be_uidt << be_uidt << be_uidt_nl - << "{" << be_nl - << "};"; - - os->gen_endif (); - - this->generated (node, I_TRUE); - return 0; -} - -int be_visitor_arg_traits::visit_structure (be_structure *node) { if (this->generated (node) || !node->seen_in_operation ()) diff --git a/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h b/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h index 31ed9187232..db7fcec5095 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h +++ b/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h @@ -35,8 +35,6 @@ public: virtual int visit_enum (be_enum *node); - virtual int visit_predefined_type (be_predefined_type *node); - virtual int visit_interface (be_interface *node); virtual int visit_interface_fwd (be_interface_fwd *node); diff --git a/TAO/TAO_IDL/include/idl_global.h b/TAO/TAO_IDL/include/idl_global.h index f9af6d1a838..9da3521b346 100644 --- a/TAO/TAO_IDL/include/idl_global.h +++ b/TAO/TAO_IDL/include/idl_global.h @@ -328,6 +328,7 @@ public: ACE_UINT64 ub_string_arg_seen_; ACE_UINT64 var_array_arg_seen_; ACE_UINT64 var_size_arg_seen_; + ACE_UINT64 any_arg_seen_; } decls_seen_masks; // Constructor diff --git a/TAO/TAO_IDL/util/utl_global.cpp b/TAO/TAO_IDL/util/utl_global.cpp index 1f17a9fb3af..21998af7308 100644 --- a/TAO/TAO_IDL/util/utl_global.cpp +++ b/TAO/TAO_IDL/util/utl_global.cpp @@ -146,7 +146,8 @@ IDL_GlobalData::dsf::dsf (void) special_basic_arg_seen_ (0), ub_string_arg_seen_ (0), var_array_arg_seen_ (0), - var_size_arg_seen_ (0) + var_size_arg_seen_ (0), + any_arg_seen_ (0) {} IDL_GlobalData::IDL_GlobalData (void) @@ -297,6 +298,7 @@ IDL_GlobalData::IDL_GlobalData (void) ACE_SET_BITS (this->decls_seen_masks.ub_string_arg_seen_, cursor << 58); ACE_SET_BITS (this->decls_seen_masks.var_array_arg_seen_, cursor << 59); ACE_SET_BITS (this->decls_seen_masks.var_size_arg_seen_, cursor << 60); + ACE_SET_BITS (this->decls_seen_masks.any_arg_seen_, cursor << 61); } IDL_GlobalData::~IDL_GlobalData (void) |