diff options
author | Marcus Boerger <helly@php.net> | 2002-04-10 01:07:49 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-04-10 01:07:49 +0000 |
commit | d3e97520d9b7806323c4f56c0ef69103297a28c7 (patch) | |
tree | 28a44a061cf205c84ac3a6e153ee871d5751169b /main/snprintf.h | |
parent | bab62092c46c995a02c608b2435767eba5136dbd (diff) | |
download | php-git-d3e97520d9b7806323c4f56c0ef69103297a28c7.tar.gz |
-preface for new vpprintf
#reordered and renamed some functions and removed some static
Diffstat (limited to 'main/snprintf.h')
-rw-r--r-- | main/snprintf.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/snprintf.h b/main/snprintf.h index 59b332f9a8..d05d8646d0 100644 --- a/main/snprintf.h +++ b/main/snprintf.h @@ -34,6 +34,41 @@ int php_sprintf (char* s, const char* format, ...); #define sprintf php_sprintf #endif +#ifdef HAVE_GCVT + +#define ap_php_ecvt ecvt +#define ap_php_fcvt fcvt +#define ap_php_gcvt gcvt + +#else + +extern char * ap_php_cvt(double arg, int ndigits, int *decpt, int *sign, int eflag); +extern char * ap_php_ecvt(double arg, int ndigits, int *decpt, int *sign); +extern char * ap_php_fcvt(double arg, int ndigits, int *decpt, int *sign); +extern char * ap_php_gcvt(double number, int ndigit, char *buf); + +#endif + +typedef enum { + NO = 0, YES = 1 +} boolean_e; + +#define WIDE_INT long +typedef WIDE_INT wide_int; +typedef unsigned WIDE_INT u_wide_int; + +typedef int bool_int; + +extern char * ap_php_conv_10(register wide_int num, register bool_int is_unsigned, + register bool_int * is_negative, char *buf_end, register int *len); + +extern char * ap_php_conv_fp(register char format, register double num, + boolean_e add_dp, int precision, bool_int * is_negative, char *buf, int *len); + +extern char * ap_php_conv_p2(register u_wide_int num, register int nbits, + char format, char *buf_end, register int *len); + + #endif /* SNPRINTF_H */ /* |