Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    re6cee92 rf196351  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed Jun 28 15:27:00 2017
    13 // Update Count     : 1019
     12// Last Modified On : Thr Aug 10 17:02:00 2017
     13// Update Count     : 1021
    1414//
    1515
     
    253253        newnode->type->aggregate.fields = fields;
    254254        newnode->type->aggregate.body = body;
     255        newnode->type->aggregate.tagged = false;
     256        newnode->type->aggregate.parent = nullptr;
    255257        return newnode;
    256258} // DeclarationNode::newAggregate
     
    329331} // DeclarationNode::newTypeDecl
    330332
    331 DeclarationNode * DeclarationNode::newPointer( DeclarationNode * qualifiers, OperKinds kind ) {
    332         DeclarationNode * newnode = new DeclarationNode;
    333         newnode->type = new TypeData( kind == OperKinds::PointTo ? TypeData::Pointer : TypeData::Reference );
     333DeclarationNode * DeclarationNode::newPointer( DeclarationNode * qualifiers ) {
     334        DeclarationNode * newnode = new DeclarationNode;
     335        newnode->type = new TypeData( TypeData::Pointer );
    334336        if ( qualifiers ) {
    335337                return newnode->addQualifiers( qualifiers );
     
    748750DeclarationNode * DeclarationNode::addPointer( DeclarationNode * p ) {
    749751        if ( p ) {
    750                 assert( p->type->kind == TypeData::Pointer || TypeData::Reference );
     752                assert( p->type->kind == TypeData::Pointer );
    751753                setBase( p->type );
    752754                p->type = nullptr;
     
    770772DeclarationNode * DeclarationNode::addNewPointer( DeclarationNode * p ) {
    771773        if ( p ) {
    772                 assert( p->type->kind == TypeData::Pointer || p->type->kind == TypeData::Reference );
     774                assert( p->type->kind == TypeData::Pointer );
    773775                if ( type ) {
    774776                        switch ( type->kind ) {
Note: See TracChangeset for help on using the changeset viewer.