summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-10-05 22:47:50 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-10-05 22:47:50 +0000
commit3c2af8b9820514fa9124318f88a407443baa8e81 (patch)
tree93789903438a7ff532426fa9700b1e26078ae068 /TAO/TAO_IDL
parent210abfa6bb3c46c8f10b60e6aa10ec35d1a3f13d (diff)
downloadATCD-3c2af8b9820514fa9124318f88a407443baa8e81.tar.gz
ChangeLogTag: Fri Oct 5 17:42:53 2001 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r--TAO/TAO_IDL/include/utl_identifier.h2
-rw-r--r--TAO/TAO_IDL/include/utl_idlist.h6
-rw-r--r--TAO/TAO_IDL/include/utl_indenter.h2
-rw-r--r--TAO/TAO_IDL/include/utl_scope.h6
-rw-r--r--TAO/TAO_IDL/include/utl_string.h2
-rw-r--r--TAO/TAO_IDL/include/utl_strlist.h4
-rw-r--r--TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h2
-rw-r--r--TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h2
-rw-r--r--TAO/TAO_IDL/util/utl_identifier.cpp19
-rw-r--r--TAO/TAO_IDL/util/utl_idlist.cpp27
-rw-r--r--TAO/TAO_IDL/util/utl_indenter.cpp10
-rw-r--r--TAO/TAO_IDL/util/utl_scope.cpp280
-rw-r--r--TAO/TAO_IDL/util/utl_string.cpp28
-rw-r--r--TAO/TAO_IDL/util/utl_strlist.cpp38
-rw-r--r--TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp24
-rw-r--r--TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp24
16 files changed, 237 insertions, 239 deletions
diff --git a/TAO/TAO_IDL/include/utl_identifier.h b/TAO/TAO_IDL/include/utl_identifier.h
index 1d82a0eddb1..05a82fb4605 100644
--- a/TAO/TAO_IDL/include/utl_identifier.h
+++ b/TAO/TAO_IDL/include/utl_identifier.h
@@ -115,7 +115,7 @@ public:
idl_bool escaped (void) const;
// Accessor for the member.
- virtual void dump (ostream &o);
+ virtual void dump (ACE_OSTREAM_TYPE &o);
// Dump to an ostream.
virtual void destroy (void);
diff --git a/TAO/TAO_IDL/include/utl_idlist.h b/TAO/TAO_IDL/include/utl_idlist.h
index dd8fd2f0e7d..01de5961d7e 100644
--- a/TAO/TAO_IDL/include/utl_idlist.h
+++ b/TAO/TAO_IDL/include/utl_idlist.h
@@ -102,7 +102,7 @@ class TAO_IDL_FE_Export UTL_IdList : public UTL_List
// Used to maintain a list of identifiers. The primary usage of this class
// is to maintain a scoped name.
public:
- UTL_IdList (Identifier *car,
+ UTL_IdList (Identifier *car,
UTL_IdList *cdr);
// Constructor(s)
@@ -111,7 +111,7 @@ public:
// =AST Dumping
- virtual void dump (ostream &o);
+ virtual void dump (ACE_OSTREAM_TYPE &o);
// dump to ostream
virtual void destroy (void);
@@ -133,7 +133,7 @@ private:
// Active iterator for UTL_IdList
-class TAO_IDL_FE_Export UTL_IdListActiveIterator
+class TAO_IDL_FE_Export UTL_IdListActiveIterator
: public UTL_ListActiveIterator
{
// =TITLE
diff --git a/TAO/TAO_IDL/include/utl_indenter.h b/TAO/TAO_IDL/include/utl_indenter.h
index c72291eaf92..e50edd3681b 100644
--- a/TAO/TAO_IDL/include/utl_indenter.h
+++ b/TAO/TAO_IDL/include/utl_indenter.h
@@ -103,7 +103,7 @@ public:
void decrease();
// Decrease indentation level
- void skip_to (ostream &o);
+ void skip_to (ACE_OSTREAM_TYPE &o);
// Skip to indentation level stop
void skip_to (FILE *fp);
diff --git a/TAO/TAO_IDL/include/utl_scope.h b/TAO/TAO_IDL/include/utl_scope.h
index 1fa13d18b8c..6e123f14eed 100644
--- a/TAO/TAO_IDL/include/utl_scope.h
+++ b/TAO/TAO_IDL/include/utl_scope.h
@@ -171,7 +171,7 @@ public:
DEF_NARROW_FROM_SCOPE(UTL_Scope);
// AST Dumping.
- virtual void dump (ostream &o);
+ virtual void dump (ACE_OSTREAM_TYPE &o);
// Other Operations.
@@ -330,13 +330,13 @@ private:
};
// Active iterator for a UTL_Scope node
-class TAO_IDL_FE_Export UTL_ScopeActiveIterator
+class TAO_IDL_FE_Export UTL_ScopeActiveIterator
{
public:
// Operations.
// Constructor.
- UTL_ScopeActiveIterator (UTL_Scope *s,
+ UTL_ScopeActiveIterator (UTL_Scope *s,
UTL_Scope::ScopeIterationKind ik);
// Advance to next item.
diff --git a/TAO/TAO_IDL/include/utl_string.h b/TAO/TAO_IDL/include/utl_string.h
index 7569f711fad..b64dd3b7b36 100644
--- a/TAO/TAO_IDL/include/utl_string.h
+++ b/TAO/TAO_IDL/include/utl_string.h
@@ -98,7 +98,7 @@ public:
// =AST Dumping.
- virtual void dump (ostream &o);
+ virtual void dump (ACE_OSTREAM_TYPE &o);
// Dump to the ostream.
// =Other Operations
diff --git a/TAO/TAO_IDL/include/utl_strlist.h b/TAO/TAO_IDL/include/utl_strlist.h
index 446b87cb1d0..a15b7df9ad8 100644
--- a/TAO/TAO_IDL/include/utl_strlist.h
+++ b/TAO/TAO_IDL/include/utl_strlist.h
@@ -101,7 +101,7 @@ public:
virtual ~UTL_StrList (void);
// AST Dumping
- virtual void dump(ostream &o);
+ virtual void dump(ACE_OSTREAM_TYPE &o);
// Other Operations
@@ -126,7 +126,7 @@ private:
};
// Active iterator for UTL_StrList
-class TAO_IDL_FE_Export UTL_StrlistActiveIterator
+class TAO_IDL_FE_Export UTL_StrlistActiveIterator
: public UTL_ListActiveIterator
{
public:
diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h
index a9a1b77c26d..76802a7f487 100644
--- a/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h
+++ b/TAO/TAO_IDL/include/utl_tmpl/utl_idlist.h
@@ -84,7 +84,7 @@ class UTL_IdList : public UTL_List<UTL_IdList, Identifier>
virtual ~UTL_IdList() {}
// AST Dumping
- virtual void dump(ostream &o);
+ virtual void dump(ACE_OSTREAM_TYPE &o);
// Other operations
diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h
index 2bdfe06b847..1281df2ecd7 100644
--- a/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h
+++ b/TAO/TAO_IDL/include/utl_tmpl/utl_strlist.h
@@ -86,7 +86,7 @@ public:
virtual ~UTL_StrList() {}
// AST Dumping
- virtual void dump(ostream &o);
+ virtual void dump(ACE_OSTREAM_TYPE &o);
// Other Operations
diff --git a/TAO/TAO_IDL/util/utl_identifier.cpp b/TAO/TAO_IDL/util/utl_identifier.cpp
index 1a18c017cc3..3a1b5c23027 100644
--- a/TAO/TAO_IDL/util/utl_identifier.cpp
+++ b/TAO/TAO_IDL/util/utl_identifier.cpp
@@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR
Sun, Sun Microsystems and the Sun logo are trademarks or registered
trademarks of Sun Microsystems, Inc.
-SunSoft, Inc.
-2550 Garcia Avenue
+SunSoft, Inc.
+2550 Garcia Avenue
Mountain View, California 94043
NOTE:
@@ -66,8 +66,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// utl_identifier - Implementation of identifiers
-#include "idl.h"
-#include "idl_extern.h"
+#include "idl.h"
+#include "idl_extern.h"
ACE_RCSID(util, utl_identifier, "$Id$")
@@ -101,7 +101,7 @@ Identifier::Identifier (const char *s)
0,
0);
- if (str.find ("_cxx_") == 0
+ if (str.find ("_cxx_") == 0
|| str.find ("_tc_") == 0
|| str.find ("_tao_") == 0)
{
@@ -119,7 +119,7 @@ Identifier::Identifier (const char *s)
}
}
-Identifier::~Identifier (void)
+Identifier::~Identifier (void)
{
}
@@ -146,7 +146,7 @@ Identifier::replace_string (const char * s)
long
Identifier::compare (Identifier *o)
{
- if (o == 0)
+ if (o == 0)
{
return I_FALSE;
};
@@ -210,9 +210,9 @@ Identifier::escaped (void) const
// Dumping.
void
-Identifier::dump (ostream &o)
+Identifier::dump (ACE_OSTREAM_TYPE &o)
{
- if (this->pv_string == 0)
+ if (this->pv_string == 0)
{
return;
}
@@ -229,4 +229,3 @@ Identifier::destroy (void)
this->pv_string = 0;
}
}
-
diff --git a/TAO/TAO_IDL/util/utl_idlist.cpp b/TAO/TAO_IDL/util/utl_idlist.cpp
index 346a1a553a8..aa41928e408 100644
--- a/TAO/TAO_IDL/util/utl_idlist.cpp
+++ b/TAO/TAO_IDL/util/utl_idlist.cpp
@@ -70,23 +70,23 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// NOTE: This list class only works correctly because we use single public
// inheritance, as opposed to multiple inheritance or public virtual.
-// It relies on a type-unsafe cast from UTL_List to subclasses, which
-// will cease to operate correctly if you use either multiple or
-// public virtual inheritance.
+// It relies on a type-unsafe cast from UTL_List to subclasses, which
+// will cease to operate correctly if you use either multiple or
+// public virtual inheritance.
//
-// For portability reasons we have decided to provide both this and
-// an implementation of the list classes in terms of templates. If
-// your compiler supports templates, please use the files in the
-// include/utl_tmpl and util/utl_tmpl directories instead of the
-// files by the same names in the include and util directories.
+// For portability reasons we have decided to provide both this and
+// an implementation of the list classes in terms of templates. If
+// your compiler supports templates, please use the files in the
+// include/utl_tmpl and util/utl_tmpl directories instead of the
+// files by the same names in the include and util directories.
-#include "idl.h"
-#include "idl_extern.h"
+#include "idl.h"
+#include "idl_extern.h"
ACE_RCSID(util, utl_idlist, "$Id$")
// Constructor
-UTL_IdList::UTL_IdList (Identifier *s,
+UTL_IdList::UTL_IdList (Identifier *s,
UTL_IdList *cdr)
: UTL_List ((UTL_List *) cdr),
pd_car_data (s)
@@ -109,7 +109,7 @@ UTL_IdList::copy ()
if (this->tail () == 0)
{
ACE_NEW_RETURN (retval,
- UTL_IdList (id,
+ UTL_IdList (id,
0),
0);
}
@@ -142,7 +142,7 @@ UTL_IdList::last_component ()
// AST Dumping
void
-UTL_IdList::dump (ostream &o)
+UTL_IdList::dump (ACE_OSTREAM_TYPE &o)
{
UTL_IdListActiveIterator *i = 0;
ACE_NEW (i,
@@ -214,4 +214,3 @@ UTL_IdListActiveIterator::item ()
return NULL;
return ((UTL_IdList *) source)->head ();
}
-
diff --git a/TAO/TAO_IDL/util/utl_indenter.cpp b/TAO/TAO_IDL/util/utl_indenter.cpp
index 852e5c203f6..ba00f0cb394 100644
--- a/TAO/TAO_IDL/util/utl_indenter.cpp
+++ b/TAO/TAO_IDL/util/utl_indenter.cpp
@@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR
Sun, Sun Microsystems and the Sun logo are trademarks or registered
trademarks of Sun Microsystems, Inc.
-SunSoft, Inc.
-2550 Garcia Avenue
+SunSoft, Inc.
+2550 Garcia Avenue
Mountain View, California 94043
NOTE:
@@ -67,8 +67,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// utl_indenter.cc - Implementation of indenter for dumping IDL AST
//
-#include "idl.h"
-#include "idl_extern.h"
+#include "idl.h"
+#include "idl_extern.h"
ACE_RCSID(util, utl_indenter, "$Id$")
@@ -112,7 +112,7 @@ UTL_Indenter::decrease ()
// Produce white space to indent to current indentation level on ostream o
void
-UTL_Indenter::skip_to (ostream &o)
+UTL_Indenter::skip_to (ACE_OSTREAM_TYPE &o)
{
long i;
diff --git a/TAO/TAO_IDL/util/utl_scope.cpp b/TAO/TAO_IDL/util/utl_scope.cpp
index 040a3a85a7b..b590f3f2416 100644
--- a/TAO/TAO_IDL/util/utl_scope.cpp
+++ b/TAO/TAO_IDL/util/utl_scope.cpp
@@ -84,7 +84,7 @@ is_global_name (Identifier *i)
{
long comp_result = 0;
- if (i == 0)
+ if (i == 0)
{
return comp_result;
}
@@ -124,7 +124,7 @@ iter_lookup_by_name_local (AST_Decl *d,
AST_Decl *result = 0;
// Remove all the layers of typedefs.
- while (d != NULL && d->node_type () == AST_Decl::NT_typedef)
+ while (d != NULL && d->node_type () == AST_Decl::NT_typedef)
{
if (td == 0)
{
@@ -150,7 +150,7 @@ iter_lookup_by_name_local (AST_Decl *d,
if (index < ACE_static_cast (long, sc->nmembers ()))
{
// Look up the first component of the scoped name.
- result = sc->lookup_by_name_local (e->head (),
+ result = sc->lookup_by_name_local (e->head (),
index);
}
else
@@ -158,7 +158,7 @@ iter_lookup_by_name_local (AST_Decl *d,
return 0;
}
-
+
if (result == 0)
{
return 0;
@@ -175,7 +175,7 @@ iter_lookup_by_name_local (AST_Decl *d,
else
{
// Look up the next component of the scoped name.
- result = iter_lookup_by_name_local (result,
+ result = iter_lookup_by_name_local (result,
sn,
0);
}
@@ -248,14 +248,14 @@ add_type (AST_Type *type)
AST_Decl *result = 0;
UTL_Scope *scope = 0;
- switch (type->node_type())
+ switch (type->node_type())
{
case AST_Decl::NT_array:
result =
idl_global->root ()->add_array (AST_Array::narrow_from_decl (type));
break;
case AST_Decl::NT_enum:
- result =
+ result =
type->defined_in ()->add_enum (AST_Enum::narrow_from_decl (type));
scope = AST_Enum::narrow_from_decl (type);
break;
@@ -303,7 +303,7 @@ add_type (AST_Type *type)
// the fully scoped name, when doing lookups. This version is intended to
// be used only by the CFE add_xxx functions.
AST_Decl *
-UTL_Scope::lookup_for_add (AST_Decl *d,
+UTL_Scope::lookup_for_add (AST_Decl *d,
idl_bool)
{
if (d == 0)
@@ -318,7 +318,7 @@ UTL_Scope::lookup_for_add (AST_Decl *d,
return 0;
}
- return lookup_by_name_local (id,
+ return lookup_by_name_local (id,
0);
}
@@ -374,7 +374,7 @@ IMPL_NARROW_FROM_SCOPE(UTL_Scope)
AST_PredefinedType *
UTL_Scope::add_predefined_type (AST_PredefinedType *p)
{
- if (p == 0)
+ if (p == 0)
{
return 0;
}
@@ -398,7 +398,7 @@ UTL_Scope::add_module (AST_Module *m)
AST_Interface *
UTL_Scope::add_interface (AST_Interface *i)
{
- if (i == 0)
+ if (i == 0)
{
return 0;
}
@@ -410,7 +410,7 @@ UTL_Scope::add_interface (AST_Interface *i)
AST_InterfaceFwd *
UTL_Scope::add_interface_fwd (AST_InterfaceFwd *i)
{
- if (i == 0)
+ if (i == 0)
{
return 0;
}
@@ -422,7 +422,7 @@ UTL_Scope::add_interface_fwd (AST_InterfaceFwd *i)
AST_Exception *
UTL_Scope::add_exception (AST_Exception *e)
{
- if (e == 0)
+ if (e == 0)
{
return 0;
}
@@ -434,7 +434,7 @@ UTL_Scope::add_exception (AST_Exception *e)
AST_Constant *
UTL_Scope::add_constant (AST_Constant *c)
{
- if (c == 0)
+ if (c == 0)
{
return 0;
}
@@ -458,17 +458,17 @@ UTL_Scope::add_exceptions (UTL_NameList *e)
AST_Attribute *
UTL_Scope::add_attribute (AST_Attribute *a)
{
- if (a == 0)
+ if (a == 0)
{
return 0;
}
a->set_added (I_TRUE);
- if (!a->field_type ()->added ())
+ if (!a->field_type ()->added ())
{
return add_type (a->field_type ()) ? a : 0;
- }
+ }
else
{
return a;
@@ -478,17 +478,17 @@ UTL_Scope::add_attribute (AST_Attribute *a)
AST_Operation *
UTL_Scope::add_operation (AST_Operation *o)
{
- if (o == 0)
+ if (o == 0)
{
return 0;
}
o->set_added (I_TRUE);
- if (!o->return_type ()->added ())
+ if (!o->return_type ()->added ())
{
return add_type (o->return_type ()) ? o : 0;
- }
+ }
else
{
return o;
@@ -498,17 +498,17 @@ UTL_Scope::add_operation (AST_Operation *o)
AST_Argument *
UTL_Scope::add_argument (AST_Argument *a)
{
- if (a == 0)
+ if (a == 0)
{
return 0;
}
a->set_added (I_TRUE);
- if (!a->field_type ()->added ())
+ if (!a->field_type ()->added ())
{
return add_type (a->field_type ()) ? a : 0;
- }
+ }
else
{
return a;
@@ -518,7 +518,7 @@ UTL_Scope::add_argument (AST_Argument *a)
AST_Union *
UTL_Scope::add_union (AST_Union *u)
{
- if (u == 0)
+ if (u == 0)
{
return 0;
}
@@ -530,17 +530,17 @@ UTL_Scope::add_union (AST_Union *u)
AST_UnionBranch *
UTL_Scope::add_union_branch (AST_UnionBranch *u)
{
- if (u == 0)
+ if (u == 0)
{
return 0;
}
u->set_added (I_TRUE);
- if (!u->field_type ()->added ())
+ if (!u->field_type ()->added ())
{
return add_type (u->field_type ()) ? u : 0;
- }
+ }
else
{
return u;
@@ -550,7 +550,7 @@ UTL_Scope::add_union_branch (AST_UnionBranch *u)
AST_Structure *
UTL_Scope::add_structure (AST_Structure *s)
{
- if (s == 0)
+ if (s == 0)
{
return 0;
}
@@ -562,17 +562,17 @@ UTL_Scope::add_structure (AST_Structure *s)
AST_Field *
UTL_Scope::add_field (AST_Field *f)
{
- if (f == 0)
+ if (f == 0)
{
return 0;
}
f->set_added (I_TRUE);
- if (!f->field_type ()->added ())
+ if (!f->field_type ()->added ())
{
return add_type (f->field_type ()) ? f : 0;
- }
+ }
else
{
return f;
@@ -582,7 +582,7 @@ UTL_Scope::add_field (AST_Field *f)
AST_Enum *
UTL_Scope::add_enum (AST_Enum *e)
{
- if (e == 0)
+ if (e == 0)
{
return 0;
}
@@ -594,7 +594,7 @@ UTL_Scope::add_enum (AST_Enum *e)
AST_EnumVal *
UTL_Scope::add_enum_val (AST_EnumVal *e)
{
- if (e == 0)
+ if (e == 0)
{
return 0;
}
@@ -606,16 +606,16 @@ UTL_Scope::add_enum_val (AST_EnumVal *e)
AST_Typedef *
UTL_Scope::add_typedef (AST_Typedef *t)
{
- if (t == 0)
+ if (t == 0)
{
return 0;
}
t->set_added (I_TRUE);
- if (!t->base_type ()->added ())
+ if (!t->base_type ()->added ())
{
return add_type (t->base_type ()) ? t : 0;
- }
+ }
else
{
return t;
@@ -625,17 +625,17 @@ UTL_Scope::add_typedef (AST_Typedef *t)
AST_Sequence *
UTL_Scope::add_sequence (AST_Sequence *s)
{
- if (s == 0)
+ if (s == 0)
{
return 0;
}
s->set_added (I_TRUE);
- if (!s->base_type ()->added ())
+ if (!s->base_type ()->added ())
{
return add_type (s->base_type ()) ? s : 0;
- }
+ }
else
{
return s;
@@ -645,7 +645,7 @@ UTL_Scope::add_sequence (AST_Sequence *s)
AST_String *
UTL_Scope::add_string (AST_String *s)
{
- if (s == 0)
+ if (s == 0)
{
return 0;
}
@@ -657,17 +657,17 @@ UTL_Scope::add_string (AST_String *s)
AST_Array *
UTL_Scope::add_array (AST_Array *a)
{
- if (a == 0)
+ if (a == 0)
{
return 0;
}
a->set_added (I_TRUE);
- if (!a->base_type ()->added ())
+ if (!a->base_type ()->added ())
{
return add_type (a->base_type ()) ? a : 0;
- }
+ }
else
{
return a;
@@ -677,7 +677,7 @@ UTL_Scope::add_array (AST_Array *a)
AST_Native *
UTL_Scope::add_native (AST_Native *n)
{
- if (n == 0)
+ if (n == 0)
{
return 0;
}
@@ -835,16 +835,16 @@ UTL_Scope::call_add (void)
AST_Decl *result = 0;
AST_Decl *decl = 0;
- UTL_ScopeActiveIterator i (this,
+ UTL_ScopeActiveIterator i (this,
UTL_Scope::IK_decls);
UTL_Scope *scope = 0;
- while (!i.is_done ())
+ while (!i.is_done ())
{
decl = i.item ();
scope = 0;
- switch (decl->node_type ())
+ switch (decl->node_type ())
{
case AST_Decl::NT_argument:
result = add_argument (AST_Argument::narrow_from_decl (decl));
@@ -877,7 +877,7 @@ UTL_Scope::call_add (void)
result = add_interface (AST_Interface::narrow_from_decl (decl));
break;
case AST_Decl::NT_interface_fwd:
- result =
+ result =
add_interface_fwd (AST_InterfaceFwd::narrow_from_decl (decl));
break;
case AST_Decl::NT_module:
@@ -914,7 +914,7 @@ UTL_Scope::call_add (void)
scope = AST_Union::narrow_from_decl (decl);
break;
case AST_Decl::NT_union_branch:
- result =
+ result =
add_union_branch (AST_UnionBranch::narrow_from_decl (decl));
break;
default:
@@ -957,7 +957,7 @@ UTL_Scope::lookup_primitive_type (AST_Expression::ExprType et)
return ancestor->lookup_primitive_type (et);
}
- switch (et)
+ switch (et)
{
case AST_Expression::EV_short:
pdt = AST_PredefinedType::PT_short;
@@ -1012,25 +1012,25 @@ UTL_Scope::lookup_primitive_type (AST_Expression::ExprType et)
}
ACE_NEW_RETURN (i,
- UTL_ScopeActiveIterator (this,
+ UTL_ScopeActiveIterator (this,
UTL_Scope::IK_decls),
0);
- while (!i->is_done())
+ while (!i->is_done())
{
as_decl = i->item ();
- if (as_decl->node_type () == AST_Decl::NT_pre_defined)
+ if (as_decl->node_type () == AST_Decl::NT_pre_defined)
{
t = AST_PredefinedType::narrow_from_decl (as_decl);
- if (t == NULL)
+ if (t == NULL)
{
i->next ();
continue;
}
- if (t->pt () == pdt)
+ if (t->pt () == pdt)
{
delete i;
return t;
@@ -1045,7 +1045,7 @@ UTL_Scope::lookup_primitive_type (AST_Expression::ExprType et)
// Look through inherited interfaces.
AST_Decl *
-UTL_Scope::look_in_inherited (UTL_ScopedName *e,
+UTL_Scope::look_in_inherited (UTL_ScopedName *e,
idl_bool treat_as_ref)
{
AST_Decl *d = 0;
@@ -1061,9 +1061,9 @@ UTL_Scope::look_in_inherited (UTL_ScopedName *e,
}
// Can't look in an interface which was not yet defined.
- if (!i->is_defined ())
+ if (!i->is_defined ())
{
- idl_global->err ()->fwd_decl_lookup (i,
+ idl_global->err ()->fwd_decl_lookup (i,
e);
return 0;
}
@@ -1075,43 +1075,43 @@ UTL_Scope::look_in_inherited (UTL_ScopedName *e,
for (nis = i->n_inherits (), is = i->inherits (); nis > 0; nis--, is++)
{
- d = (*is)->lookup_by_name (e,
- treat_as_ref,
+ d = (*is)->lookup_by_name (e,
+ treat_as_ref,
0 /* not in parent */);
- if (d != 0)
+ if (d != 0)
{
- if (d_before == 0)
- {
+ if (d_before == 0)
+ {
// First result found.
- d_before = d;
- }
- else
- {
+ d_before = d;
+ }
+ else
+ {
// Conflict against further results?
- if (d != d_before)
+ if (d != d_before)
{
ACE_ERROR ((LM_ERROR,
- "warning in %s line %d: ",
+ "warning in %s line %d: ",
idl_global->filename ()->get_string (),
- idl_global->lineno ()));
+ idl_global->lineno ()));
- e->dump (*ACE_DEFAULT_LOG_STREAM);
+ e->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
- " is ambiguous in scope.\n"
+ " is ambiguous in scope.\n"
"Found "));
- d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
+ d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
- " and "));
+ " and "));
- d_before->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
+ d_before->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
- ".\n"));
- }
- }
+ ".\n"));
+ }
+ }
}
}
@@ -1150,16 +1150,16 @@ UTL_Scope::lookup_by_name_local (Identifier *e,
continue;
}
- if (e->case_compare (item_name))
+ if (e->case_compare (item_name))
{
if (index == 0)
{
delete i;
- // Special case for forward declared interfaces.
- // Look through the forward declaration and retrieve
+ // Special case for forward declared interfaces.
+ // Look through the forward declaration and retrieve
// the full definition.
- if (d->node_type () == AST_Decl::NT_interface_fwd)
+ if (d->node_type () == AST_Decl::NT_interface_fwd)
{
d = AST_InterfaceFwd::narrow_from_decl (d)->full_definition ();
}
@@ -1167,9 +1167,9 @@ UTL_Scope::lookup_by_name_local (Identifier *e,
return d;
}
else
- // If the index has been incremented, it means the identifier
+ // If the index has been incremented, it means the identifier
// matched on a previous call to this function, but after
- // returning, the rest of the scoped name didn't match. So we
+ // returning, the rest of the scoped name didn't match. So we
// see if there's another matching identifier to the 'head' of
// the scoped name we're working with.
{
@@ -1202,7 +1202,7 @@ UTL_Scope::lookup_by_name_local (Identifier *e,
// Implements lookup by name for scoped names.
AST_Decl *
-UTL_Scope::lookup_by_name (UTL_ScopedName *e,
+UTL_Scope::lookup_by_name (UTL_ScopedName *e,
idl_bool treat_as_ref,
idl_bool in_parent)
{
@@ -1210,13 +1210,13 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
UTL_Scope *t = 0;
// Empty name? Error.
- if (e == 0)
+ if (e == 0)
{
return 0;
}
// If name starts with "::" or "" start lookup in global scope.
- if (is_global_name (e->head ()))
+ if (is_global_name (e->head ()))
{
// Get parent scope.
d = ScopeAsDecl (this);
@@ -1229,10 +1229,10 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
t = d->defined_in ();
// If this is the global scope..
- if (t == 0)
+ if (t == 0)
{
// Look up tail of name starting here.
- d = lookup_by_name ((UTL_ScopedName *) e->tail (),
+ d = lookup_by_name ((UTL_ScopedName *) e->tail (),
treat_as_ref,
in_parent);
@@ -1241,7 +1241,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
}
// OK, not global scope yet, so simply iterate with parent scope.
- d = t->lookup_by_name (e,
+ d = t->lookup_by_name (e,
treat_as_ref,
in_parent);
@@ -1249,7 +1249,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
// set of nodes referenced here.
if (treat_as_ref && d != 0)
{
- add_to_referenced (d,
+ add_to_referenced (d,
I_FALSE,
0);
}
@@ -1262,30 +1262,30 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
// Is name defined here?
long index = 0;
- while (1)
+ while (1)
{
- d = lookup_by_name_local (e->head (),
+ d = lookup_by_name_local (e->head (),
index);
- if (d == 0)
+ if (d == 0)
{
// Special case for scope which is an interface. We have to look
// in the inherited interfaces as well.
- // Look before parent scopes.
+ // Look before parent scopes.
if (pd_scope_node_type == AST_Decl::NT_interface)
{
- d = look_in_inherited (e,
+ d = look_in_inherited (e,
treat_as_ref);
}
- if ((d == 0) && in_parent)
+ if ((d == 0) && in_parent)
{
// OK, not found. Go down parent scope chain.
d = ScopeAsDecl (this);
- if (d != 0)
+ if (d != 0)
{
t = d->defined_in ();
@@ -1295,8 +1295,8 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
}
else
{
- d = t->lookup_by_name (e,
- treat_as_ref,
+ d = t->lookup_by_name (e,
+ treat_as_ref,
in_parent);
}
}
@@ -1326,7 +1326,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
// the only one that counts as a reference in a scope.
if (id == e->last_component ())
{
- add_to_referenced (d,
+ add_to_referenced (d,
I_FALSE,
id);
}
@@ -1373,7 +1373,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
if (sn != 0)
{
- d = iter_lookup_by_name_local (d,
+ d = iter_lookup_by_name_local (d,
sn,
0);
}
@@ -1393,7 +1393,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
// set of nodes referenced here.
if (treat_as_ref && d != 0)
{
- add_to_referenced (d,
+ add_to_referenced (d,
I_FALSE,
0);
}
@@ -1412,7 +1412,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
// Add a node to set of nodes referenced in this scope.
void
-UTL_Scope::add_to_referenced (AST_Decl *e,
+UTL_Scope::add_to_referenced (AST_Decl *e,
idl_bool recursive,
Identifier *id,
AST_Decl *ex)
@@ -1423,7 +1423,7 @@ UTL_Scope::add_to_referenced (AST_Decl *e,
long oreferenced_allocated;
long i;
- if (e == 0)
+ if (e == 0)
{
return;
}
@@ -1431,12 +1431,12 @@ UTL_Scope::add_to_referenced (AST_Decl *e,
// Special case for forward declared interfaces in the
// scope in which they're defined. Cannot add before full
// definition is seen.
- if (e->node_type() == AST_Decl::NT_interface)
+ if (e->node_type() == AST_Decl::NT_interface)
{
itf = AST_Interface::narrow_from_decl(e);
- if (itf != 0
- && itf->defined_in () == this
+ if (itf != 0
+ && itf->defined_in () == this
&& !itf->is_defined ())
{
return;
@@ -1450,7 +1450,7 @@ UTL_Scope::add_to_referenced (AST_Decl *e,
}
// Make sure there's space for one more decl.
- if (this->pd_referenced_allocated == this->pd_referenced_used)
+ if (this->pd_referenced_allocated == this->pd_referenced_used)
{
oreferenced_allocated = this->pd_referenced_allocated;
pd_referenced_allocated += INCREMENT;
@@ -1495,14 +1495,14 @@ UTL_Scope::add_to_referenced (AST_Decl *e,
// Now, if recursive is specified and "this" is not a common ancestor
// of the referencing scope and the scope of definition of "e" then
// add "e" to the set of referenced nodes in the parent of "this".
- if (recursive && !(e->has_ancestor (ScopeAsDecl (this))))
+ if (recursive && !(e->has_ancestor (ScopeAsDecl (this))))
{
s = e->defined_in ();
if (s != 0)
{
- s->add_to_referenced (e,
- recursive,
+ s->add_to_referenced (e,
+ recursive,
id);
}
}
@@ -1534,7 +1534,7 @@ UTL_Scope::add_to_referenced (AST_Decl *e,
}
}
-void
+void
UTL_Scope::replace_referenced (AST_Decl *old_decl,
AST_Decl *new_decl)
{
@@ -1546,11 +1546,11 @@ UTL_Scope::replace_referenced (AST_Decl *old_decl,
break;
}
}
-
+
}
-void
+void
UTL_Scope::replace_scope (AST_Decl *old_decl,
AST_Decl *new_decl)
{
@@ -1562,16 +1562,16 @@ UTL_Scope::replace_scope (AST_Decl *old_decl,
break;
}
}
-
+
}
// Add a node to set of nodes declared in this scope.
void
-UTL_Scope::add_to_scope (AST_Decl *e,
+UTL_Scope::add_to_scope (AST_Decl *e,
AST_Decl *ex)
{
- if (e == 0)
+ if (e == 0)
{
return;
}
@@ -1623,9 +1623,9 @@ UTL_Scope::add_to_scope (AST_Decl *e,
delete iter;
}
- // If the names compare exactly, it's a redefinition
+ // If the names compare exactly, it's a redefinition
// error, unless they're both modules (which can be
- // reopened) or we have a belated definition of a
+ // reopened) or we have a belated definition of a
// forward-declared interface.
if (decl_name->compare (ref_name) == I_TRUE
&& e->node_type () != AST_Decl::NT_module
@@ -1658,7 +1658,7 @@ UTL_Scope::add_to_scope (AST_Decl *e,
AST_Decl *d = ScopeAsDecl (this);
AST_Decl::NodeType nt = d->node_type ();
- // The name of any scope except the unnamed scope formed by an operation
+ // The name of any scope except the unnamed scope formed by an operation
// may not be redefined immediately within (and the root scope has no name).
if (nt != AST_Decl::NT_root && nt != AST_Decl::NT_op)
{
@@ -1691,7 +1691,7 @@ UTL_Scope::add_to_scope (AST_Decl *e,
}
// Now make sure there's space for one more.
- if (this->pd_decls_allocated == this->pd_decls_used)
+ if (this->pd_decls_allocated == this->pd_decls_used)
{
long odecls_allocated = this->pd_decls_allocated;
this->pd_decls_allocated += INCREMENT;
@@ -1732,18 +1732,18 @@ UTL_Scope::add_to_scope (AST_Decl *e,
}
}
-// Add a node to set of nodes representing manifest
+// Add a node to set of nodes representing manifest
// types defined in this scope.
void
UTL_Scope::add_to_local_types (AST_Decl *e)
{
- if (e == 0)
+ if (e == 0)
{
return;
}
// Make sure there's space for one more.
- if (this->pd_locals_allocated == this->pd_locals_used)
+ if (this->pd_locals_allocated == this->pd_locals_used)
{
long olocals_allocated = pd_locals_allocated;
pd_locals_allocated += INCREMENT;
@@ -1768,7 +1768,7 @@ UTL_Scope::add_to_local_types (AST_Decl *e)
// Has this node been referenced here before?
idl_bool
-UTL_Scope::referenced (AST_Decl *e,
+UTL_Scope::referenced (AST_Decl *e,
Identifier *id)
{
long i = pd_referenced_used;
@@ -1780,7 +1780,7 @@ UTL_Scope::referenced (AST_Decl *e,
{
// Same node?
if (*tmp == e)
- {
+ {
return I_TRUE;
}
@@ -1857,7 +1857,7 @@ UTL_Scope::referenced (AST_Decl *e,
// AST Dumping.
void
-UTL_Scope::dump (ostream &o)
+UTL_Scope::dump (ACE_OSTREAM_TYPE &o)
{
UTL_ScopeActiveIterator *i = 0;
AST_Decl *d = 0;
@@ -1873,10 +1873,10 @@ UTL_Scope::dump (ostream &o)
idl_global->indent ()->increase ();
- if (pd_locals_used > 0)
+ if (pd_locals_used > 0)
{
ACE_NEW (i,
- UTL_ScopeActiveIterator (this,
+ UTL_ScopeActiveIterator (this,
UTL_Scope::IK_localtypes));
o << ("\n/* Locally defined types: */\n");
@@ -1885,7 +1885,7 @@ UTL_Scope::dump (ostream &o)
{
d = i->item ();
- if (!d->imported ())
+ if (!d->imported ())
{
idl_global->indent ()->skip_to (o);
d->dump (o);
@@ -1898,19 +1898,19 @@ UTL_Scope::dump (ostream &o)
delete i;
}
- if (pd_decls_used > 0)
+ if (pd_decls_used > 0)
{
ACE_NEW (i,
- UTL_ScopeActiveIterator (this,
+ UTL_ScopeActiveIterator (this,
UTL_Scope::IK_decls));
o << ACE_TEXT ("\n/* Declarations: */\n");
- while (!i->is_done ())
+ while (!i->is_done ())
{
d = i->item ();
- if (!d->imported ())
+ if (!d->imported ())
{
idl_global->indent ()->skip_to (o);
d->dump (o);
@@ -1993,28 +1993,28 @@ UTL_ScopeActiveIterator::item (void)
idl_bool
UTL_ScopeActiveIterator::is_done (void)
{
- long limit =
+ long limit =
(stage == UTL_Scope::IK_decls)
? iter_source->pd_decls_used
: iter_source->pd_locals_used;
- for (;;)
+ for (;;)
{
// Last element?
if (this->il < limit)
- {
+ {
return I_FALSE;
}
// Already done local types?
if (this->stage == UTL_Scope::IK_localtypes)
- {
+ {
return I_TRUE;
}
// Only want decls?
if (this->ik == UTL_Scope::IK_decls)
- {
+ {
return I_TRUE;
}
diff --git a/TAO/TAO_IDL/util/utl_string.cpp b/TAO/TAO_IDL/util/utl_string.cpp
index 54e000cc03a..b5a714dc421 100644
--- a/TAO/TAO_IDL/util/utl_string.cpp
+++ b/TAO/TAO_IDL/util/utl_string.cpp
@@ -65,10 +65,10 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
*/
// utl_string.cc - Implementation of quick and dirty TEMPORARY String
-// for IDL compiler
+// for IDL compiler
-#include "idl.h"
-#include "idl_extern.h"
+#include "idl.h"
+#include "idl_extern.h"
ACE_RCSID(util, utl_string, "$Id$")
@@ -168,22 +168,22 @@ UTL_String::compare (UTL_String *s)
char *s_c_str;
long result;
- if (this->c_str == 0
- || s == 0
+ if (this->c_str == 0
+ || s == 0
|| (s_c_str = s->get_canonical_rep ()) == 0)
{
result = I_FALSE;
}
else
{
- result =
+ result =
(ACE_OS::strcmp (this->c_str, s_c_str) == 0) ? I_TRUE : I_FALSE;
}
/*
* Check that the names are typed consistently.
*/
- if (result == I_TRUE
+ if (result == I_TRUE
&& ACE_OS::strcmp (this->p_str, s->get_string ()) != 0)
{
// Prevents redundant error reporting if we're in this branch.
@@ -191,12 +191,12 @@ UTL_String::compare (UTL_String *s)
if (idl_global->case_diff_error ())
{
- idl_global->err ()->name_case_error (this->p_str,
+ idl_global->err ()->name_case_error (this->p_str,
s->get_string ());
}
else
{
- idl_global->err ()->name_case_warning (this->p_str,
+ idl_global->err ()->name_case_warning (this->p_str,
s->get_string ());
}
}
@@ -207,11 +207,11 @@ UTL_String::compare (UTL_String *s)
long
UTL_String::compare_quiet (UTL_String *s)
{
- char *s_c_str;
- long result;
+ char *s_c_str;
+ long result;
- if (this->c_str == 0
- || s == 0
+ if (this->c_str == 0
+ || s == 0
|| (s_c_str = s->get_canonical_rep ()) == 0)
{
result = I_FALSE;
@@ -274,7 +274,7 @@ UTL_String::get_canonical_rep (void)
// AST Dumping.
void
-UTL_String::dump (ostream &o)
+UTL_String::dump (ACE_OSTREAM_TYPE &o)
{
o << this->p_str;
}
diff --git a/TAO/TAO_IDL/util/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_strlist.cpp
index 0677fdf6327..4e7a771d3fc 100644
--- a/TAO/TAO_IDL/util/utl_strlist.cpp
+++ b/TAO/TAO_IDL/util/utl_strlist.cpp
@@ -70,25 +70,25 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// NOTE: This list class only works correctly because we use single public
// inheritance, as opposed to multiple inheritance or public virtual.
-// It relies on a type-unsafe cast from UTL_List to subclasses, which
-// will cease to operate correctly if you use either multiple or
-// public virtual inheritance.
+// It relies on a type-unsafe cast from UTL_List to subclasses, which
+// will cease to operate correctly if you use either multiple or
+// public virtual inheritance.
//
-// For portability reasons we have decided to provide both this and
-// an implementation of the list classes in terms of templates. If
-// your compiler supports templates, please use the files in the
-// include/utl_tmpl and util/utl_tmpl directories instead of the
-// files by the same names in the include and util directories.
+// For portability reasons we have decided to provide both this and
+// an implementation of the list classes in terms of templates. If
+// your compiler supports templates, please use the files in the
+// include/utl_tmpl and util/utl_tmpl directories instead of the
+// files by the same names in the include and util directories.
-#include "idl.h"
-#include "idl_extern.h"
+#include "idl.h"
+#include "idl_extern.h"
ACE_RCSID(util, utl_strlist, "$Id$")
// Constructor
UTL_StrList::UTL_StrList(UTL_String *s, UTL_StrList *cdr)
- : UTL_List(cdr),
- pd_car_data(s)
+ : UTL_List(cdr),
+ pd_car_data(s)
{
}
@@ -153,12 +153,12 @@ UTL_StrList::destroy (void)
// AST Dumping
void
-UTL_StrList::dump(ostream &o)
+UTL_StrList::dump(ACE_OSTREAM_TYPE &o)
{
- char *s;
+ char *s;
UTL_StrlistActiveIterator *i = new UTL_StrlistActiveIterator(this);
- idl_bool first = I_TRUE;
- idl_bool second = I_FALSE;
+ idl_bool first = I_TRUE;
+ idl_bool second = I_FALSE;
while (!(i->is_done())) {
if (!first)
@@ -169,9 +169,9 @@ UTL_StrList::dump(ostream &o)
o << s;
if (first) {
if (strcmp(s, "::") != 0)
- first = I_FALSE;
+ first = I_FALSE;
else
- second = I_TRUE;
+ second = I_TRUE;
}
i->next();
}
@@ -188,7 +188,7 @@ UTL_StrList::dump(ostream &o)
*/
UTL_StrlistActiveIterator::UTL_StrlistActiveIterator(UTL_StrList *s)
- : UTL_ListActiveIterator(s)
+ : UTL_ListActiveIterator(s)
{
}
diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp
index 2ed64484720..229376234ba 100644
--- a/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp
+++ b/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp
@@ -42,8 +42,8 @@
*INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE
*POSSIBILITY OF SUCH DAMAGES.
*
- *SunSoft, Inc.
- *2550 Garcia Avenue
+ *SunSoft, Inc.
+ *2550 Garcia Avenue
*Mountain View, California 94043
*
*
@@ -56,8 +56,8 @@
//
// Implementation of a list of utl_string nodes
-#include <idl.hh>
-#include <idl_extern.hh>
+#include <idl.hh>
+#include <idl_extern.hh>
ACE_RCSID(utl_tmpl, utl_idlist, "$Id$")
@@ -66,7 +66,7 @@ ACE_RCSID(utl_tmpl, utl_idlist, "$Id$")
*/
UTL_IdList::UTL_IdList(Identifier *s, UTL_IdList *cdr)
- : UTL_List<UTL_IdList, Identifier>(s, cdr)
+ : UTL_List<UTL_IdList, Identifier>(s, cdr)
{
}
@@ -89,11 +89,11 @@ UTL_IdList::last_component()
// AST Dumping
void
-UTL_IdList::dump(ostream &o)
+UTL_IdList::dump(ACE_OSTREAM_TYPE &o)
{
- UTL_IdListActiveIterator *i = new UTL_IdListActiveIterator(this);
- long first = I_TRUE;
- long second = I_FALSE;
+ UTL_IdListActiveIterator *i = new UTL_IdListActiveIterator(this);
+ long first = I_TRUE;
+ long second = I_FALSE;
while (!(i->is_done())) {
if (!first)
@@ -103,9 +103,9 @@ UTL_IdList::dump(ostream &o)
i->item()->dump(o);
if (first) {
if (strcmp(i->item()->get_string(), "::") != 0)
- first = I_FALSE;
+ first = I_FALSE;
else
- second = I_TRUE;
+ second = I_TRUE;
}
i->next();
}
@@ -122,7 +122,7 @@ UTL_IdList::dump(ostream &o)
*/
UTL_IdListActiveIterator::UTL_IdListActiveIterator(UTL_IdList *s)
- : UTL_ListActiveIterator<UTL_IdList, Identifier>(s)
+ : UTL_ListActiveIterator<UTL_IdList, Identifier>(s)
{
}
diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp
index 2d79f76a3b1..c9649d21b93 100644
--- a/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp
+++ b/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp
@@ -42,8 +42,8 @@
*INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE
*POSSIBILITY OF SUCH DAMAGES.
*
- *SunSoft, Inc.
- *2550 Garcia Avenue
+ *SunSoft, Inc.
+ *2550 Garcia Avenue
*Mountain View, California 94043
*
*
@@ -56,8 +56,8 @@
//
// Implementation of a list of utl_string nodes
-#include <idl.hh>
-#include <idl_extern.hh>
+#include <idl.hh>
+#include <idl_extern.hh>
ACE_RCSID(utl_tmpl, utl_strlist, "$Id$")
@@ -66,7 +66,7 @@ ACE_RCSID(utl_tmpl, utl_strlist, "$Id$")
*/
UTL_StrList::UTL_StrList(String *s, UTL_StrList *cdr)
- : UTL_List<UTL_StrList, String>(s, cdr)
+ : UTL_List<UTL_StrList, String>(s, cdr)
{
}
@@ -89,12 +89,12 @@ UTL_StrList::last_component()
// AST Dumping
void
-UTL_StrList::dump(ostream &o)
+UTL_StrList::dump(ACE_OSTREAM_TYPE &o)
{
- char *s;
+ char *s;
UTL_StrlistActiveIterator *i = new UTL_StrlistActiveIterator(this);
- long first = I_TRUE;
- long second = I_FALSE;
+ long first = I_TRUE;
+ long second = I_FALSE;
while (!(i->is_done())) {
if (!first)
@@ -105,9 +105,9 @@ UTL_StrList::dump(ostream &o)
o << s;
if (first) {
if (strcmp(s, "::") != 0)
- first = I_FALSE;
+ first = I_FALSE;
else
- second = I_TRUE;
+ second = I_TRUE;
}
i->next();
}
@@ -124,7 +124,7 @@ UTL_StrList::dump(ostream &o)
*/
UTL_StrlistActiveIterator::UTL_StrlistActiveIterator(UTL_StrList *s)
- : UTL_ListActiveIterator<UTL_StrList, String>(s)
+ : UTL_ListActiveIterator<UTL_StrList, String>(s)
{
}