~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to Puma/src/parser/cparser/CPrintVisitor.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 
98
98
  if (id == CT_Token::NodeId ()) {
99
99
    *out << " \"" << node->token ()->text () << "\"";
100
 
  } else if (id == CT_CallExpr::NodeId ()) {
101
 
    if (((CT_CallExpr*)node)->Object ())
102
 
      print_qual_name (((CT_CallExpr*)node)->Object ());
 
100
  } else if (node->IsCall ()) {
 
101
    CObjectInfo *obj = node->IsCall ()->Object ();
 
102
    if (obj)
 
103
      print_qual_name (obj);
 
104
  } else if (id == CT_ConstructExpr::NodeId ()) {
 
105
    CObjectInfo *obj = ((CT_ConstructExpr*)node)->Object ();
 
106
    if (obj)
 
107
      print_qual_name (obj);
103
108
  } else if (id == CT_SimpleName::NodeId () ||
104
109
             id == CT_PrivateName::NodeId () ||
105
110
             id == CT_QualName::NodeId () ||
182
187
  info = oinfo->AssignedScope ();
183
188
  if (! info) info = oinfo->Scope ();
184
189
  while (info && ! info->isAnonymous () &&
185
 
         (info->Record () || 
186
 
          (info->NamespaceInfo () && ! info->FileInfo ()))) {
 
190
         (info->Record () || (info->NamespaceInfo () && ! info->FileInfo ()))) {
187
191
    scopes.append (info->Name ());
188
192
    info = info->Scope ();
189
193
  }