diff options
author | gokhale <asgokhale@users.noreply.github.com> | 1998-01-04 13:21:41 +0000 |
---|---|---|
committer | gokhale <asgokhale@users.noreply.github.com> | 1998-01-04 13:21:41 +0000 |
commit | 0aa264c98a12e5523d55899424629ccea24e6646 (patch) | |
tree | 533e43948734f3bcbc5a4a67c93dd2bab6e349c9 /TAO/TAO_IDL | |
parent | 889c400c0c7ffe71aadef2ce585663db418d3eee (diff) | |
download | ATCD-0aa264c98a12e5523d55899424629ccea24e6646.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r-- | TAO/TAO_IDL/be/be_sequence.cpp | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/TAO/TAO_IDL/be/be_sequence.cpp b/TAO/TAO_IDL/be/be_sequence.cpp index 79c10bbd4ed..69a9c66d84e 100644 --- a/TAO/TAO_IDL/be/be_sequence.cpp +++ b/TAO/TAO_IDL/be/be_sequence.cpp @@ -488,6 +488,9 @@ be_sequence::gen_client_stubs (void) cg->pop (); + // generate the ifdefined macro for the sequence type + cs->gen_ifdef_macro (this->flatname ()); + // generate the methods of the sequence C++ mapping cg->push (TAO_CodeGen::TAO_SEQUENCE_BODY_CS); s = cg->make_state (); @@ -910,6 +913,8 @@ be_sequence::gen_client_stubs (void) cg->pop (); this->cli_stub_gen_ = I_TRUE; + + cs->gen_endif (); } return 0; } @@ -967,14 +972,14 @@ be_sequence::gen_client_inline (void) -1); } + // generate the ifdefined macro for type + ci->gen_ifdef_macro (this->flatname ()); + *ci << "// *************************************************************" << nl; *ci << "// class " << this->name () << nl; *ci << "// *************************************************************\n\n"; - // generate the ifdefined macro for type - ci->gen_ifdef_macro (this->flatname ()); - // freebuf method ci->indent (); *ci << "ACE_INLINE void" << nl; @@ -2006,7 +2011,7 @@ be_sequence::gen_managed_type_ci (void) char fnamebuf [NAMEBUFSIZE]; // full name char lnamebuf [NAMEBUFSIZE]; // local name char typebuf [NAMEBUFSIZE]; // type name - + char macro [NAMEBUFSIZE]; // for ifdef macro // retrieve a singleton instance of the code generator TAO_CodeGen *cg = TAO_CODEGEN::instance (); @@ -2029,6 +2034,7 @@ be_sequence::gen_managed_type_ci (void) ACE_OS::memset (fnamebuf, '\0', NAMEBUFSIZE); ACE_OS::memset (lnamebuf, '\0', NAMEBUFSIZE); ACE_OS::memset (typebuf, '\0', NAMEBUFSIZE); + ACE_OS::memset (macro, '\0', NAMEBUFSIZE); switch (this->managed_type ()) { case be_sequence::MNG_OBJREF: @@ -2036,6 +2042,7 @@ be_sequence::gen_managed_type_ci (void) ACE_OS::sprintf (fnamebuf, "%s::%s", this->fullname (), "TAO_ObjRefMngType"); ACE_OS::sprintf (lnamebuf, "%s", "TAO_ObjRefMngType"); ACE_OS::sprintf (typebuf, "%s_ptr", bt->fullname ()); + ACE_OS::sprintf (macro, "%s_%s", this->flatname (), "TAO_ObjRefMngType"); } break; case be_sequence::MNG_STRING: @@ -2043,6 +2050,7 @@ be_sequence::gen_managed_type_ci (void) ACE_OS::sprintf (fnamebuf, "%s::%s", this->fullname (), "TAO_StrMngType"); ACE_OS::sprintf (lnamebuf, "%s", "TAO_StrMngType"); ACE_OS::sprintf (typebuf, "%s", "char *"); + ACE_OS::sprintf (macro, "%s_%s", this->flatname (), "TAO_StrMngType"); } break; default: @@ -2056,6 +2064,9 @@ be_sequence::gen_managed_type_ci (void) } } + // generate the ifdefined macro for the managed + ci->gen_ifdef_macro (macro); + // generate the managed type implementation in the inline file ci->indent (); // start with whatever was our current indent level @@ -2185,6 +2196,7 @@ be_sequence::gen_managed_type_ci (void) ci->decr_indent (); *ci << "}\n\n"; + ci->gen_endif (); return 0; } @@ -2198,7 +2210,7 @@ be_sequence::gen_managed_type_cs (void) char fnamebuf [NAMEBUFSIZE]; // full name char lnamebuf [NAMEBUFSIZE]; // local name char typebuf [NAMEBUFSIZE]; // type name - + char macro [NAMEBUFSIZE]; // for ifdef macro // retrieve a singleton instance of the code generator TAO_CodeGen *cg = TAO_CODEGEN::instance (); @@ -2221,6 +2233,7 @@ be_sequence::gen_managed_type_cs (void) ACE_OS::memset (fnamebuf, '\0', NAMEBUFSIZE); ACE_OS::memset (lnamebuf, '\0', NAMEBUFSIZE); ACE_OS::memset (typebuf, '\0', NAMEBUFSIZE); + ACE_OS::memset (macro, '\0', NAMEBUFSIZE); switch (this->managed_type ()) { case be_sequence::MNG_OBJREF: @@ -2228,6 +2241,7 @@ be_sequence::gen_managed_type_cs (void) ACE_OS::sprintf (fnamebuf, "%s::%s", this->fullname (), "TAO_ObjRefMngType"); ACE_OS::sprintf (lnamebuf, "%s", "TAO_ObjRefMngType"); ACE_OS::sprintf (typebuf, "%s_ptr", bt->fullname ()); + ACE_OS::sprintf (macro, "%s_%s", this->flatname (), "TAO_ObjRefMngType"); } break; case be_sequence::MNG_STRING: @@ -2235,6 +2249,7 @@ be_sequence::gen_managed_type_cs (void) ACE_OS::sprintf (fnamebuf, "%s::%s", this->fullname (), "TAO_StrMngType"); ACE_OS::sprintf (lnamebuf, "%s", "TAO_StrMngType"); ACE_OS::sprintf (typebuf, "%s", "char *"); + ACE_OS::sprintf (macro, "%s_%s", this->flatname (), "TAO_StrMngType"); } break; default: @@ -2248,6 +2263,9 @@ be_sequence::gen_managed_type_cs (void) } } + // generate the ifdefined macro for the sequence type + cs->gen_ifdef_macro (macro); + switch (this->managed_type ()) { case be_sequence::MNG_OBJREF: @@ -2405,6 +2423,7 @@ be_sequence::gen_managed_type_cs (void) break; } + cs->gen_endif (); return 0; } |