~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/dtoa.c

Giant merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
 ***************************************************************/
37
37
 
38
 
#include <my_base.h> /* for EOVERFLOW on Windows */
39
 
#include <my_global.h>
40
38
#include <m_string.h>  /* for memcpy and NOT_FIXED_DEC */
41
39
 
42
40
/**
85
83
   @return            number of written characters (excluding terminating '\0')
86
84
*/
87
85
 
88
 
size_t my_fcvt(double x, int precision, char *to, my_bool *error)
 
86
size_t my_fcvt(double x, int precision, char *to, bool *error)
89
87
{
90
88
  int decpt, sign, len, i;
91
89
  char *res, *src, *end, *dst= to;
209
207
*/
210
208
 
211
209
size_t my_gcvt(double x, my_gcvt_arg_type type, int width, char *to,
212
 
               my_bool *error)
 
210
               bool *error)
213
211
{
214
212
  int decpt, sign, len, exp_len;
215
213
  char *res, *src, *end, *dst= to, *dend= dst + width;
1329
1327
  double aadj, aadj1, adj, rv, rv0;
1330
1328
  Long L;
1331
1329
  ULong y, z;
1332
 
  Bigint *bb, *bb1, *bd, *bd0, *bs, *delta;
 
1330
  Bigint *bb= NULL, *bb1= NULL, *bd= NULL, *bd0= NULL, *bs= NULL, *delta= NULL;
1333
1331
#ifdef SET_INEXACT
1334
1332
  int inexact, oldinexact;
1335
1333
#endif
2166
2164
  Long L;
2167
2165
  int denorm;
2168
2166
  ULong x;
2169
 
  Bigint *b, *b1, *delta, *mlo, *mhi, *S;
 
2167
  Bigint *b, *b1, *delta, *mlo = NULL, *mhi, *S;
2170
2168
  double d2, ds, eps;
2171
2169
  char *s, *s0;
2172
2170
#ifdef Honor_FLT_ROUNDS