~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/dtoa.c

  • Committer: Jay Pipes
  • Date: 2008-07-17 19:11:14 UTC
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: jay@mysql.com-20080717191114-gzmhr3vgsr01fslw
Removal of DBUG from strings/ library

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
  int decpt, sign, len, i;
91
91
  char *res, *src, *end, *dst= to;
92
92
  char buf[DTOA_BUFF_SIZE];
93
 
  DBUG_ASSERT(precision >= 0 && precision < NOT_FIXED_DEC && to != NULL);
 
93
  assert(precision >= 0 && precision < NOT_FIXED_DEC && to != NULL);
94
94
  
95
95
  res= dtoa(x, 5, precision, &decpt, &sign, &end, buf, sizeof(buf));
96
96
 
215
215
  char *res, *src, *end, *dst= to, *dend= dst + width;
216
216
  char buf[DTOA_BUFF_SIZE];
217
217
  my_bool have_space, force_e_format;
218
 
  DBUG_ASSERT(width > 0 && to != NULL);
 
218
  assert(width > 0 && to != NULL);
219
219
  
220
220
  /* We want to remove '-' from equations early */
221
221
  if (x < 0.)
461
461
{
462
462
  char buf[DTOA_BUFF_SIZE];
463
463
  double res;
464
 
  DBUG_ASSERT(str != NULL && end != NULL && *end != NULL && error != NULL);
 
464
  assert(str != NULL && end != NULL && *end != NULL && error != NULL);
465
465
 
466
466
  res= my_strtod_int(str, end, error, buf, sizeof(buf));
467
467
  return (*error == 0) ? res : (res < 0 ? -DBL_MAX : DBL_MAX);