ruby-changes:7094
From: matz <ko1@a...>
Date: Thu, 14 Aug 2008 17:29:00 +0900 (JST)
Subject: [ruby-changes:7094] Ruby:r18612 (trunk): * version.c (Init_version): add RUBY_ENGINE constant.
matz 2008-08-14 17:28:44 +0900 (Thu, 14 Aug 2008) New Revision: 18612 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18612 Log: * version.c (Init_version): add RUBY_ENGINE constant. Modified files: trunk/ChangeLog trunk/version.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18611) +++ ChangeLog (revision 18612) @@ -1,3 +1,7 @@ +Thu Aug 14 17:27:07 2008 Yukihiro Matsumoto <matz@r...> + + * version.c (Init_version): add RUBY_ENGINE constant. + Thu Aug 14 15:34:10 2008 Tanaka Akira <akr@f...> * transcode.c (rb_econv_conv): new function. it don't consume input Index: version.c =================================================================== --- version.c (revision 18611) +++ version.c (revision 18612) @@ -22,6 +22,7 @@ const int ruby_patchlevel = RUBY_PATCHLEVEL; const char ruby_description[] = RUBY_DESCRIPTION; const char ruby_copyright[] = RUBY_COPYRIGHT; +const char ruby_engine[] = "ruby"; void Init_version(void) @@ -33,6 +34,7 @@ rb_define_global_const("RUBY_REVISION", INT2FIX(RUBY_REVISION)); rb_define_global_const("RUBY_DESCRIPTION", MKSTR(description)); rb_define_global_const("RUBY_COPYRIGHT", MKSTR(copyright)); + rb_define_global_const("RUBY_ENGINE", MKSTR(engine)); } void -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/