summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL
diff options
context:
space:
mode:
authorgokhale <asgokhale@users.noreply.github.com>1998-04-10 09:41:58 +0000
committergokhale <asgokhale@users.noreply.github.com>1998-04-10 09:41:58 +0000
commit850bf3036ab23cbcf3b98de5fb2d89f78866ab0c (patch)
treea53835604ecf7a96000ea927606b149b147aa44b /TAO/TAO_IDL
parent9ec9502cd3f4fc5f859f66cb926ea74938e1509e (diff)
downloadATCD-850bf3036ab23cbcf3b98de5fb2d89f78866ab0c.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typedef.cpp35
1 files changed, 24 insertions, 11 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_typedef.cpp b/TAO/TAO_IDL/be/be_visitor_typedef.cpp
index 0b6001dc2d0..fcf0477b7da 100644
--- a/TAO/TAO_IDL/be/be_visitor_typedef.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typedef.cpp
@@ -495,7 +495,7 @@ be_visitor_typedef_ch::visit_typedef (be_typedef *node)
"failed to accept visitor\n"
), -1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (0); // reset
}
else
{
@@ -540,6 +540,7 @@ be_visitor_typedef_ch::visit_typedef (be_typedef *node)
<< node->tc_name ()->last_component () << ";\n\n";
}
}
+ this->ctx_->tdef (0); // reset
}
return 0;
@@ -871,6 +872,16 @@ be_visitor_typedef_ci::visit_typedef (be_typedef *node)
"bad primitive base type\n"
), -1);
}
+ // accept on this base type
+ if (bt->accept (this) == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_typedef_ch::"
+ "visit_typedef - "
+ "failed to accept visitor\n"
+ ), -1);
+ }
+
this->ctx_->alias (0);
}
else
@@ -889,17 +900,18 @@ be_visitor_typedef_ci::visit_typedef (be_typedef *node)
"bad base type\n"
), -1);
}
- }
- // accept on this base type
- if (bt->accept (this) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) be_visitor_typedef_ch::"
- "visit_typedef - "
- "failed to accept visitor\n"
- ), -1);
- }
+ // accept on this base type
+ if (bt->accept (this) == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_typedef_ch::"
+ "visit_typedef - "
+ "failed to accept visitor\n"
+ ), -1);
+ }
+ this->ctx_->tdef (0);
+ }
return 0;
}
@@ -1142,6 +1154,7 @@ be_visitor_typedef_cs::visit_typedef (be_typedef *node)
<< node->flatname () << ";\n\n";
}
+ this->ctx_->tdef (0);
}
return 0;