mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* version.c (ruby_show_copyright): obtain copyright year from
RUBY_RELEASE_YEAR. * win32/resource.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
384df36250
commit
ec37ab2efe
5 changed files with 20 additions and 8 deletions
|
@ -1,3 +1,10 @@
|
|||
Thu Mar 25 21:01:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* version.c (ruby_show_copyright): obtain copyright year from
|
||||
RUBY_RELEASE_YEAR.
|
||||
|
||||
* win32/resource.rb: ditto.
|
||||
|
||||
Thu Mar 25 19:37:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/resource.rb: default rubyw icon to ruby.ico, and let DLL also
|
||||
|
|
|
@ -199,7 +199,7 @@ enum.$(OBJEXT): {$(VPATH)}enum.c {$(VPATH)}ruby.h config.h \
|
|||
{$(VPATH)}node.h {$(VPATH)}util.h
|
||||
error.$(OBJEXT): {$(VPATH)}error.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}env.h {$(VPATH)}version.h {$(VPATH)}st.h
|
||||
{$(VPATH)}env.h {$(VPATH)}st.h
|
||||
euc_jp.$(OBJEXT): {$(VPATH)}euc_jp.c {$(VPATH)}regenc.h \
|
||||
{$(VPATH)}oniguruma.h
|
||||
eval.$(OBJEXT): {$(VPATH)}eval.c {$(VPATH)}ruby.h config.h \
|
||||
|
|
5
error.c
5
error.c
|
@ -12,7 +12,6 @@
|
|||
|
||||
#include "ruby.h"
|
||||
#include "env.h"
|
||||
#include "version.h"
|
||||
#include "st.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -24,6 +23,8 @@
|
|||
#define va_init_list(a,b) va_start(a)
|
||||
#endif
|
||||
|
||||
extern const char ruby_version[], ruby_release_date[], ruby_platform[];
|
||||
|
||||
int ruby_nerrs;
|
||||
|
||||
static int
|
||||
|
@ -202,7 +203,7 @@ rb_bug(fmt, va_alist)
|
|||
vfprintf(out, fmt, args);
|
||||
va_end(args);
|
||||
fprintf(out, "\nruby %s (%s) [%s]\n\n",
|
||||
RUBY_VERSION, RUBY_RELEASE_DATE, RUBY_PLATFORM);
|
||||
ruby_version, ruby_release_date, ruby_platform);
|
||||
}
|
||||
abort();
|
||||
}
|
||||
|
|
12
version.c
12
version.c
|
@ -14,12 +14,16 @@
|
|||
#include "version.h"
|
||||
#include <stdio.h>
|
||||
|
||||
const char ruby_version[] = RUBY_VERSION;
|
||||
const char ruby_release_date[] = RUBY_RELEASE_DATE;
|
||||
const char ruby_platform[] = RUBY_PLATFORM;
|
||||
|
||||
void
|
||||
Init_version()
|
||||
{
|
||||
VALUE v = rb_obj_freeze(rb_str_new2(RUBY_VERSION));
|
||||
VALUE d = rb_obj_freeze(rb_str_new2(RUBY_RELEASE_DATE));
|
||||
VALUE p = rb_obj_freeze(rb_str_new2(RUBY_PLATFORM));
|
||||
VALUE v = rb_obj_freeze(rb_str_new2(ruby_version));
|
||||
VALUE d = rb_obj_freeze(rb_str_new2(ruby_release_date));
|
||||
VALUE p = rb_obj_freeze(rb_str_new2(ruby_platform));
|
||||
|
||||
rb_define_global_const("RUBY_VERSION", v);
|
||||
rb_define_global_const("RUBY_RELEASE_DATE", d);
|
||||
|
@ -35,6 +39,6 @@ ruby_show_version()
|
|||
void
|
||||
ruby_show_copyright()
|
||||
{
|
||||
printf("ruby - Copyright (C) 1993-2003 Yukihiro Matsumoto\n");
|
||||
printf("ruby - Copyright (C) 1993-%d Yukihiro Matsumoto\n", RUBY_RELEASE_YEAR);
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ BEGIN
|
|||
VALUE "FileVersion", "#{fversion}\\0"
|
||||
VALUE "Home Page", "http://www.ruby-lang.org/\\0"
|
||||
VALUE "InternalName", "#{base + ext}\\0"
|
||||
VALUE "LegalCopyright", "Copyright (C) 1993-2003 Yukihiro Matsumoto\\0"
|
||||
VALUE "LegalCopyright", "Copyright (C) 1993-#{RUBY_RELEASE_DATE[/\d+/]} Yukihiro Matsumoto\\0"
|
||||
VALUE "OriginalFilename", "#{base + ext}\\0"
|
||||
VALUE "Platform", "#{RUBY_PLATFORM}\\0"
|
||||
VALUE "ProductVersion", "#{fversion}\\0"
|
||||
|
|
Loading…
Reference in a new issue