matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1ad26ccf35
commit
ce175376b2
@ -1,3 +1,10 @@
|
|||||||
|
Fri Jul 14 12:49:50 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
|
||||||
|
|
||||||
|
* eval.c (rb_eval): should preserve errinfo even if return, break,
|
||||||
|
etc. is called in rescue clause.
|
||||||
|
|
||||||
|
* instruby.rb: install irb too.
|
||||||
|
|
||||||
Wed Jul 12 15:32:57 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
|
Wed Jul 12 15:32:57 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
|
||||||
|
|
||||||
* variable.c (rb_const_get): constants for builtin classes must
|
* variable.c (rb_const_get): constants for builtin classes must
|
||||||
@ -10,7 +17,7 @@ Wed Jul 12 15:06:28 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
|
|||||||
|
|
||||||
* eval.c (rb_eval): use rb_const_get_at().
|
* eval.c (rb_eval): use rb_const_get_at().
|
||||||
|
|
||||||
* variable.c (rb_const_get_at): retrieve toplevel constants only,
|
* variable.c (top_const_get): retrieve toplevel constants only,
|
||||||
not ones of Object (and its included modules) in general.
|
not ones of Object (and its included modules) in general.
|
||||||
|
|
||||||
Wed Jul 12 15:04:11 2000 Minero Aoki <aamine@dp.u-netsurf.ne.jp>
|
Wed Jul 12 15:04:11 2000 Minero Aoki <aamine@dp.u-netsurf.ne.jp>
|
||||||
|
8
eval.c
8
eval.c
@ -2219,13 +2219,13 @@ rb_eval(self, n)
|
|||||||
result = rb_eval(self, resq->nd_body);
|
result = rb_eval(self, resq->nd_body);
|
||||||
}
|
}
|
||||||
POP_TAG();
|
POP_TAG();
|
||||||
if (state == 0) {
|
if (state == TAG_RETRY) {
|
||||||
ruby_errinfo = e_info;
|
|
||||||
}
|
|
||||||
else if (state == TAG_RETRY) {
|
|
||||||
state = 0;
|
state = 0;
|
||||||
goto retry_entry;
|
goto retry_entry;
|
||||||
}
|
}
|
||||||
|
if (state != TAG_RAISE) {
|
||||||
|
ruby_errinfo = e_info;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
resq = resq->nd_head; /* next rescue */
|
resq = resq->nd_head; /* next rescue */
|
||||||
|
@ -219,6 +219,17 @@ module TkComm
|
|||||||
end
|
end
|
||||||
private :_get_eval_string
|
private :_get_eval_string
|
||||||
|
|
||||||
|
def ruby2tcl(v)
|
||||||
|
if v.kind_of?(Hash)
|
||||||
|
v = hash_kv(v)
|
||||||
|
v.flatten!
|
||||||
|
v.collect{|e|ruby2tcl(e)}
|
||||||
|
else
|
||||||
|
_get_eval_string(v)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
private :ruby2tcl
|
||||||
|
|
||||||
Tk_IDs = [0, 0] # [0]-cmdid, [1]-winid
|
Tk_IDs = [0, 0] # [0]-cmdid, [1]-winid
|
||||||
def _curr_cmd_id
|
def _curr_cmd_id
|
||||||
id = format("c%.4d", Tk_IDs[0])
|
id = format("c%.4d", Tk_IDs[0])
|
||||||
@ -541,7 +552,7 @@ module TkCore
|
|||||||
|
|
||||||
def tk_call(*args)
|
def tk_call(*args)
|
||||||
print args.join(" "), "\n" if $DEBUG
|
print args.join(" "), "\n" if $DEBUG
|
||||||
args.collect! {|x|_get_eval_string(x)}
|
args.collect! {|x|ruby2tcl(x)}
|
||||||
args.compact!
|
args.compact!
|
||||||
args.flatten!
|
args.flatten!
|
||||||
begin
|
begin
|
||||||
|
@ -69,6 +69,8 @@ else
|
|||||||
end
|
end
|
||||||
Dir.chdir CONFIG["srcdir"]
|
Dir.chdir CONFIG["srcdir"]
|
||||||
|
|
||||||
|
File.install "sample/irb.rb", "#{bindir}/irb", 0755, true
|
||||||
|
|
||||||
Find.find("lib") do |f|
|
Find.find("lib") do |f|
|
||||||
next unless /\.rb$/ =~ f
|
next unless /\.rb$/ =~ f
|
||||||
dir = rubylibdir+"/"+File.dirname(f[4..-1])
|
dir = rubylibdir+"/"+File.dirname(f[4..-1])
|
||||||
|
@ -19,8 +19,7 @@ if __FILE__ == $0
|
|||||||
IRB.start(__FILE__)
|
IRB.start(__FILE__)
|
||||||
else
|
else
|
||||||
# check -e option
|
# check -e option
|
||||||
tmp = ENV["TMP"] || ENV["TMPDIR"] || "/tmp"
|
if /^-e$/ =~ $0
|
||||||
if %r|#{tmp}/rb| =~ $0
|
|
||||||
IRB.start(__FILE__)
|
IRB.start(__FILE__)
|
||||||
else
|
else
|
||||||
IRB.initialize(__FILE__)
|
IRB.initialize(__FILE__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user