1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1998-07-15 06:13:08 +00:00
parent 35c6e6af5b
commit c30c3bffe4
18 changed files with 1032 additions and 214 deletions

View file

@ -612,9 +612,6 @@ fmt_setup(buf, c, flags, width, prec)
int flags, width, prec;
{
*buf++ = '%';
if (strchr("doOXx", c)) {
*buf++ = 'l';
}
if (flags & FSHARP) *buf++ = '#';
if (flags & FPLUS) *buf++ = '+';
if (flags & FMINUS) *buf++ = '-';
@ -630,6 +627,9 @@ fmt_setup(buf, c, flags, width, prec)
buf += strlen(buf);
}
if (strchr("doOXx", c)) {
*buf++ = 'l';
}
*buf++ = c;
*buf = '\0';
}