move pic_printf family to port.c

This commit is contained in:
Yuichi Nishiwaki
2017-04-09 23:39:24 +09:00
parent 8592802afc
commit 01c817799b
7 changed files with 294 additions and 197 deletions
+6 -10
View File
@@ -409,6 +409,12 @@ atof(const char *nptr)
#endif
PIC_STATIC_INLINE double
pic_atod(const char *str)
{
return atof(str);
}
#if PIC_USE_STDIO
# include <stdio.h>
@@ -469,16 +475,6 @@ pic_dtoa(double dval, char *buf)
#endif
#ifndef PIC_DOUBLE_TO_CSTRING
#define PIC_DOUBLE_TO_CSTRING pic_dtoa
#endif
void PIC_DOUBLE_TO_CSTRING(double, char *);
#ifndef PIC_CSTRING_TO_DOUBLE
#define PIC_CSTRING_TO_DOUBLE atof
#endif
double PIC_CSTRING_TO_DOUBLE(const char *);
/* optional features available? */
#if (defined(__GNUC__) || defined(__clang__)) && ! defined(__STRICT_ANSI__)