Hey folks. This declaration:
void (*code cmd_func)(void);
...worked with an older release of SDCC (pre-2.5.0 I think), yet it
bombs with v2.7.0. So I hit the docs and learned from the example on
page 33 of sdccman.pdf, that it should be declared like this:
void (* __code cmd_func)(void);
The intent is to create a pointer to a function located in code
space, called cmd_func. I think (from the docs) that this syntax
should be ok, yet SDCC v2.7.0 bombs on this one too, saying "error 172:
storage class not allowed here". Can someone shed some light on this
for me? It is a member of a struct, but I'm pretty sure that shouldn't
matter.
Thanks,
-Dave
--
Dave McGuire
Port Charlotte, FL
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user