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/branches/ruby_1_8@11307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2006-11-26 09:34:32 +00:00
parent e3adeba5b2
commit 9744750be0
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.
Fri Nov 24 10:17:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org> Fri Nov 24 10:17:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* bignum.c (bignorm): avoid segmentation. a patch from Hiroyuki * bignum.c (bignorm): avoid segmentation. a patch from Hiroyuki

View file

@ -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() Init_version()
@ -28,6 +29,7 @@ Init_version()
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));
/* obsolete constants */ /* obsolete constants */
rb_define_global_const("VERSION", v); rb_define_global_const("VERSION", v);
@ -38,7 +40,7 @@ Init_version()
void void
ruby_show_version() 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); fflush(stdout);
} }

View file

@ -1,7 +1,8 @@
#define RUBY_VERSION "1.8.5" #define RUBY_VERSION "1.8.5"
#define RUBY_RELEASE_DATE "2006-11-24" #define RUBY_RELEASE_DATE "2006-11-26"
#define RUBY_VERSION_CODE 185 #define RUBY_VERSION_CODE 185
#define RUBY_RELEASE_CODE 20061124 #define RUBY_RELEASE_CODE 20061124
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8 #define RUBY_VERSION_MINOR 8
@ -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;