bug fix #458744 is confirmed
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 7 Sep 2001 13:41:31 +0000 (13:41 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 7 Sep 2001 13:41:31 +0000 (13:41 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1239 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCC.y

index 77eb3c434eb006f88db1ce0d2488f27bc9911ad3..e58af299362d1ee022e0934be3c2ce8ecb71b9f0 100644 (file)
@@ -1100,28 +1100,22 @@ abstract_declarator2
    | '(' ')'                        { $$ = NULL;}
    | '(' parameter_type_list ')'    { $$ = NULL;}   
    | abstract_declarator2 '(' ')' {
-     if (getenv("DONT_IGNORE_FUNCTION_SPECIFIERS")) {
-       // this was previously ignored (cvs < 1.37)
+     // $1 must be a pointer to a function
+     sym_link *p=newLink();
+     DCL_TYPE(p) = FUNCTION;
+     $1->next=p;
+   }
+   | abstract_declarator2 '(' parameter_type_list ')' {
+     if (!IS_VOID($3->type)) {
+       // this is nonsense, so let's just burp something
+       werror(E_TOO_FEW_PARMS);
+     } else {
        // $1 must be a pointer to a function
        sym_link *p=newLink();
        DCL_TYPE(p) = FUNCTION;
        $1->next=p;
      }
    }
-   | abstract_declarator2 '(' parameter_type_list ')' {
-     if (getenv("DONT_IGNORE_FUNCTION_SPECIFIERS")) {
-       // this was previously ignored (cvs < 1.37)
-       if (!IS_VOID($3->type)) {
-        // this is nonsense, so let's just burp something
-        werror(E_TOO_FEW_PARMS);
-       } else {
-        // $1 must be a pointer to a function
-        sym_link *p=newLink();
-        DCL_TYPE(p) = FUNCTION;
-        $1->next=p;
-       }
-     }
-   }
 
 initializer
    : assignment_expr                { $$ = newiList(INIT_NODE,$1); }