Changes in src/Parser/parser.yy [6f95000:ddfd945]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r6f95000 rddfd945 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 16 12:57:03201713 // Update Count : 231 612 // Last Modified On : Thu Mar 16 08:36:17 2017 13 // Update Count : 2310 14 14 // 15 15 … … 1608 1608 aggregate_type: // struct, union 1609 1609 aggregate_key attribute_list_opt '{' field_declaration_list '}' 1610 { $$ = DeclarationNode::newAggregate( $1, n ew string( DeclarationNode::anonymous.newName() ), nullptr, $4, true )->addQualifiers( $2 ); }1610 { $$ = DeclarationNode::newAggregate( $1, nullptr, nullptr, $4, true )->addQualifiers( $2 ); } 1611 1611 | aggregate_key attribute_list_opt no_attr_identifier_or_type_name 1612 1612 { typedefTable.makeTypedef( *$3 ); } … … 1614 1614 { $$ = DeclarationNode::newAggregate( $1, $3, nullptr, $6, true )->addQualifiers( $2 ); } 1615 1615 | aggregate_key attribute_list_opt '(' type_name_list ')' '{' field_declaration_list '}' // CFA 1616 { $$ = DeclarationNode::newAggregate( $1, n ew string( DeclarationNode::anonymous.newName() ), $4, $7, false )->addQualifiers( $2 ); }1616 { $$ = DeclarationNode::newAggregate( $1, nullptr, $4, $7, false )->addQualifiers( $2 ); } 1617 1617 | aggregate_type_nobody 1618 1618 ; … … 1684 1684 // empty 1685 1685 { $$ = DeclarationNode::newName( 0 ); /* XXX */ } // CFA, no field name 1686 // '@' 1687 // { $$ = DeclarationNode::newName( new string( DeclarationNode::anonymous.newName() ) );} // CFA, no field name1686 // '@' // empty 1687 // { $$ = DeclarationNode::newName( 0 ); /* XXX */ } // CFA, no field name 1688 1688 | bit_subrange_size // no field name 1689 1689 { $$ = DeclarationNode::newBitfield( $1 ); } … … 1711 1711 enum_type: // enum 1712 1712 ENUM attribute_list_opt '{' enumerator_list comma_opt '}' 1713 { $$ = DeclarationNode::newEnum( n ew string( DeclarationNode::anonymous.newName() ), $4, true )->addQualifiers( $2 ); }1713 { $$ = DeclarationNode::newEnum( nullptr, $4, true )->addQualifiers( $2 ); } 1714 1714 | ENUM attribute_list_opt no_attr_identifier_or_type_name 1715 1715 { typedefTable.makeTypedef( *$3 ); }
Note:
See TracChangeset
for help on using the changeset viewer.