1
0
Fork 0
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:
matz 1998-03-31 04:52:10 +00:00
parent b41d6e177b
commit a1d8147e44
9 changed files with 34 additions and 10 deletions

7
eval.c
View file

@ -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) {