Follow-up Comment #3, patch #6352 (project avr-libc):
Hi there
I'd suggest using '"p" (var) ' instead of '"p" (&var)'
This allows to define:
typedef uint_farptr_t PGM_PF;
#define PFSTR(str) ((PGM_PF)GET_FAR_ADDRESS(PSTR(str)))
which again makes it easy to create new functions like printf_PF.
Just my two cent.
Cheers
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6352>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev