Changeset 17cd4eb for translator/Parser/InitializerNode.cc
- Timestamp:
- Jan 7, 2015, 6:04:42 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, 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:
- 0b8cd722
- Parents:
- d9a0e76
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/Parser/InitializerNode.cc
rd9a0e76 r17cd4eb 43 43 if ( designator != 0 ) { 44 44 os << "designated by: ("; 45 ExpressionNode 45 ExpressionNode *curdes = designator; 46 46 while( curdes != 0) { 47 47 curdes->printOneLine(os); 48 48 curdes = (ExpressionNode *)(curdes->get_link()); 49 49 if ( curdes ) os << ", "; 50 } 50 } // while 51 51 os << ")"; 52 } 52 } // if 53 53 if ( expr ) expr->printOneLine(os); 54 54 } else { // It's an aggregate … … 57 57 next_init()->printOneLine(os); 58 58 if (aggregate) os << "--]"; 59 } 59 } // if 60 60 61 61 InitializerNode *moreInit; … … 88 88 if ( get_expression() != 0) 89 89 return new SingleInit( get_expression()->build(), designators ); 90 } 90 } // if 91 91 92 92 return 0;
Note: See TracChangeset
for help on using the changeset viewer.