Ignore:
Timestamp:
Jan 7, 2015, 6:04:42 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
0b8cd72
Parents:
d9a0e76
Message:

fixed restrict, fixed parameter copy, introduced name table for types, changed variable after to string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/Parser/InitializerNode.cc

    rd9a0e76 r17cd4eb  
    4343        if ( designator != 0 ) {
    4444            os << "designated by: (";
    45             ExpressionNode  *curdes = designator;
     45            ExpressionNode *curdes = designator;
    4646            while( curdes != 0) {
    4747                curdes->printOneLine(os);
    4848                curdes = (ExpressionNode *)(curdes->get_link());
    4949                if ( curdes ) os << ", ";
    50             }
     50            } // while
    5151            os << ")";
    52         }
     52        } // if
    5353        if ( expr ) expr->printOneLine(os);
    5454    } else {  // It's an aggregate
     
    5757            next_init()->printOneLine(os);
    5858        if (aggregate) os << "--]";
    59     }
     59    } // if
    6060
    6161    InitializerNode *moreInit;
     
    8888        if ( get_expression() != 0)
    8989            return new SingleInit( get_expression()->build(), designators );
    90     }
     90    } // if
    9191
    9292    return 0;
Note: See TracChangeset for help on using the changeset viewer.