summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-11 10:12:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-11 10:12:39 +0000
commit6a14cf11f7837a2a690e2259b4e13e06229d4289 (patch)
treedab849379a884368fe7f54b565c29c3785534de8 /ruby.c
parent63d71ac0c68e85f6a4bcb2f66484f8f0fb4ab834 (diff)
* ruby.c (require_libraries): restore source file/line after
statically linked extensions initialized. [ruby-dev:23357] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index f2d368d..f96a0b4 100644
--- a/ruby.c
+++ b/ruby.c
@@ -340,11 +340,14 @@ require_libraries()
struct req_list *list = req_list_head.next;
struct req_list *tmp;
- Init_ext(); /* should be called here for some reason :-( */
save[0] = ruby_eval_tree;
save[1] = ruby_eval_tree_begin;
save[2] = NEW_NEWLINE(0);
ruby_eval_tree = ruby_eval_tree_begin = 0;
+ ruby_current_node = 0;
+ Init_ext(); /* should be called here for some reason :-( */
+ ruby_current_node = save[2];
+ ruby_set_current_source();
req_list_last = 0;
while (list) {
ruby_current_node = 0;