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

Sun Nov 26 16:36:46 2006 URABE Shyouhei <shyouhei@ruby-lang.org>

* version.h: addition of RUBY_PATCHLEVEL.
        * version.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2006-11-26 09:34:32 +00:00
parent 0d9c33d14b
commit b9d64f433b
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Sun Nov 26 16:36:46 2006 URABE Shyouhei <shyouhei@ruby-lang.org>
* version.h: addition of RUBY_PATCHLEVEL.
* version.c: ditto.
Wed Nov 22 16:00:49 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/extconf.rb: support --with-X11/--without-X11 option.

View file

@ -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(void)
@ -28,12 +29,13 @@ Init_version(void)
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));
}
void
ruby_show_version(void)
{
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);
}

View file

@ -1,7 +1,8 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2006-11-22"
#define RUBY_RELEASE_DATE "2006-11-26"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20061122
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
@ -13,3 +14,4 @@
RUBY_EXTERN const char ruby_version[];
RUBY_EXTERN const char ruby_release_date[];
RUBY_EXTERN const char ruby_platform[];
RUBY_EXTERN const int ruby_patchlevel;