Changeset 09e400e
- Timestamp:
- Jul 13, 2023, 9:36:43 PM (17 months ago)
- Branches:
- master
- Children:
- 4acf56d
- Parents:
- 71a422a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r71a422a r09e400e 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jul 12 06:14:16202313 // Update Count : 638 212 // Last Modified On : Wed Jul 12 23:06:44 2023 13 // Update Count : 6389 14 14 // 15 15 … … 1868 1868 1869 1869 KR_parameter_list: 1870 push c_declaration pop';'1871 { $$ = $ 2; }1872 | KR_parameter_list push c_declaration pop';'1873 { $$ = $1->appendList( $ 3); }1870 c_declaration ';' 1871 { $$ = $1; } 1872 | KR_parameter_list c_declaration ';' 1873 { $$ = $1->appendList( $2 ); } 1874 1874 ; 1875 1875 … … 2033 2033 } else $$ = $3->addType( $2 )->addTypedef(); // watchout frees $2 and $3 2034 2034 } 2035 | typedef_declaration pop ',' pushdeclarator2036 { 2037 typedefTable.addToEnclosingScope( *$ 5->name, TYPEDEFname, "typedef_declaration 2" );2038 $$ = $1->appendList( $1->cloneBaseType( $ 5)->addTypedef() );2035 | typedef_declaration ',' declarator 2036 { 2037 typedefTable.addToEnclosingScope( *$3->name, TYPEDEFname, "typedef_declaration 2" ); 2038 $$ = $1->appendList( $1->cloneBaseType( $3 )->addTypedef() ); 2039 2039 } 2040 2040 | type_qualifier_list TYPEDEF type_specifier declarator // remaining OBSOLESCENT (see 2 ) … … 2052 2052 SemanticError( yylloc, "TYPEDEF expression is deprecated, use typeof(...) instead." ); $$ = nullptr; 2053 2053 } 2054 | typedef_expression pop ',' pushidentifier '=' assignment_expression2054 | typedef_expression ',' identifier '=' assignment_expression 2055 2055 { 2056 2056 SemanticError( yylloc, "TYPEDEF expression is deprecated, use typeof(...) instead." ); $$ = nullptr;
Note: See TracChangeset
for help on using the changeset viewer.