diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-21 22:51:16 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:31 +0200 |
commit | 6e7b72235b41c1415a03bcb03bad76180eb00644 (patch) | |
tree | 1834a3b9ac0a0593bf2407f9bbe95cea70ff294f /libc/stdio/_fpmaxtostr.h | |
parent | 59a1890c12a3b98d534dbf84575f821eafaacd77 (diff) |
old_vfprintf.c: use _fpmaxtostr.h
It shows that the internal functions differ...
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/stdio/_fpmaxtostr.h')
-rw-r--r-- | libc/stdio/_fpmaxtostr.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libc/stdio/_fpmaxtostr.h b/libc/stdio/_fpmaxtostr.h index 5adb9312a..b4e7321c2 100644 --- a/libc/stdio/_fpmaxtostr.h +++ b/libc/stdio/_fpmaxtostr.h @@ -32,10 +32,18 @@ /* extra space for '-', '.', 'e+###', and nul */ #define BUF_SIZE ( 3 + NUM_DIGIT_BLOCKS * DIGITS_PER_BLOCK ) +/* psm: why do these internals differ? */ +#ifdef __USE_OLD_VFPRINTF__ +typedef void (__fp_outfunc_t)(FILE *fp, intptr_t type, intptr_t len, intptr_t buf); + +extern size_t _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info *info, + __fp_outfunc_t fp_outfunc) attribute_hidden; +#else typedef size_t (__fp_outfunc_t)(FILE *fp, intptr_t type, intptr_t len, intptr_t buf); extern ssize_t _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info *info, - __fp_outfunc_t fp_outfunc) attribute_hidden; + __fp_outfunc_t fp_outfunc) attribute_hidden; +#endif #endif /* __UCLIBC_HAS_FLOATS__ */ #endif /* _FPMAXTOSTR_H */ |