1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/pp.rb (File::Stat#pretty_print): print rdev_major and rdev_minor.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2002-01-31 04:24:04 +00:00
parent 33158860f4
commit caa76f71fb
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Thu Jan 31 13:22:36 2002 Tanaka Akira <akr@m17n.org>
* lib/pp.rb (File::Stat#pretty_print): print rdev_major and rdev_minor.
Wed Jan 30 15:58:04 2002 K.Kosako <kosako@sofnec.co.jp>
* regex.c (re_adjust_startpos): fix for SJIS and UTF-8.

View file

@ -361,7 +361,7 @@ class File
pp.breakable
pp.group {
m = self.mode
pp.text "mode="; pp.text sprintf("0%o", m)
pp.text sprintf("mode=0%o", m)
pp.breakable
pp.text sprintf("(%s %c%c%c%c%c%c%c%c%c)",
self.ftype,
@ -400,7 +400,13 @@ class File
end
pp.text ','
}
pp.breakable; pp.text "rdev="; pp.pp self.rdev; pp.text ','
pp.breakable
pp.group {
pp.text sprintf("rdev=0x%x", self.rdev)
pp.breakable
pp.text sprintf('(%d, %d)', self.rdev_major, self.rdev_minor)
pp.text ','
}
pp.breakable; pp.text "size="; pp.pp self.size; pp.text ','
pp.breakable; pp.text "blksize="; pp.pp self.blksize; pp.text ','
pp.breakable; pp.text "blocks="; pp.pp self.blocks; pp.text ','