comparison src/doprnt.c @ 577:910449c92002

[xemacs-hg @ 2001-05-25 10:04:26 by hrvojen] Commit the new, faster version of long_to_string. Published in <sxsofsiy5ze.fsf@florida.arsdigita.de>.
author hrvojen
date Fri, 25 May 2001 10:04:29 +0000
parents 430f8ca10ca6
children b39c14581166
comparison
equal deleted inserted replaced
576:6db80f4ab17c 577:910449c92002
612 if (spec->number_flag) *p++ = '#'; 612 if (spec->number_flag) *p++ = '#';
613 if (spec->minus_flag) *p++ = '-'; 613 if (spec->minus_flag) *p++ = '-';
614 if (spec->zero_flag) *p++ = '0'; 614 if (spec->zero_flag) *p++ = '0';
615 615
616 if (spec->minwidth >= 0) 616 if (spec->minwidth >= 0)
617 p = long_to_string (p, spec->minwidth); 617 {
618 long_to_string (p, spec->minwidth);
619 p += strlen (p);
620 }
618 if (spec->precision >= 0) 621 if (spec->precision >= 0)
619 { 622 {
620 *p++ = '.'; 623 *p++ = '.';
621 p = long_to_string (p, spec->precision); 624 long_to_string (p, spec->precision);
625 p += strlen (p);
622 } 626 }
623 627
624 if (strchr (double_converters, ch)) 628 if (strchr (double_converters, ch))
625 { 629 {
626 *p++ = ch; 630 *p++ = ch;