From e55330c9c415f673ca5565a9dbd0b84775d53419 Mon Sep 17 00:00:00 2001 From: nagai Date: Fri, 9 Jul 2004 19:29:29 +0000 Subject: * ext/tk/lib/tk.rb: better operation for SIGINT when processing callbacks. * ext/tk/lib/tk/msgcat.rb: ditto. * ext/tk/lib/tk/variable.rb: ditto. * ext/tk/lib/tk/timer.rb: ditto. * ext/tk/lib/tk/validation.rb: add Tk::ValidateConfigure.__def_validcmd() to define validatecommand methods easier git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/tkutil.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/tk/tkutil.c') diff --git a/ext/tk/tkutil.c b/ext/tk/tkutil.c index 39047804b3..4654619169 100644 --- a/ext/tk/tkutil.c +++ b/ext/tk/tkutil.c @@ -214,6 +214,10 @@ tk_symbolkey2str(self, keys) { volatile VALUE new_keys = rb_hash_new(); + if NIL_P(keys) return new_keys; + if (TYPE(keys) != T_HASH) { + rb_raise(rb_eArgError, "Hash is expected"); + } st_foreach(RHASH(keys)->tbl, to_strkey, new_keys); return new_keys; } -- cgit v1.2.3