Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r4040425 r3cfe27f  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Mar  2 17:24:45 2016
    13 // Update Count     : 1495
     12// Last Modified On : Thu Mar 24 16:16:16 2016
     13// Update Count     : 1498
    1414//
    1515
     
    5151#include <cstdio>
    5252#include <stack>
     53#include "lex.h"
     54#include "parser.h"
     55#include "ParseNode.h"
    5356#include "TypedefTable.h"
    54 #include "lex.h"
    55 #include "ParseNode.h"
    5657#include "TypeData.h"
    5758#include "LinkageSpec.h"
     
    10281029                {
    10291030                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    1030                         $$ = $1;
     1031                        $$ = $1->addInitializer( $2 );
    10311032                }
    10321033        | declaration_qualifier_list new_variable_specifier initializer_opt
     
    10351036                {
    10361037                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    1037                         $$ = $2->addQualifiers( $1 );
     1038                        $$ = $2->addQualifiers( $1 )->addInitializer( $3 );;
    10381039                }
    10391040        | new_variable_declaration pop ',' push identifier_or_type_name initializer_opt
    10401041                {
    10411042                        typedefTable.addToEnclosingScope( *$5, TypedefTable::ID );
    1042                         $$ = $1->appendList( $1->cloneType( $5 ) );
     1043                        $$ = $1->appendList( $1->cloneType( $5 )->addInitializer( $6 ) );
    10431044                }
    10441045        ;
Note: See TracChangeset for help on using the changeset viewer.