#451 Parser doesn't accept valid prototypes

closed
5
2013-05-25
2003-02-03
No

/**
Date: Fri, 29 Nov 2002 16:11:41 +0100
To: sdcc-user@lists.sourceforge.net

SDCC cannot parse some valid prototypes.
Try parsing this one.
*/

void fun(void (*)(void *), void *);

int main() {
return 0;
}
/*
$ sdcc parser-proto.c
parser-proto.c:9: error: too few parameters

Changing the first parameter for example to void
(*f)(void *) works.
The patch fix this problem, I have not seen new
problems after
applying it.
*/

Discussion

  • Vladimir Támara Patińo

    Patch released to the public domain

     
    Attachments
  • Johan Knol

    Johan Knol - 2003-02-24
    • assigned_to: nobody --> johanknol
     
  • Johan Knol

    Johan Knol - 2003-02-24

    Logged In: YES
    user_id=63512

    Fixed in SDCC.y:1.61
    The patch could have worked, but I think this is better.
    Thanks anyway.

     
  • Johan Knol

    Johan Knol - 2003-02-24
    • milestone: --> fixed
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks