summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'version.c')
-rw-r--r--version.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/version.c b/version.c
index 27a3182f9c..38af6d714d 100644
--- a/version.c
+++ b/version.c
@@ -7,7 +7,7 @@
$Date: 1995/01/12 08:54:54 $
created at: Thu Sep 30 20:08:01 JST 1993
- Copyright (C) 1994 Yukihiro Matsumoto
+ Copyright (C) 1995 Yukihiro Matsumoto
************************************************/
@@ -15,14 +15,11 @@
#include "version.h"
#include <stdio.h>
-static VALUE rb_version;
-
-VALUE rb_readonly_hook();
+extern VALUE C_Kernel;
Init_version()
{
- rb_version = str_new2(RUBY_VERSION);
- rb_define_variable("$VERSION", &rb_version, Qnil, rb_readonly_hook, 0);
+ rb_define_const(C_Kernel, "VERSION", str_new2(RUBY_VERSION));
}
show_version()
@@ -32,6 +29,6 @@ show_version()
show_copyright()
{
- fprintf(stderr, "ruby - Copyright (C) 1994 Yukihiro Matsumoto\n");
+ fprintf(stderr, "ruby - Copyright (C) 1995 Yukihiro Matsumoto\n");
exit(0);
}