diff options
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")); |
