diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-08 08:49:44 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-08 08:49:44 +0100 |
commit | 715d8b04f3bc45bbb5ea620d0bc65581d6ecfbb1 (patch) | |
tree | 2fec165052be5d6dae5e541595265cf7bd319fdc /TAO/TAO_IDL | |
parent | cfb87b202043d9f6b5532f3e3e4e431f6ced4c0b (diff) | |
download | ATCD-715d8b04f3bc45bbb5ea620d0bc65581d6ecfbb1.tar.gz |
Use bool literals in tao_idl
Diffstat (limited to 'TAO/TAO_IDL')
66 files changed, 135 insertions, 135 deletions
diff --git a/TAO/TAO_IDL/ast/ast_constant.cpp b/TAO/TAO_IDL/ast/ast_constant.cpp index 52eab82cd74..9a92df4f4fc 100644 --- a/TAO/TAO_IDL/ast/ast_constant.cpp +++ b/TAO/TAO_IDL/ast/ast_constant.cpp @@ -135,7 +135,7 @@ AST_Constant::AST_Constant (AST_Expression::ExprType t, n), pd_constant_value (v), pd_et (t), - ifr_added_ (0) + ifr_added_ (false) { } @@ -148,7 +148,7 @@ AST_Constant::AST_Constant (AST_Expression::ExprType t, n), pd_constant_value (v), pd_et (t), - ifr_added_ (0) + ifr_added_ (false) { // Avoids a truncation warning on MSVC when assigning a decimal // literal to a float constant. Must also check that the input @@ -290,7 +290,7 @@ AST_Constant::enum_full_name () { UTL_Scope * const s = this->defined_in (); AST_Decl * const d = s->lookup_by_name (this->pd_constant_value->n (), - 1); + true); return (d ? (ScopeAsDecl (d->defined_in ()))->name () : nullptr); } else diff --git a/TAO/TAO_IDL/ast/ast_decl.cpp b/TAO/TAO_IDL/ast/ast_decl.cpp index 5ad0e4bb1c1..e2803ef69af 100644 --- a/TAO/TAO_IDL/ast/ast_decl.cpp +++ b/TAO/TAO_IDL/ast/ast_decl.cpp @@ -895,16 +895,16 @@ AST_Decl::is_child (AST_Decl *s) AST_Decl *d = ScopeAsDecl (this->defined_in ()); if (!d) { - return 0; + return false; } if (!ACE_OS::strcmp (d->full_name (), s->full_name ())) { - return 1; + return true; } } - return 0; // Not a child. + return false; // Not a child. } bool diff --git a/TAO/TAO_IDL/ast/ast_exception.cpp b/TAO/TAO_IDL/ast/ast_exception.cpp index f57812ca7eb..c7b023cbfb2 100644 --- a/TAO/TAO_IDL/ast/ast_exception.cpp +++ b/TAO/TAO_IDL/ast/ast_exception.cpp @@ -176,7 +176,7 @@ AST_Exception::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list) // Not in recursion. if (self_test) this->in_recursion_ = 0; - return 0; //this->in_recursion_; + return false; //this->in_recursion_; } // Dump this AST_Exception node to the ostream o. diff --git a/TAO/TAO_IDL/ast/ast_expression.cpp b/TAO/TAO_IDL/ast/ast_expression.cpp index 781a35d2a72..4471118069d 100644 --- a/TAO/TAO_IDL/ast/ast_expression.cpp +++ b/TAO/TAO_IDL/ast/ast_expression.cpp @@ -1604,9 +1604,9 @@ incompatible_types (AST_Expression::ExprType t1, case AST_Expression::EV_ulonglong: case AST_Expression::EV_octet: case AST_Expression::EV_bool: - return 0; + return false; default: - return 1; + return true; } case AST_Expression::EV_float: case AST_Expression::EV_double: @@ -1616,9 +1616,9 @@ incompatible_types (AST_Expression::ExprType t1, case AST_Expression::EV_float: case AST_Expression::EV_double: case AST_Expression::EV_longdouble: - return 0; + return false; default: - return 1; + return true; } case AST_Expression::EV_fixed: return t2 != AST_Expression::EV_fixed; @@ -1632,7 +1632,7 @@ incompatible_types (AST_Expression::ExprType t1, case AST_Expression::EV_void: case AST_Expression::EV_none: default: - return 0; + return false; } } @@ -2540,8 +2540,8 @@ AST_Expression::type_mismatch (AST_Expression::ExprType t) return incompatible_types (this->pd_ev->et, t); } - bool v1_mismatch = 0; - bool v2_mismatch = 0; + bool v1_mismatch = false; + bool v2_mismatch = false; if (this->pd_v1 != nullptr) { @@ -2567,7 +2567,7 @@ AST_Expression::check_and_coerce (AST_Expression::ExprType t, { AST_Decl *enum_val = idl_global->scopes ().top_non_null ()->lookup_by_name (this->pd_n, - 1); + true); if (enum_val != nullptr) { diff --git a/TAO/TAO_IDL/ast/ast_interface.cpp b/TAO/TAO_IDL/ast/ast_interface.cpp index 45558733013..0ded8e138f0 100644 --- a/TAO/TAO_IDL/ast/ast_interface.cpp +++ b/TAO/TAO_IDL/ast/ast_interface.cpp @@ -412,7 +412,7 @@ AST_Interface::fwd_redefinition_helper (AST_Interface *&i, void AST_Interface::redef_clash_populate_r (AST_Type *t) { - if (this->insert_non_dup (t, 0) == 0) + if (this->insert_non_dup (t, false) == 0) { return; } diff --git a/TAO/TAO_IDL/ast/ast_module.cpp b/TAO/TAO_IDL/ast/ast_module.cpp index 53645653611..feb4facbaa5 100644 --- a/TAO/TAO_IDL/ast/ast_module.cpp +++ b/TAO/TAO_IDL/ast/ast_module.cpp @@ -105,7 +105,7 @@ AST_Decl::NodeType const AST_Module::AST_Module (UTL_ScopedName *n, AST_Module *previous) : AST_Decl (AST_Decl::NT_module, n), UTL_Scope (AST_Decl::NT_module), - pd_has_nested_valuetype_ (0), + pd_has_nested_valuetype_ (false), previous_opening_ (previous), last_in_same_parent_scope_ (this), from_inst_ (nullptr), @@ -168,7 +168,7 @@ AST_Module::set_has_nested_valuetype () } } - this->pd_has_nested_valuetype_ = 1; + this->pd_has_nested_valuetype_ = true; } bool diff --git a/TAO/TAO_IDL/ast/ast_type.cpp b/TAO/TAO_IDL/ast/ast_type.cpp index 08c9d0059f9..282635fe6f9 100644 --- a/TAO/TAO_IDL/ast/ast_type.cpp +++ b/TAO/TAO_IDL/ast/ast_type.cpp @@ -81,10 +81,10 @@ AST_Type::AST_Type (AST_Decl::NodeType nt, : COMMON_Base (), AST_Decl (nt, n), - ifr_added_ (0), - ifr_fwd_added_ (0), + ifr_added_ (false), + ifr_fwd_added_ (false), size_type_ (AST_Type::SIZE_UNKNOWN), - has_constructor_ (0), + has_constructor_ (false), nested_type_name_ (nullptr), in_recursion_ (-1), recursing_in_legal_pk_ (false) @@ -140,7 +140,7 @@ bool AST_Type::in_recursion (ACE_Unbounded_Queue<AST_Type *> & /*list*/) { // By default we are not involved in recursion. - return 0; + return false; } bool diff --git a/TAO/TAO_IDL/ast/ast_union.cpp b/TAO/TAO_IDL/ast/ast_union.cpp index 34bb18159a8..08606bab3db 100644 --- a/TAO/TAO_IDL/ast/ast_union.cpp +++ b/TAO/TAO_IDL/ast/ast_union.cpp @@ -304,7 +304,7 @@ AST_Union::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list) // Not in recursion. if (self_test) this->in_recursion_ = 0; - return 0; + return false; } // Look up the default branch in union. @@ -686,7 +686,7 @@ AST_Union::compute_default_value () this->default_value_.u.wchar_val = 0; break; case AST_Expression::EV_bool: - this->default_value_.u.bool_val = 0; + this->default_value_.u.bool_val = false; break; case AST_Expression::EV_enum: this->default_value_.u.enum_val = 0; diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp index 6b2859ef63a..876c01a32e2 100644 --- a/TAO/TAO_IDL/be/be_codegen.cpp +++ b/TAO/TAO_IDL/be/be_codegen.cpp @@ -378,7 +378,7 @@ TAO_CodeGen::start_client_stubs (const char *fname) // header file. *this->client_stubs_ << "\n\n#if !defined (__ACE_INLINE__)"; *this->client_stubs_ << "\n#include \"" - << be_global->be_get_client_inline_fname (1) + << be_global->be_get_client_inline_fname (true) << "\""; *this->client_stubs_ << "\n#endif /* !defined INLINE */"; } @@ -498,7 +498,7 @@ TAO_CodeGen::start_server_header (const char *fname) UTL_String idl_name_str (idl_name); char const * const server_hdr = - BE_GlobalData::be_get_server_hdr (&idl_name_str, 1); + BE_GlobalData::be_get_server_hdr (&idl_name_str, true); idl_name_str.destroy (); @@ -655,7 +655,7 @@ TAO_CodeGen::start_server_skeletons (const char *fname) // Generate the include statement for the server header. *this->server_skeletons_ << "\n#include \"" - << be_global->be_get_server_hdr_fname (1) + << be_global->be_get_server_hdr_fname (true) << "\""; this->gen_skel_src_includes (); @@ -956,7 +956,7 @@ TAO_CodeGen::start_anyop_source (const char *fname) // Generate the include statement for the client header. We just // need to put only the base names. Path info is not required. *this->anyop_source_ << "\n#include \"" - << be_global->be_get_anyop_header_fname (1) + << be_global->be_get_anyop_header_fname (true) << "\""; this->gen_typecode_includes (this->anyop_source_); @@ -1608,7 +1608,7 @@ TAO_CodeGen::start_implementation_header (const char *fname) "", "_H_"); - const char* server_hdr = BE_GlobalData::be_get_server_hdr_fname (1); + const char* server_hdr = BE_GlobalData::be_get_server_hdr_fname (true); *this->implementation_header_<< "#include \"" << server_hdr <<"\""; @@ -1695,7 +1695,7 @@ TAO_CodeGen::end_client_header () // Insert the code to include the inline file. *this->client_header_ << "#if defined (__ACE_INLINE__)\n"; *this->client_header_ << "#include \"" - << be_global->be_get_client_inline_fname (1) + << be_global->be_get_client_inline_fname (true) << "\"\n"; *this->client_header_ << "#endif /* defined INLINE */\n\n"; } @@ -1838,7 +1838,7 @@ TAO_CodeGen::end_server_template_header () << be_nl_2 << "#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)"; *this->server_template_header_ << be_nl << "#include \"" - << be_global->be_get_server_template_skeleton_fname (1) + << be_global->be_get_server_template_skeleton_fname (true) << "\""; *this->server_template_header_ << be_nl << "#endif /* defined REQUIRED SOURCE */"; @@ -1848,7 +1848,7 @@ TAO_CodeGen::end_server_template_header () << be_nl_2 << "#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)"; *this->server_template_header_ << be_nl << "#pragma implementation (\"" - << be_global->be_get_server_template_skeleton_fname (1) + << be_global->be_get_server_template_skeleton_fname (true) << "\")"; *this->server_template_header_ << be_nl << "#endif /* defined REQUIRED PRAGMA */"; @@ -2578,7 +2578,7 @@ TAO_CodeGen::gen_stub_hdr_includes () UTL_String idl_name_str = idl_name; char const * const anyop_hdr = - BE_GlobalData::be_get_anyop_header (&idl_name_str, 1); + BE_GlobalData::be_get_anyop_header (&idl_name_str, true); idl_name_str.destroy (); diff --git a/TAO/TAO_IDL/be/be_eventtype.cpp b/TAO/TAO_IDL/be/be_eventtype.cpp index 8ca3b873ff4..6b84169bffc 100644 --- a/TAO/TAO_IDL/be/be_eventtype.cpp +++ b/TAO/TAO_IDL/be/be_eventtype.cpp @@ -27,7 +27,7 @@ be_eventtype::be_eventtype (UTL_ScopedName *n, bool abstract, bool truncatable, bool custom) - : COMMON_Base (0, + : COMMON_Base (false, abstract), AST_Decl (AST_Decl::NT_eventtype, n), @@ -39,7 +39,7 @@ be_eventtype::be_eventtype (UTL_ScopedName *n, n_inherits, inherits_flat, n_inherits_flat, - 0, + false, abstract), be_scope (AST_Decl::NT_eventtype), be_decl (AST_Decl::NT_eventtype, @@ -51,7 +51,7 @@ be_eventtype::be_eventtype (UTL_ScopedName *n, n_inherits, inherits_flat, n_inherits_flat, - 0, + false, abstract), AST_ValueType (n, inherits, diff --git a/TAO/TAO_IDL/be/be_factory.cpp b/TAO/TAO_IDL/be/be_factory.cpp index e1c1f936b2f..9aa2fb1d5e5 100644 --- a/TAO/TAO_IDL/be/be_factory.cpp +++ b/TAO/TAO_IDL/be/be_factory.cpp @@ -23,8 +23,8 @@ #include "global_extern.h" be_factory::be_factory (UTL_ScopedName *n) - : COMMON_Base (1, - 0), //@@ Always local, never abstract + : COMMON_Base (true, + false), //@@ Always local, never abstract AST_Decl (AST_Decl::NT_factory, n), UTL_Scope (AST_Decl::NT_factory), @@ -60,7 +60,7 @@ be_factory::be_add_argument (AST_Argument *arg) { this->add_to_scope (arg); this->add_to_referenced (arg, - 0, + false, nullptr); return arg; } diff --git a/TAO/TAO_IDL/be/be_finder.cpp b/TAO/TAO_IDL/be/be_finder.cpp index 229df018592..43416cfdf60 100644 --- a/TAO/TAO_IDL/be/be_finder.cpp +++ b/TAO/TAO_IDL/be/be_finder.cpp @@ -15,8 +15,8 @@ #include "be_visitor.h" be_finder::be_finder (UTL_ScopedName *n) - : COMMON_Base (1, - 0), //@@ Always local, never abstract + : COMMON_Base (true, + false), //@@ Always local, never abstract AST_Decl (AST_Decl::NT_finder, n), UTL_Scope (AST_Decl::NT_finder), diff --git a/TAO/TAO_IDL/be/be_global.cpp b/TAO/TAO_IDL/be/be_global.cpp index 7b93bf1e9ba..2aeaa3f633b 100644 --- a/TAO/TAO_IDL/be/be_global.cpp +++ b/TAO/TAO_IDL/be/be_global.cpp @@ -96,7 +96,7 @@ BE_GlobalData::BE_GlobalData () any_support_ (true), cdr_support_ (true), tc_support_ (true), - obv_opt_accessor_ (0), + obv_opt_accessor_ (false), gen_impl_files_ (false), gen_impl_debug_info_ (false), gen_copy_ctor_ (false), @@ -3420,7 +3420,7 @@ BE_GlobalData::parse_args (long &i, char **av) else if (av[i][2] == 't') { // Optimized typecode generation. - be_global->opt_tc (1); + be_global->opt_tc (true); } else if (av[i][2] == 'p') { @@ -3488,7 +3488,7 @@ BE_GlobalData::parse_args (long &i, char **av) size_t j; size_t k = i; // Generate implementation files. - be_global->gen_impl_files (1); + be_global->gen_impl_files (true); for (j = 0; j < options; ++j) { diff --git a/TAO/TAO_IDL/be/be_operation.cpp b/TAO/TAO_IDL/be/be_operation.cpp index 60fdf5067fd..012bc7bdd08 100644 --- a/TAO/TAO_IDL/be/be_operation.cpp +++ b/TAO/TAO_IDL/be/be_operation.cpp @@ -86,7 +86,7 @@ be_operation::be_add_argument (AST_Argument *arg) { this->add_to_scope (arg); this->add_to_referenced (arg, - 0, + false, nullptr); return arg; } diff --git a/TAO/TAO_IDL/be/be_util.cpp b/TAO/TAO_IDL/be/be_util.cpp index 980ab36b945..cc605a4e5c1 100644 --- a/TAO/TAO_IDL/be/be_util.cpp +++ b/TAO/TAO_IDL/be/be_util.cpp @@ -279,7 +279,7 @@ be_util::prep_be_arg (char *s) } else if (ACE_OS::strstr (arg, obv_opt_accessor) == arg) { - be_global->obv_opt_accessor (1); + be_global->obv_opt_accessor (true); } else if (ACE_OS::strstr (arg, ciao_container_type) == arg) { diff --git a/TAO/TAO_IDL/be/be_valuetype.cpp b/TAO/TAO_IDL/be/be_valuetype.cpp index d924ac798e0..02dcf8f8228 100644 --- a/TAO/TAO_IDL/be/be_valuetype.cpp +++ b/TAO/TAO_IDL/be/be_valuetype.cpp @@ -37,7 +37,7 @@ be_valuetype::be_valuetype (UTL_ScopedName *n, bool abstract, bool truncatable, bool custom) - : COMMON_Base (0, + : COMMON_Base (false, abstract), AST_Decl (AST_Decl::NT_valuetype, n), @@ -49,7 +49,7 @@ be_valuetype::be_valuetype (UTL_ScopedName *n, n_inherits, inherits_flat, n_inherits_flat, - 0, + false, abstract), be_scope (AST_Decl::NT_valuetype), be_decl (AST_Decl::NT_valuetype, @@ -61,7 +61,7 @@ be_valuetype::be_valuetype (UTL_ScopedName *n, n_inherits, inherits_flat, n_inherits_flat, - 0, + false, abstract), AST_ValueType (n, inherits, @@ -197,7 +197,7 @@ be_valuetype::determine_factory_style () // Check whether we have at least one operation or not. bool have_operation = this->have_operation (); - bool have_factory = 0; + bool have_factory = false; // Try only our own scope. if (this->nmembers () > 0) @@ -225,7 +225,7 @@ be_valuetype::determine_factory_style () if (node_type == AST_Decl::NT_factory) { - have_factory = 1; + have_factory = true; break; } diff --git a/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp b/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp index 67a02e82e40..c759000c029 100644 --- a/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp +++ b/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp @@ -1212,7 +1212,7 @@ be_visitor_arg_traits::generated (be_decl *node) const case TAO_CodeGen::TAO_ROOT_SH: return node->srv_arg_traits_gen (); default: - return 0; + return false; } } diff --git a/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp index 67a4d2d56bf..ed5cb8e796f 100644 --- a/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp @@ -45,6 +45,6 @@ be_visitor_array_any_op_ch::visit_array (be_array *node) *os << be_global->core_versioning_end () << be_nl; - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp index 6f37294187f..cd6b9c256c3 100644 --- a/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp @@ -115,6 +115,6 @@ be_visitor_array_any_op_cs::visit_array (be_array *node) *os << be_global->core_versioning_end () << be_nl; - node->cli_stub_any_op_gen (1); + node->cli_stub_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp index 7d9a2616112..b65ee3bf8c8 100644 --- a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp @@ -129,6 +129,6 @@ be_visitor_array_cdr_op_ch::visit_array (be_array *node) *os << be_global->core_versioning_end (); - node->cli_hdr_cdr_op_gen (1); + node->cli_hdr_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp b/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp index e4ed07fbbcb..0e39a4dd453 100644 --- a/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp @@ -83,8 +83,8 @@ be_visitor_facet_ami_exh::visit_attribute (be_attribute *node) be_operation get_op (node->field_type (), AST_Operation::OP_noflags, node->name (), - 0, - 0); + false, + false); get_op.set_name ((UTL_IdList *) node->name ()->copy ()); if (this->visit_operation (&get_op) == -1) @@ -120,8 +120,8 @@ be_visitor_facet_ami_exh::visit_attribute (be_attribute *node) be_operation set_op (&rt, AST_Operation::OP_noflags, node->name (), - 0, - 0); + false, + false); set_op.set_name ((UTL_IdList *) node->name ()->copy ()); set_op.be_add_argument (arg); diff --git a/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exs.cpp b/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exs.cpp index 7d865123259..a04a4d3a646 100644 --- a/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exs.cpp @@ -74,8 +74,8 @@ be_visitor_facet_ami_exs::visit_attribute (be_attribute *node) be_operation get_op (node->field_type (), AST_Operation::OP_noflags, node->name (), - 0, - 0); + false, + false); get_op.set_name ((UTL_IdList *) node->name ()->copy ()); if (this->visit_operation (&get_op) == -1) { @@ -111,8 +111,8 @@ be_visitor_facet_ami_exs::visit_attribute (be_attribute *node) be_operation set_op (&rt, AST_Operation::OP_noflags, node->name (), - 0, - 0); + false, + false); set_op.set_name ((UTL_IdList *) node->name ()->copy ()); set_op.be_add_argument (arg); diff --git a/TAO/TAO_IDL/be/be_visitor_context.cpp b/TAO/TAO_IDL/be/be_visitor_context.cpp index d56235baa5f..15cc1cd7069 100644 --- a/TAO/TAO_IDL/be/be_visitor_context.cpp +++ b/TAO/TAO_IDL/be/be_visitor_context.cpp @@ -23,8 +23,8 @@ be_visitor_context::be_visitor_context () alias_ (nullptr), tdef_ (nullptr), attr_ (nullptr), - exception_ (0), - comma_ (0), + exception_ (false), + comma_ (false), interface_ (nullptr) { } @@ -85,8 +85,8 @@ be_visitor_context::reset () this->alias_ = nullptr; this->tdef_ = nullptr; this->attr_ = nullptr; - this->exception_ = 0; - this->comma_ = 0; + this->exception_ = false; + this->comma_ = false; this->interface_ = nullptr; this->template_args_ = nullptr; this->template_params_ = nullptr; diff --git a/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp index cf94a17602c..1a2c6dc7fd4 100644 --- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp @@ -95,6 +95,6 @@ be_visitor_enum_any_op_ch::visit_enum (be_enum *node) *os << "\n\n#endif"; } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp index 401a69ae418..f6d8c7f5b35 100644 --- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp @@ -171,6 +171,6 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node) *os << "\n\n#endif"; } - node->cli_stub_any_op_gen (1); + node->cli_stub_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp index d8c642eed23..32f9694a2ba 100644 --- a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp @@ -38,7 +38,7 @@ be_visitor_enum_ch::visit_enum (be_enum *node) TAO_OutStream *os = this->ctx_->stream (); // Comma to be generated by the scope visitor. - this->ctx_->comma (1); + this->ctx_->comma (true); *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; diff --git a/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp index 21e102f68b6..8d19cc74442 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp @@ -106,7 +106,7 @@ be_visitor_exception_any_op_ch::visit_exception (be_exception *node) -1); } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp index 3bbd359fa5e..c38649bd11a 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp @@ -258,7 +258,7 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node) -1); } - node->cli_stub_any_op_gen (1); + node->cli_stub_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp index 7c8541de940..d190c985d5e 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp @@ -67,6 +67,6 @@ be_visitor_exception_cdr_op_ch::visit_exception (be_exception *node) -1); } - node->cli_hdr_cdr_op_gen (1); + node->cli_hdr_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp index 65897a6192a..eb400f07815 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp @@ -177,7 +177,7 @@ be_visitor_exception_cdr_op_cs::visit_exception (be_exception *node) *os << be_global->core_versioning_end () << be_nl; - node->cli_stub_cdr_op_gen (1); + node->cli_stub_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp index c29bd84da8f..58ecc114dd1 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp @@ -126,6 +126,6 @@ int be_visitor_exception_ch::visit_exception (be_exception *node) } } - node->cli_hdr_gen (1); + node->cli_hdr_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp index 4fbc6485a02..b95446f3f0d 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp @@ -117,7 +117,7 @@ be_visitor_interface_any_op_ch::visit_interface (be_interface *node) } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp index 9d36bece90e..b65572712f8 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp @@ -251,7 +251,7 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node) "codegen for scope failed\n"), -1); } - node->cli_stub_any_op_gen (1); + node->cli_stub_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp index 5be866512d4..2453440ca1f 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp @@ -74,7 +74,7 @@ be_visitor_interface_cdr_op_ch::visit_interface (be_interface *node) } this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN); - node->cli_hdr_cdr_op_gen (1); + node->cli_hdr_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp index 071bd2eab0d..a9ac02c8953 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp @@ -137,7 +137,7 @@ be_visitor_interface_cdr_op_cs::visit_interface (be_interface *node) *os << be_global->core_versioning_end () << be_nl; - node->cli_stub_cdr_op_gen (1); + node->cli_stub_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp index fcccf6da943..7136b8cce2e 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp @@ -106,6 +106,6 @@ be_visitor_interface_fwd_any_op_ch::visit_interface_fwd ( *os << "\n\n#endif"; } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp index f6b68cab462..1af551c91c2 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp @@ -57,6 +57,6 @@ be_visitor_interface_fwd_cdr_op_ch::visit_interface_fwd (be_interface_fwd *node) *os << be_global->core_versioning_end () << be_nl; - node->cli_hdr_cdr_op_gen (1); + node->cli_hdr_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp index 8098e494498..0dd0d3522b7 100644 --- a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp @@ -128,6 +128,6 @@ be_visitor_sequence_cdr_op_ch::visit_sequence (be_sequence *node) << node->flat_name () << "_H_ */"; } - node->cli_hdr_cdr_op_gen (1); + node->cli_hdr_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp index 7589ff6fb06..e54fa0d0c03 100644 --- a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp @@ -203,7 +203,7 @@ be_visitor_sequence_cdr_op_cs::visit_sequence (be_sequence *node) << "#endif /* _TAO_CDR_OP_" << node->flat_name () << "_CPP_ */"; - node->cli_stub_cdr_op_gen (1); + node->cli_stub_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp index 53700954348..df8603b9463 100644 --- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp @@ -110,7 +110,7 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node) -1); } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp index 3471d0cd6dd..aa234e85fa4 100644 --- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp @@ -227,7 +227,7 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node) -1); } - node->cli_stub_any_op_gen (1); + node->cli_stub_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp index 2f568927ad2..4d3811f2e0a 100644 --- a/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp @@ -125,7 +125,7 @@ be_visitor_typedef_any_op_ch::visit_typedef (be_typedef *node) this->ctx_->tdef (nullptr); // reset } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp index c57d759a548..0865d98dc57 100644 --- a/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp @@ -125,7 +125,7 @@ be_visitor_typedef_cdr_op_ch::visit_typedef (be_typedef *node) this->ctx_->tdef (nullptr); } - node->cli_hdr_cdr_op_gen (1); + node->cli_hdr_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp index 1f43246e813..9045ff559a8 100644 --- a/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp @@ -121,7 +121,7 @@ be_visitor_typedef_cdr_op_cs::visit_typedef (be_typedef *node) this->ctx_->tdef (nullptr); // reset } - node->cli_stub_cdr_op_gen (1); + node->cli_stub_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp index 96c2289b6c6..b8b2a3eedc9 100644 --- a/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp @@ -131,7 +131,7 @@ be_visitor_union_any_op_ch::visit_union (be_union *node) -1); } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp index 5df518c35d3..d0c95024982 100644 --- a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp @@ -247,7 +247,7 @@ be_visitor_union_any_op_cs::visit_union (be_union *node) -1); } - node->cli_stub_any_op_gen (1); + node->cli_stub_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp index a4b2a4e1bad..142279b0dbf 100644 --- a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp @@ -91,6 +91,6 @@ be_visitor_union_cdr_op_ch::visit_union (be_union *node) -1); } - node->cli_hdr_cdr_op_gen (1); + node->cli_hdr_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp index 71fd4646168..7d17a24f206 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp @@ -102,6 +102,6 @@ be_visitor_valuebox_any_op_ch::visit_valuebox (be_valuebox *node) *os << "\n\n#endif"; } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp index 6487b9870ab..082faf2daf5 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp @@ -189,6 +189,6 @@ be_visitor_valuebox_any_op_cs::visit_valuebox (be_valuebox *node) *os << "\n\n#endif"; } - node->cli_stub_any_op_gen (1); + node->cli_stub_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp index ddf8989d506..30afffb23ee 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp @@ -50,6 +50,6 @@ be_visitor_valuebox_cdr_op_ch::visit_valuebox (be_valuebox *node) *os << be_global->core_versioning_end () << be_nl; - node->cli_hdr_cdr_op_gen (1); + node->cli_hdr_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp index c84536d2103..e36744ab7c6 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp @@ -102,7 +102,7 @@ be_visitor_valuetype_any_op_ch::visit_valuetype (be_valuetype *node) *os << "\n\n#endif"; } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp index 99b92890d4b..e12e0aea8cf 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp @@ -207,7 +207,7 @@ be_visitor_valuetype_any_op_cs::visit_valuetype (be_valuetype *node) *os << "\n\n#endif"; } - node->cli_stub_any_op_gen (1); + node->cli_stub_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp index d2946a27aef..d25849117d9 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp @@ -87,7 +87,7 @@ be_visitor_valuetype_cdr_op_ch::visit_valuetype (be_valuetype *node) visitor.visit_valuetype (node); } - node->cli_hdr_cdr_op_gen (1); + node->cli_hdr_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/field_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/field_ci.cpp index 114f3c01e56..e765dc4fd1a 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_ci.cpp @@ -17,7 +17,7 @@ be_visitor_valuetype_field_ci::be_visitor_valuetype_field_ci ( be_visitor_context *ctx ) : be_visitor_decl (ctx), - in_obv_space_ (0) + in_obv_space_ (false) { setenclosings (""); } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp index 09cc71e4896..5af33deb54b 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp @@ -16,7 +16,7 @@ be_visitor_valuetype_field_cs::be_visitor_valuetype_field_cs ( be_visitor_context *ctx) : be_visitor_decl (ctx), - in_obv_space_ (0) + in_obv_space_ (false) { setenclosings (""); } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp index 2c5d3dde82d..c27d7532d4b 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp @@ -96,8 +96,8 @@ be_visitor_valuetype::visit_attribute (be_attribute *node) be_operation get_op (node->field_type (), AST_Operation::OP_noflags, node->name (), - 0, - 0); + false, + false); get_op.set_name ((UTL_IdList *) node->name ()->copy ()); @@ -138,8 +138,8 @@ be_visitor_valuetype::visit_attribute (be_attribute *node) be_operation set_op (&rt, AST_Operation::OP_noflags, node->name (), - 0, - 0); + false, + false); set_op.set_name ((UTL_IdList *) node->name ()->copy ()); set_op.be_add_argument (arg); diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp index 7e2d503bde4..9edfd2658a6 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp @@ -17,7 +17,7 @@ be_visitor_valuetype_ci::be_visitor_valuetype_ci (be_visitor_context *ctx) : be_visitor_valuetype (ctx), - opt_accessor_ (0) + opt_accessor_ (false) { } @@ -35,7 +35,7 @@ be_visitor_valuetype_ci::visit_valuetype (be_valuetype *node) if (node->opt_accessor ()) { - this->opt_accessor_ = 1; + this->opt_accessor_ = true; } TAO_OutStream *os = this->ctx_->stream (); @@ -107,7 +107,7 @@ be_visitor_valuetype_ci::visit_field (be_field *node) { be_visitor_context ctx (*this->ctx_); be_visitor_valuetype_field_cs visitor (&ctx); - visitor.in_obv_space_ = 0; + visitor.in_obv_space_ = false; visitor.setenclosings ("ACE_INLINE "); if (visitor.visit_field (node) == -1) diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ci.cpp index e0b7151a6fe..05d34ef1a8a 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ci.cpp @@ -77,7 +77,7 @@ be_visitor_valuetype_obv_ci::visit_field (be_field *node) be_visitor_context new_ctx (*this->ctx_); be_visitor_valuetype_field_ci visitor (&new_ctx); - visitor.in_obv_space_ = 1; + visitor.in_obv_space_ = true; if (visitor.visit_field (node) == -1) { diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp index 5282c12a4bd..32f2389daa2 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp @@ -190,7 +190,7 @@ be_visitor_valuetype_obv_cs::visit_field (be_field *node) { be_visitor_context ctx = (*this->ctx_); be_visitor_valuetype_field_cs visitor (&ctx); - visitor.in_obv_space_ = 1; + visitor.in_obv_space_ = true; if (visitor.visit_field (node) == -1) { diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp index d20531abd8e..f2debe24349 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp @@ -115,7 +115,7 @@ be_visitor_valuetype_fwd_any_op_ch::visit_valuetype_fwd ( *os << "\n\n#endif"; } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/driver/drv_preproc.cpp b/TAO/TAO_IDL/driver/drv_preproc.cpp index 0df91e8788a..3e02a5c4ac1 100644 --- a/TAO/TAO_IDL/driver/drv_preproc.cpp +++ b/TAO/TAO_IDL/driver/drv_preproc.cpp @@ -1211,7 +1211,7 @@ DRV_pre_proc (const char *myfile) // is often not enough. We determine // the required space and arg nr // dynamically here. - ACE_Process_Options cpp_options (1, // Inherit environment. + ACE_Process_Options cpp_options (true, // Inherit environment. DRV_cpp_calc_total_argsize (), 16 * 1024, 512, diff --git a/TAO/TAO_IDL/fe/fe_utils.cpp b/TAO/TAO_IDL/fe/fe_utils.cpp index 330dadec876..0279f5a5e0a 100644 --- a/TAO/TAO_IDL/fe/fe_utils.cpp +++ b/TAO/TAO_IDL/fe/fe_utils.cpp @@ -267,7 +267,7 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c, idl_global->scopes ().push (c); AST_Structure *connection = - idl_global->gen ()->create_structure (&sn, 0, 0); + idl_global->gen ()->create_structure (&sn, false, false); struct_id.destroy (); @@ -329,8 +329,8 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c, idl_global->gen ()->create_sequence (bound_expr, connection, nullptr, - 0, - 0); + false, + false); ACE_CString seq_string (struct_name); seq_string += 's'; @@ -340,8 +340,8 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c, AST_Typedef *connections = idl_global->gen ()->create_typedef (sequence, &seq_name, - 0, - 0); + false, + false); seq_id.destroy (); (void) c->fe_add_typedef (connections); diff --git a/TAO/TAO_IDL/fe/idl.tab.cpp b/TAO/TAO_IDL/fe/idl.tab.cpp index 3bebb62ba5e..f87f408f96f 100644 --- a/TAO/TAO_IDL/fe/idl.tab.cpp +++ b/TAO/TAO_IDL/fe/idl.tab.cpp @@ -4486,8 +4486,8 @@ yyreduce: if (s != nullptr) { f = idl_global->gen ()->create_interface_fwd (&n, - 0, - 0); + false, + false); (void) s->fe_add_interface_fwd (f); } @@ -4516,8 +4516,8 @@ yyreduce: if (s != nullptr) { f = idl_global->gen ()->create_interface_fwd (&n, - 1, - 0); + true, + false); (void) s->fe_add_interface_fwd (f); } @@ -4546,8 +4546,8 @@ yyreduce: if (s != nullptr) { f = idl_global->gen ()->create_interface_fwd (&n, - 0, - 1); + false, + true); (void) s->fe_add_interface_fwd (f); } @@ -7253,8 +7253,8 @@ yyreduce: &sn, array_dims->length (), array_dims, - 0, - 0 + false, + false ); array->base_type_annotations (*base_type_annotations); sn.destroy (); @@ -10772,7 +10772,7 @@ yyerrlab: yyerrorlab: /* Pacify compilers when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ - if (0) + if (false) YYERROR; /* Do not reclaim the symbols of the rule whose action triggered diff --git a/TAO/TAO_IDL/fe/idl.yy.cpp b/TAO/TAO_IDL/fe/idl.yy.cpp index cb9debd488f..c919be1d965 100644 --- a/TAO/TAO_IDL/fe/idl.yy.cpp +++ b/TAO/TAO_IDL/fe/idl.yy.cpp @@ -1524,7 +1524,7 @@ YY_DECL #line 1528 "fe/idl.yy.cpp" - while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ + while ( /*CONSTCOND*/true ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); @@ -4195,7 +4195,7 @@ idl_valid_version (char *s) // Nothing preceding decimal point. if (*s == '.') { - return 0; + return false; } char *minor = ACE_OS::strchr (s, '.'); @@ -4204,13 +4204,13 @@ idl_valid_version (char *s) if (minor == nullptr) { // No decimal point. - return 0; + return false; } if (*(minor + 1) == '\0') { // Nothing following decimal point. - return 0; + return false; } char *tmp = minor + 1; @@ -4219,7 +4219,7 @@ idl_valid_version (char *s) { if (!isdigit (tmp[i])) { - return 0; + return false; } } @@ -4229,7 +4229,7 @@ idl_valid_version (char *s) { if (!isdigit (s[i])) { - return 0; + return false; } } @@ -4237,10 +4237,10 @@ idl_valid_version (char *s) if (ACE_OS::atoi (minor + 1) > ACE_UINT16_MAX || ACE_OS::atoi (s) > ACE_UINT16_MAX) { - return 0; + return false; } - return 1; + return true; } static AST_Decl * diff --git a/TAO/TAO_IDL/util/utl_scope.cpp b/TAO/TAO_IDL/util/utl_scope.cpp index c2079e47d8e..1ed63df688b 100644 --- a/TAO/TAO_IDL/util/utl_scope.cpp +++ b/TAO/TAO_IDL/util/utl_scope.cpp @@ -134,7 +134,7 @@ UTL_Scope::UTL_Scope () pd_name_referenced (nullptr), pd_name_referenced_allocated (0), pd_name_referenced_used (0), - has_prefix_ (0), + has_prefix_ (false), which_pseudo_ (PSEUDO_ABSTRACTBASE) { } @@ -153,7 +153,7 @@ UTL_Scope::UTL_Scope (AST_Decl::NodeType nt) pd_name_referenced (nullptr), pd_name_referenced_allocated (0), pd_name_referenced_used (0), - has_prefix_ (0), + has_prefix_ (false), which_pseudo_ (PSEUDO_ABSTRACTBASE) { } diff --git a/TAO/TAO_IDL/util/utl_string.cpp b/TAO/TAO_IDL/util/utl_string.cpp index 1939f4cd587..d9070dfa65f 100644 --- a/TAO/TAO_IDL/util/utl_string.cpp +++ b/TAO/TAO_IDL/util/utl_string.cpp @@ -224,7 +224,7 @@ UTL_String::destroy () if (this->copy_taken) { ACE::strdelete (this->p_str); - this->copy_taken = 0; + this->copy_taken = false; } this->p_str = nullptr; } |