reverted to revision 4719; revision 4721 was committed by mistake
[fw/sdcc] / src / SDCC.y
index 95f19b129f5fba708e23e8119df9df9ce44790e9..e54f49e32d7a4253e3ae12476881bc62ccae6a5d 100644 (file)
@@ -102,8 +102,7 @@ bool uselessDecl = TRUE;
 %token DUMMY_READ_VOLATILE ENDCRITICAL SWAP INLINE RESTRICT
 
 %type <yyint> Interrupt_storage
-%type <sym> identifier identifier_or_typename declarator declarator2 declarator3
-%type <sym> enumerator_list enumerator
+%type <sym> identifier declarator declarator2 declarator3 enumerator_list enumerator
 %type <sym> struct_declarator function_declarator function_declarator2
 %type <sym> struct_declarator_list struct_declaration struct_declaration_list
 %type <sym> declaration init_declarator_list init_declarator
@@ -1718,17 +1717,5 @@ jump_statement
 identifier
    : IDENTIFIER   { $$ = newSymbol ($1,NestLevel) ; }
    ;
-
-identifier_or_typename
-    : identifier
-    | TYPE_NAME {
-        symbol *sym;
-        sym_link   *p  ;
-        sym = findSym(TypedefTab,NULL,$1) ;
-        $$ = p = copyLinkChain(sym->type);
-        SPEC_TYPEDEF(getSpec(p)) = 0;
-        ignoreTypedefType = 1;
-      }
-
 %%