~ubuntu-branches/ubuntu/saucy/aspectc++/saucy

« back to all changes in this revision

Viewing changes to Puma/gen-release/step1/src/CAttributeInfo.cc

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-05-22 21:12:18 UTC
  • mfrom: (1.1.7) (6.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20120522211218-bboc8bp7c9ol627g
Tags: 1:1.1+svn742-1
* New upstream snapshot.
  - fixes compilation with gcc 4.7 (Closes: #672013)
* disable parallelism inside debian/rules (but not submakes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  return (CAttributeInfo*)this;
38
38
}
39
39
 
40
 
CT_InitDeclarator *CAttributeInfo::Tree () const { 
41
 
  return (CT_InitDeclarator*)CObjectInfo::Tree (); 
 
40
CT_InitDeclarator *CAttributeInfo::Tree () const {
 
41
  return (CT_InitDeclarator*)CObjectInfo::Tree ();
 
42
}
 
43
 
 
44
CTree *CAttributeInfo::Init () {
 
45
  if (! _Init && CObjectInfo::Tree ()) {
 
46
    CTree* tree = CObjectInfo::Tree ();
 
47
    CT_ExprList* el = 0;
 
48
    if (tree->NodeName () == CT_InitDeclarator::NodeId ())
 
49
      el = ((CT_InitDeclarator*)tree)->Initializer ();
 
50
    else if (tree->NodeName () == CT_Enumerator::NodeId ())
 
51
      el = ((CT_Enumerator*)tree)->Initializer ();
 
52
    _Init = el && el->Entries () > 0 ? el->Entry (0) : 0;
 
53
  }
 
54
  return _Init;
42
55
}
43
56
 
44
57
CRecord *CAttributeInfo::Record () const {