fb39ca4 / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

forward declarations broken? #117

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
forward declared functions seem to act empty

picoc> #include <stdio.h>
picoc> int fred(int p);
picoc> int joe()
     > {
     > fred(42);
     > )
       ^
:6: '}' expected
picoc> int joe()
     > {
     > fred(42);
     > }
picoc> int fred(int p)
     > {
     > printf("yo %d\n", p);
     > }
picoc> joe();
picoc> fred(43);

Original issue reported on code.google.com by zik.sale...@gmail.com on 8 Feb 2011 at 9:40

GoogleCodeExporter commented 8 years ago
No, works fine. I have no idea what I was doing wrong before.

Original comment by zik.sale...@gmail.com on 10 Feb 2011 at 6:08