diff options
author | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-05 18:53:00 +0000 |
---|---|---|
committer | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-05 18:53:00 +0000 |
commit | ca87cbea59698332cf212aa185ac56a55db0557e (patch) | |
tree | 48c575c1f14e71117f97b8af970f8a090252ca26 /version.c | |
parent | 74483e11f55124cf9cd679a8964614fe8b354e4f (diff) |
This commit was manufactured by cvs2svn to create tag 'v1_8_5_3'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_3@11346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.c')
-rw-r--r-- | version.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -17,6 +17,7 @@ const char ruby_version[] = RUBY_VERSION; const char ruby_release_date[] = RUBY_RELEASE_DATE; const char ruby_platform[] = RUBY_PLATFORM; +const int ruby_patchlevel = RUBY_PATCHLEVEL; void Init_version() @@ -28,6 +29,7 @@ Init_version() rb_define_global_const("RUBY_VERSION", v); rb_define_global_const("RUBY_RELEASE_DATE", d); rb_define_global_const("RUBY_PLATFORM", p); + rb_define_global_const("RUBY_PATCHLEVEL", INT2FIX(RUBY_PATCHLEVEL)); /* obsolete constants */ rb_define_global_const("VERSION", v); @@ -38,7 +40,7 @@ Init_version() void ruby_show_version() { - printf("ruby %s (%s) [%s]\n", RUBY_VERSION, RUBY_RELEASE_DATE, RUBY_PLATFORM); + printf("ruby %s (%s patchlevel %d) [%s]\n", RUBY_VERSION, RUBY_RELEASE_DATE, RUBY_PATCHLEVEL, RUBY_PLATFORM); fflush(stdout); } |