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

show regexp flags and encoding.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-12-17 13:11:13 +00:00
parent bd79a2eb2d
commit a0fc8b5564

View file

@ -74,10 +74,10 @@ define rp
printf "coderange:unknown "
else
if ($flags & (RUBY_FL_USER12|RUBY_FL_USER13)) == RUBY_FL_USER12
printf "coderange:single "
printf "coderange:7bit "
else
if ($flags & (RUBY_FL_USER12|RUBY_FL_USER13)) == RUBY_FL_USER13
printf "coderange:multi "
printf "coderange:valid "
else
printf "coderange:broken "
end
@ -90,7 +90,14 @@ define rp
set print address off
output ((struct RRegexp*)$arg0)->str
set print address on
printf " "
printf " len:%d ", ((struct RRegexp*)$arg0)->len
if $flags & RUBY_FL_USER5
printf "(literal) "
end
if $flags & RUBY_FL_USER4
printf "(fixed) "
end
printf "encoding:%d ", ($flags & (RUBY_FL_USER8|RUBY_FL_USER9|RUBY_FL_USER10|RUBY_FL_USER11)) >> RUBY_ENCODING_SHIFT
print (struct RRegexp *)$arg0
else
if ($flags & RUBY_T_MASK) == RUBY_T_ARRAY