Closed GoogleCodeExporter closed 9 years ago
There are already several bug reports that at least in part if not entirely
down to this issue.
There was a patch(
https://github.com/EbiDK/Arduino/commit/96fc3c18c0cb118ec273947590e27114bfd7970d
) for it in a pull request( https://github.com/arduino/Arduino/pull/64 ) 5
months ago, implementing this suggested solution, with mentions of the patch on
the relevant other bug reports for the issue too.
Anyone else see something wrong with this picture?
Original comment by lars.j.n...@gmail.com
on 9 Jul 2012 at 12:48
By the way, most/all of the other reports can be found by searching for
prototype on the bug tracker.
Original comment by lars.j.n...@gmail.com
on 9 Jul 2012 at 12:49
I searched for "prototype", naturally, to avoid submitting a duplicate bug
report. None of the matches seemed relevant:
* Passing a pointer-to-struct to a function produces compile error
* Prototypes for methods with default arguments are not generated
* Stabilize the pre-processing of sketches (e.g. prototype generation and
#include insertion).
* odd pointer in verify
> Anyone else see something wrong with this picture?
I don't know what you mean by that.
If you want to insult people submitting bug reports go right ahead, and I'll
stop doing it.
Original comment by jainh...@gammon.com.au
on 9 Jul 2012 at 9:31
As an explanatory note, Google seems to have changed my email address. Not
quite sure why, except that I logged into a different account on YouTube. Can't
see the relevance to doing that, and submitting bug reports for the Arduino.
Original comment by jainh...@gammon.com.au
on 9 Jul 2012 at 9:33
https://github.com/arduino/Arduino/commit/d30bd8366074daa211433af7c32ee33f05fab2
8d
This is basically pull request #64, except I didn't add the "generated" prefix
to the variable names. Also, I changed the loop slightly to avoid problems
with removing items from a list while iterating through it.
Note that this patch requires your prototype to match the function definition
exactly (including whitespace). Otherwise, it won't realize they're the same.
This could probably be improved but it does provide a way to stop the
pre-processor from generating prototypes (which you couldn't do before).
Thank you Lars for the patch. Thank you, Nick, too for this bug report. Keep
'em coming!
Original comment by dmel...@gmail.com
on 19 Jul 2012 at 3:35
Original issue reported on code.google.com by
n...@gammon.com.au
on 3 Jul 2012 at 6:04