Changeset d9a0e76 for translator/Parser
- Timestamp:
- Dec 16, 2014, 9:41:50 PM (9 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:
- 17cd4eb
- Parents:
- 3848e0e
- Location:
- translator/Parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/Parser/DeclarationNode.cc
r3848e0e rd9a0e76 103 103 } 104 104 105 DeclarationNode *DeclarationNode::newFunction( std::string *name, DeclarationNode *ret, DeclarationNode *param, StatementNode *body, bool newStyle ) {105 DeclarationNode *DeclarationNode::newFunction( std::string *name, DeclarationNode *ret, DeclarationNode *param, StatementNode *body, bool newStyle ) { 106 106 DeclarationNode *newnode = new DeclarationNode; 107 107 newnode->name = assign_strptr( name ); -
translator/Parser/InitializerNode.cc
r3848e0e rd9a0e76 7 7 #include <cassert> 8 8 9 #include <iostream> 10 using namespace std; 9 11 10 12 InitializerNode::InitializerNode( ExpressionNode *_expr, bool aggrp, ExpressionNode *des ) … … 72 74 73 75 std::list< Expression *> designlist; 74 if ( designator != 0 ) 76 77 if ( designator != 0 ) { 75 78 buildList<Expression, ExpressionNode>( designator, designlist ); 79 } // if 76 80 77 81 return new ListInit( initlist, designlist );
Note: See TracChangeset
for help on using the changeset viewer.