diff options
author | Antony Dovgal <tony2001@php.net> | 2006-12-06 09:52:51 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-12-06 09:52:51 +0000 |
commit | 4d44a5b71dd74ea81d988f7f1e0ff8025bef5617 (patch) | |
tree | 123e161e66e9cde068d65fcbe5066e8603878d25 /main/snprintf.h | |
parent | a813e112d438dd3480a1f0dd2e7754ee5cbc575e (diff) | |
download | php-git-4d44a5b71dd74ea81d988f7f1e0ff8025bef5617.tar.gz |
MFH: use BSD licensed implementation of double-to-string utilities instead of LGPL one
this patch also fixes thread safety issues in zend_strtod()
Diffstat (limited to 'main/snprintf.h')
-rw-r--r-- | main/snprintf.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/main/snprintf.h b/main/snprintf.h index 38575b2b2f..2512ca79b3 100644 --- a/main/snprintf.h +++ b/main/snprintf.h @@ -106,11 +106,6 @@ typedef enum { LM_LONG_DOUBLE } length_modifier_e; -extern char * ap_php_cvt(double arg, int ndigits, int *decpt, int *sign, int eflag, char *buf); -extern char * ap_php_ecvt(double arg, int ndigits, int *decpt, int *sign, char *buf); -extern char * ap_php_fcvt(double arg, int ndigits, int *decpt, int *sign, char *buf); -extern char * ap_php_gcvt(double number, int ndigit, char *buf, boolean_e altform); - #ifdef PHP_WIN32 # define WIDE_INT __int64 #elif SIZEOF_LONG_LONG_INT @@ -134,6 +129,9 @@ extern char * ap_php_conv_fp(register char format, register double num, extern char * ap_php_conv_p2(register u_wide_int num, register int nbits, char format, char *buf_end, register int *len); +extern char * bsd_ecvt(double value, int ndigit, int *decpt, int *sign); +extern char * bsd_fcvt(double value, int ndigit, int *decpt, int *sign); +extern char * bsd_gcvt(double value, int ndigit, char *buf); #endif /* SNPRINTF_H */ |