@damocles: It does? Is that too for A7? I was under the impression that it was not possible to call structure elements as functions...
I always do this, seems to work just fine, but not sure if it could go wrong with an integer pointer as function pointer storage:
typedef struct
{
int *spot_func;
} SPOT;
void spot_func_prototype(SPOT *s);
...
void spot_remove(SPOT s)
{
error("yay");
}
void main()
{
SPOT spot;
spot.func = spot_remove;
spot_func_prototype = spot.func;
spot_func_prototype( spot );
}