mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/tcltklib.c (Init_tcltklib): use rb_set_end_proc().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6fc746d7e3
commit
0dec7d5788
2 changed files with 6 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Aug 18 17:44:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/tk/tcltklib.c (Init_tcltklib): use rb_set_end_proc().
|
||||
|
||||
Sat Aug 18 17:40:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* thread.c (is_ruby_native_thread): check properly. [ruby-dev:31166]
|
||||
|
|
|
@ -4358,12 +4358,11 @@ delete_slaves(ip)
|
|||
|
||||
|
||||
/* finalize operation */
|
||||
static VALUE
|
||||
static void
|
||||
lib_mark_at_exit(self)
|
||||
VALUE self;
|
||||
{
|
||||
at_exit = 1;
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -7978,8 +7977,6 @@ Init_tcltklib()
|
|||
|
||||
/* --------------------------------------------------------------- */
|
||||
|
||||
rb_define_module_function(lib, "_mark_at_exit", lib_mark_at_exit, 0);
|
||||
|
||||
rb_define_module_function(lib, "mainloop", lib_mainloop, -1);
|
||||
rb_define_module_function(lib, "mainloop_thread?",
|
||||
lib_evloop_thread_p, 0);
|
||||
|
@ -8116,7 +8113,7 @@ Init_tcltklib()
|
|||
|
||||
/* --------------------------------------------------------------- */
|
||||
|
||||
rb_eval_string("at_exit{ TclTkLib._mark_at_exit }");
|
||||
rb_set_end_proc(lib_mark_at_exit, 0);
|
||||
|
||||
/* --------------------------------------------------------------- */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue