Ignore:
Timestamp:
Mar 24, 2016, 4:45:23 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, 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:
1f6e009, 3aba311, 53ba273, b3f9a0cb
Parents:
6a57da5
Message:

fix initialization of routine pointers, fix one random routine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r6a57da5 r3cfe27f  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Mar 21 18:18:34 2016
    13 // Update Count     : 1497
     12// Last Modified On : Thu Mar 24 16:16:16 2016
     13// Update Count     : 1498
    1414//
    1515
     
    10291029                {
    10301030                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    1031                         $$ = $1;
     1031                        $$ = $1->addInitializer( $2 );
    10321032                }
    10331033        | declaration_qualifier_list new_variable_specifier initializer_opt
     
    10361036                {
    10371037                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    1038                         $$ = $2->addQualifiers( $1 );
     1038                        $$ = $2->addQualifiers( $1 )->addInitializer( $3 );;
    10391039                }
    10401040        | new_variable_declaration pop ',' push identifier_or_type_name initializer_opt
    10411041                {
    10421042                        typedefTable.addToEnclosingScope( *$5, TypedefTable::ID );
    1043                         $$ = $1->appendList( $1->cloneType( $5 ) );
     1043                        $$ = $1->appendList( $1->cloneType( $5 )->addInitializer( $6 ) );
    10441044                }
    10451045        ;
Note: See TracChangeset for help on using the changeset viewer.