Mercurial > hg > xemacs-beta
diff src/doprnt.c @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | a4f53d9b3154 |
children | 8626e4521993 |
line wrap: on
line diff
--- a/src/doprnt.c Mon Aug 13 11:01:58 2007 +0200 +++ b/src/doprnt.c Mon Aug 13 11:03:08 2007 +0200 @@ -386,7 +386,7 @@ if (strchr (int_converters, ch)) { if (spec->h_flag) - arg.i = va_arg (vargs, int /* short */); + arg.i = va_arg (vargs, short); else if (spec->l_flag) arg.l = va_arg (vargs, long); else @@ -395,7 +395,7 @@ else if (strchr (unsigned_int_converters, ch)) { if (spec->h_flag) - arg.ui = va_arg (vargs, unsigned int /* unsigned short */); + arg.ui = va_arg (vargs, unsigned short); else if (spec->l_flag) arg.ul = va_arg (vargs, unsigned long); else @@ -633,7 +633,6 @@ { char text_to_print[500]; char constructed_spec[100]; - int tem; /* Partially reconstruct the spec and use sprintf() to format the string. */ @@ -652,7 +651,6 @@ strcat (constructed_spec, " "); if (spec->number_flag) strcat (constructed_spec, "#"); - tem = strlen (constructed_spec); if (spec->precision >= 0) { strcat (constructed_spec, "."); @@ -676,12 +674,6 @@ } else { - /* In the special case of zero padding a signed integer */ - /* with a field width specified, we overwrite the default */ - /* format. */ - if (spec->zero_flag && spec->minwidth) - sprintf (constructed_spec + tem, - "0%d%c", spec->minwidth, ch); if (spec->l_flag) sprintf (text_to_print, constructed_spec, arg.l); else