Ignore:
Timestamp:
Jul 15, 2016, 10:16:47 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
873ffb7
Parents:
5ed9061
Message:

start code allowing structures to no fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    r5ed9061 r5d125e4  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jun 30 14:39:51 2016
    13 // Update Count     : 163
     12// Last Modified On : Tue Jul 12 20:49:31 2016
     13// Update Count     : 164
    1414//
    1515
     
    184184} // DeclarationNode::newFromTypedef
    185185
    186 DeclarationNode *DeclarationNode::newAggregate( Aggregate kind, const std::string *name, ExpressionNode *actuals, DeclarationNode *fields ) {
     186DeclarationNode *DeclarationNode::newAggregate( Aggregate kind, const std::string *name, ExpressionNode *actuals, DeclarationNode *fields, bool body ) {
    187187        DeclarationNode *newnode = new DeclarationNode;
    188188        newnode->type = new TypeData( TypeData::Aggregate );
     
    194194        newnode->type->aggregate->actuals = actuals;
    195195        newnode->type->aggregate->fields = fields;
     196        newnode->type->aggregate->body = body;
    196197        return newnode;
    197198} // DeclarationNode::newAggregate
Note: See TracChangeset for help on using the changeset viewer.