Robert von Knobloch wrote:

This solution, while a purer 'C' solution would require me to have all
my 'internal' functions with similar call/return requirements.
This is not, and cannot be, the case. I fear that the magig 'array of
function pointers' has only limited use and is unsuitable here.
But many thanks for your thoughts, every comment here makes me re-think
the problem, which is good.

Cheers,

Robert

You can get around this with some ugly typecasts (hidden in macros), casting your functions to (*void)(void) when initialising the array, and casting back to appropriate signatures before calling the functions. The result will be the same since casting the function signature is not going to affect the value of the function pointer.



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to