~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/dtoa.c

  • Committer: Monty Taylor
  • Date: 2008-08-02 01:03:15 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080802010315-65h5938pymg9d99z
Moved m4 macros to top-level m4 dir, per GNU standards (and where gettext wanted it :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
  int decpt, sign, len, exp_len;
213
213
  char *res, *src, *end, *dst= to, *dend= dst + width;
214
214
  char buf[DTOA_BUFF_SIZE];
215
 
  bool have_space, force_e_format;
 
215
  my_bool have_space, force_e_format;
216
216
  assert(width > 0 && to != NULL);
217
217
  
218
218
  /* We want to remove '-' from equations early */
611
611
 
612
612
#define Kmax 15
613
613
 
614
 
#define Bcopy(x,y) memcpy(&x->sign, &y->sign, \
 
614
#define Bcopy(x,y) memcpy((char *)&x->sign, (char *)&y->sign,   \
615
615
                          2*sizeof(int) + y->wds*sizeof(ULong))
616
616
 
617
617
/* Arbitrary-length integer */