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
Родитель 0d9c33d14b
Коммит b9d64f433b
3 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -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> Wed Nov 22 16:00:49 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/extconf.rb: support --with-X11/--without-X11 option. * ext/tk/extconf.rb: support --with-X11/--without-X11 option.

Просмотреть файл

@ -17,6 +17,7 @@
const char ruby_version[] = RUBY_VERSION; const char ruby_version[] = RUBY_VERSION;
const char ruby_release_date[] = RUBY_RELEASE_DATE; const char ruby_release_date[] = RUBY_RELEASE_DATE;
const char ruby_platform[] = RUBY_PLATFORM; const char ruby_platform[] = RUBY_PLATFORM;
const int ruby_patchlevel = RUBY_PATCHLEVEL;
void void
Init_version(void) Init_version(void)
@ -28,12 +29,13 @@ Init_version(void)
rb_define_global_const("RUBY_VERSION", v); rb_define_global_const("RUBY_VERSION", v);
rb_define_global_const("RUBY_RELEASE_DATE", d); rb_define_global_const("RUBY_RELEASE_DATE", d);
rb_define_global_const("RUBY_PLATFORM", p); rb_define_global_const("RUBY_PLATFORM", p);
rb_define_global_const("RUBY_PATCHLEVEL", INT2FIX(RUBY_PATCHLEVEL));
} }
void void
ruby_show_version(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); fflush(stdout);
} }

Просмотреть файл

@ -1,7 +1,8 @@
#define RUBY_VERSION "1.9.0" #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_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20061122 #define RUBY_RELEASE_CODE 20061122
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_MINOR 9
@ -13,3 +14,4 @@
RUBY_EXTERN const char ruby_version[]; RUBY_EXTERN const char ruby_version[];
RUBY_EXTERN const char ruby_release_date[]; RUBY_EXTERN const char ruby_release_date[];
RUBY_EXTERN const char ruby_platform[]; RUBY_EXTERN const char ruby_platform[];
RUBY_EXTERN const int ruby_patchlevel;