mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
eval(..,file,line);String#center
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b41d6e177b
commit
a1d8147e44
9 changed files with 34 additions and 10 deletions
7
eval.c
7
eval.c
|
@ -3713,8 +3713,11 @@ eval(self, src, scope, file, line)
|
|||
file = sourcefile;
|
||||
line = sourceline;
|
||||
}
|
||||
else if (line > 0) {
|
||||
sourceline = line;
|
||||
else {
|
||||
sourcefile = file;
|
||||
if (line > 0) {
|
||||
sourceline = line;
|
||||
}
|
||||
}
|
||||
if (!NIL_P(scope)) {
|
||||
if (TYPE(scope) != T_DATA || RDATA(scope)->dfree != blk_free) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue