diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-23 04:17:03 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-23 04:17:03 +0000 |
| commit | 13fde676feb8c1280f674cb7537fb680bb86eef7 (patch) | |
| tree | 5ef382441ec9e73d90dfc93f84062bfe598dd98c /ext/tk | |
| parent | 7d6f48ccd22e93b6213514962a6ded168cad2966 (diff) | |
* ext/tcltklib/tcltklib.c: define TclTkLib::COMPILE_INFO and RELEASE_DATE
* ext/tcltklib/extconf.rb: ditto
* ext/tk/lib/tkutil.c: define Tk::RELEASE_DATE
* ext/tk/lib/tk.rb: define Tk::RELEASE_DATE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
| -rw-r--r-- | ext/tk/lib/tk.rb | 2 | ||||
| -rw-r--r-- | ext/tk/tkutil.c | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 97535af124..69f2b4f2f7 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -3940,6 +3940,8 @@ end #Tk.freeze module Tk + RELEASE_DATE = '2004-12-23'.freeze + autoload :AUTO_PATH, 'tk/variable' autoload :TCL_PACKAGE_PATH, 'tk/variable' autoload :PACKAGE_PATH, 'tk/variable' diff --git a/ext/tk/tkutil.c b/ext/tk/tkutil.c index 04d276cca2..e36f92af04 100644 --- a/ext/tk/tkutil.c +++ b/ext/tk/tkutil.c @@ -8,6 +8,8 @@ ************************************************/ +#define TKUTIL_RELEASE_DATE "2004-12-23" + #include "ruby.h" #include "rubysig.h" #include "st.h" @@ -1239,6 +1241,8 @@ tkobj_path(self) } /*************************************/ +/* release date */ +const char tkutil_release_date[] = TKUTIL_RELEASE_DATE; void Init_tkutil() @@ -1249,6 +1253,11 @@ Init_tkutil() VALUE mTK = rb_define_module("TkUtil"); /* --------------------- */ + + rb_define_const(mTK, "RELEASE_DATE", + rb_obj_freeze(rb_str_new2(tkutil_release_date))); + + /* --------------------- */ rb_global_variable(&cMethod); cMethod = rb_const_get(rb_cObject, rb_intern("Method")); |
