jung6717 / arduino

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

Function Headers with Address-of Operator (&) #205

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a second .pde file to a sketch
2. insert function with & Operator in its Arguments
3. Compile

What is the expected output? What do you see instead?
A declaration should be put in the main .cpp file. That's not happening

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
0018 OSX

Please provide any additional information below.
The function i try to add is "void dateTime(uint16_t &date, uint16_t &time)" 
for the use with sdfatlib. As I see it, the RegExp in the 
PdePreprocessor.java does not match the & sign. Since it work's when I 
remove the & sign. When I add the declaration by hand it works fine.

Original issue reported on code.google.com by GrafDuck...@gmail.com on 12 Feb 2010 at 4:11

GoogleCodeExporter commented 8 years ago
I can confirm both the problem and the solution.
I have updated the alternative PdePreprocessor-code in issue 171
http://code.google.com/p/arduino/issues/detail?id=171

Thanks
Eberhard

Original comment by e.fa...@wayoda.org on 13 Feb 2010 at 4:28

GoogleCodeExporter commented 8 years ago
Just read the haedline for the topic again...
Just in case somebody got confused:
The error was spotted right, but we are talking about the reference operator in
function definitions. 
http://en.wikipedia.org/wiki/Reference_%28C%2B%2B%29

Original comment by e.fa...@wayoda.org on 14 Feb 2010 at 11:23

GoogleCodeExporter commented 8 years ago
This was fixed with issue 171.

C

Original comment by c.mag...@bug.st on 14 Dec 2012 at 6:49