~ubuntu-branches/ubuntu/jaunty/aspectc++/jaunty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-07-07 14:41:02 UTC
  • mfrom: (1.1.3 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080707144102-lzml7t07f3sl00r5
Tags: 1.0pre4~svn.20080711-1
* new upstream snapshot.
* include all upstream documentation. Clarifying emails regarding
  licensing has been included into debian/copyright.
* reformat description following recomendations of
  http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description
  (Closes: #480316)

Show diffs side-by-side

added added

removed removed

Lines of Context:
682
682
      stat = get_node (0); 
683
683
      quals = get_node (1);
684
684
    } else {
685
 
      quals = get_node (0); pos0 = true;
 
685
      quals = get_node (0); pos0 = true;
686
686
      stat = get_node (1);
687
687
    }
688
688
    expr = get_node (2);
745
745
    Container *d1 = (Container*)get_node (i);
746
746
    if (d1->Son (0)->token ()->type () == TOK_OPEN_SQUARE) {
747
747
      if (d1->Son (1)->NodeName () == CT_ArrayDelimiter::NodeId ()) {
748
 
        result = new CT_ArrayDeclarator (result, d1->Son (0), 
749
 
          d1->Son (1), d1->Son (2));
 
748
        result = new CT_ArrayDeclarator (result, d1->Son (0), d1->Son (1), d1->Son (2));
750
749
      } else if (d1->Son (1)->token ()->type () == TOK_CLOSE_SQUARE) {
751
750
        result = new CT_ArrayDeclarator (result, d1->Son (0),
752
 
          new CT_ArrayDelimiter (0, 0, 0, 0), d1->Son (1));
 
751
          new CT_ArrayDelimiter (0, 0, 0, 0), d1->Son (1));
753
752
      } else if (d1->Son (1)->NodeName () == CT_Token::NodeId () &&
754
753
                 d1->Son (1)->token ()->type () == TOK_MUL) {
755
 
        result = new CT_ArrayDeclarator (result, d1->Son (0),
756
 
          new CT_ArrayDelimiter (d1->Son (1), 0, 0, 0), d1->Son (2));
757
 
      }
758
754
else {
759
 
        result = new CT_ArrayDeclarator (result, d1->Son (0),
760
 
          new CT_ArrayDelimiter (0, 0, 0, d1->Son (1)), d1->Son (2));
 
755
        result = new CT_ArrayDeclarator (result, d1->Son (0),
 
756
          new CT_ArrayDelimiter (d1->Son (1), 0, 0, 0), d1->Son (2));
 
757
      } else {
 
758
        result = new CT_ArrayDeclarator (result, d1->Son (0),
 
759
          new CT_ArrayDelimiter (0, 0, 0, d1->Son (1)), d1->Son (2));
761
760
      }
762
761
    } else {
763
762
      CT_ArgDeclList *args = (CT_ArgDeclList*)d1->Son (1);