diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-07 06:45:52 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-07 06:45:52 +0000 |
commit | ef04db77f00578677ac5b19aa884077f24fdf8ec (patch) | |
tree | 1eefc8d058344392342456e7df6051c5dd824d0a | |
parent | 0c56b5e4a8a99b15239ed98ef5c606aa7efdd95b (diff) |
* ext/tk/tcltklib.c (Init_tcltklib): use rb_set_end_proc().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/tk/tcltklib.c | 7 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 6 deletions
@@ -1,3 +1,7 @@ +Fri Sep 7 15:43:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * ext/tk/tcltklib.c (Init_tcltklib): use rb_set_end_proc(). + Fri Sep 7 15:42:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * process.c (detach_process_watcher): should not pass the pointer diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c index bad72b4f7f..ff1f7640bd 100644 --- a/ext/tk/tcltklib.c +++ b/ext/tk/tcltklib.c @@ -4364,12 +4364,11 @@ delete_slaves(ip) /* finalize operation */ -static VALUE +static void lib_mark_at_exit(self) VALUE self; { at_exit = 1; - return Qnil; } static int @@ -7995,8 +7994,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); @@ -8133,7 +8130,7 @@ Init_tcltklib() /* --------------------------------------------------------------- */ - rb_eval_string("at_exit{ TclTkLib._mark_at_exit }"); + rb_set_end_proc(lib_mark_at_exit, 0); /* --------------------------------------------------------------- */ @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2007-09-07" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20070907 -#define RUBY_PATCHLEVEL 92 +#define RUBY_PATCHLEVEL 93 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |