1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* version.c (Init_version): add RUBY_ENGINE constant.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-08-14 08:28:44 +00:00
parent 0cafe9e4cd
commit f677aae7bc
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Thu Aug 14 17:27:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* version.c (Init_version): add RUBY_ENGINE constant.
Thu Aug 14 15:34:10 2008 Tanaka Akira <akr@fsij.org>
* transcode.c (rb_econv_conv): new function. it don't consume input

View file

@ -22,6 +22,7 @@ const char ruby_platform[] = RUBY_PLATFORM;
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 @@ Init_version(void)
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