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 | 1122cae3bf11d180b30d5d0fa41cfb124854a605 (patch) | |
tree | 5ef382441ec9e73d90dfc93f84062bfe598dd98c /ext/tk | |
parent | 8169da2b9e84f55e73be16c50189beee6bd8bea2 (diff) | |
download | ruby-1122cae3bf11d180b30d5d0fa41cfb124854a605.tar.gz ruby-1122cae3bf11d180b30d5d0fa41cfb124854a605.tar.xz ruby-1122cae3bf11d180b30d5d0fa41cfb124854a605.zip |
* 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: http://svn.ruby-lang.org/repos/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 97535af12..69f2b4f2f 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 04d276cca..e36f92af0 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")); |