diff options
author | tmk <nobody@nowhere> | 2013-05-20 22:42:29 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-05-21 10:16:55 +0900 |
commit | 796defa86c3e8a756b66937f5c010640eeac2d13 (patch) | |
tree | 57a2ee4e96291eb23fbfb4d7553b2ee12430001a /common/xprintf.h | |
parent | adbd15d5bdbd5f28657d0fa0ecdcf25768b4267d (diff) |
Fix deprecated 'prog_*' typedef - Issue #34
- Remove prog_char from xpritnf
- Remove prog_macro_t from acton_macro
avr-libc-1.8 removed 'prog_*' typedef because the usage of
the __progmem__ attribute on a type is not supported in GCC.
http://www.nongnu.org/avr-libc/changes-1.8.html
Diffstat (limited to 'common/xprintf.h')
-rw-r--r-- | common/xprintf.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/xprintf.h b/common/xprintf.h index cddec99409..f58bca817b 100644 --- a/common/xprintf.h +++ b/common/xprintf.h @@ -23,7 +23,7 @@ void xputc(char chr); /*-----------------------------------------------------------------------------*/
-void xputs(const prog_char *string);
+void xputs(const char *string_p);
/* The string placed in the ROM is forwarded to xputc() directly.
*/
@@ -51,9 +51,9 @@ void xitoa(long value, char radix, char width); #define xsprintf(str, format, ...) __xsprintf(str, PSTR(format), ##__VA_ARGS__)
#define xfprintf(func, format, ...) __xfprintf(func, PSTR(format), ##__VA_ARGS__)
-void __xprintf(const prog_char *format, ...); /* Send formatted string to the registered device */
-void __xsprintf(char*, const prog_char *format, ...); /* Put formatted string to the memory */
-void __xfprintf(void(*func)(uint8_t), const prog_char *format, ...); /* Send formatted string to the specified device */
+void __xprintf(const char *format_p, ...); /* Send formatted string to the registered device */
+void __xsprintf(char*, const char *format_p, ...); /* Put formatted string to the memory */
+void __xfprintf(void(*func)(uint8_t), const char *format_p, ...); /* Send formatted string to the specified device */
/* Format string is placed in the ROM. The format flags is similar to printf().
|