Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r3cfe27f r4040425  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Mar 24 16:16:16 2016
    13 // Update Count     : 1498
     12// Last Modified On : Wed Mar  2 17:24:45 2016
     13// Update Count     : 1495
    1414//
    1515
     
    5151#include <cstdio>
    5252#include <stack>
     53#include "TypedefTable.h"
    5354#include "lex.h"
    54 #include "parser.h"
    5555#include "ParseNode.h"
    56 #include "TypedefTable.h"
    5756#include "TypeData.h"
    5857#include "LinkageSpec.h"
     
    10291028                {
    10301029                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    1031                         $$ = $1->addInitializer( $2 );
     1030                        $$ = $1;
    10321031                }
    10331032        | declaration_qualifier_list new_variable_specifier initializer_opt
     
    10361035                {
    10371036                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    1038                         $$ = $2->addQualifiers( $1 )->addInitializer( $3 );;
     1037                        $$ = $2->addQualifiers( $1 );
    10391038                }
    10401039        | new_variable_declaration pop ',' push identifier_or_type_name initializer_opt
    10411040                {
    10421041                        typedefTable.addToEnclosingScope( *$5, TypedefTable::ID );
    1043                         $$ = $1->appendList( $1->cloneType( $5 )->addInitializer( $6 ) );
     1042                        $$ = $1->appendList( $1->cloneType( $5 ) );
    10441043                }
    10451044        ;
Note: See TracChangeset for help on using the changeset viewer.