From a7028afec0bc880372b7e6b307cbf05b2be6a540 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 4 Jan 2007 08:27:19 +0000 Subject: * yarv_version.h : removed. * common.mk : remove yarv_version.h from rules * yarvcore.h (Init_yarvcore) : remove useless constants git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 8 ++++++++ common.mk | 5 ++--- yarv_version.h | 23 ----------------------- yarvcore.c | 12 ------------ 4 files changed, 10 insertions(+), 38 deletions(-) delete mode 100644 yarv_version.h diff --git a/ChangeLog b/ChangeLog index c9af7e79cf..c9e71528ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Thu Jan 4 16:57:14 2007 Koichi Sasada + + * yarv_version.h : removed. + + * common.mk : remove yarv_version.h from rules + + * yarvcore.h (Init_yarvcore) : remove useless constants + Thu Jan 4 17:00:06 2007 GOTOU Yuuzou * ext/openssl/ossl_asn1.c (Init_ossl_asn1): diff --git a/common.mk b/common.mk index 24c6d2e20c..33e1ad63d2 100644 --- a/common.mk +++ b/common.mk @@ -506,7 +506,7 @@ variable.$(OBJEXT): {$(VPATH)}variable.c {$(VPATH)}ruby.h config.h \ {$(VPATH)}node.h {$(VPATH)}st.h {$(VPATH)}util.h version.$(OBJEXT): {$(VPATH)}version.c {$(VPATH)}ruby.h config.h \ {$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \ - {$(VPATH)}version.h {$(VPATH)}yarv_version.h + {$(VPATH)}version.h compile.$(OBJEXT): {$(VPATH)}compile.c {$(VPATH)}yarvcore.h \ {$(VPATH)}compile.h {$(VPATH)}debug.h \ @@ -517,8 +517,7 @@ vm.$(OBJEXT): {$(VPATH)}vm.c {$(VPATH)}vm.h {$(VPATH)}insnhelper.h \ {$(VPATH)}vm_evalbody.ci {$(VPATH)}call_cfunc.ci \ insns.inc vm.inc vmtc.inc vm_macro.inc vm_opts.h {$(VPATH)}eval_intern.h vm_dump.$(OBJEXT): {$(VPATH)}yarvcore.h {$(VPATH)}vm.h -yarvcore.$(OBJEXT): {$(VPATH)}yarvcore.c {$(VPATH)}yarvcore.h \ - {$(VPATH)}yarv_version.h {$(VPATH)}debug.h +yarvcore.$(OBJEXT): {$(VPATH)}yarvcore.c {$(VPATH)}yarvcore.h {$(VPATH)}debug.h debug.$(OBJEXT): {$(VPATH)}debug.h blockinlining.$(OBJEXT): {$(VPATH)}yarv.h {$(VPATH)}yarvcore.h vm_opts.h diff --git a/yarv_version.h b/yarv_version.h deleted file mode 100644 index 4c3bc756a3..0000000000 --- a/yarv_version.h +++ /dev/null @@ -1,23 +0,0 @@ -/********************************************************************** - - yarv_version.h - - - $Author$ - $Date$ - created at: 04/01/11 04:11:41 JST - - Copyright (C) 2004-2006 Koichi Sasada - -**********************************************************************/ - -#ifndef _VERSION_H_INCLUDED_ -#define _VERSION_H_INCLUDED_ - -#define MAJOR_VER 0 -#define MINOR_VER 4 -#define DEVEL_VER 1 - -extern char yarv_version[]; -extern char *yarv_options; - -#endif // _VERSION_H_INCLUDED_ diff --git a/yarvcore.c b/yarvcore.c index eb4e1a91e5..d6b59c527d 100644 --- a/yarvcore.c +++ b/yarvcore.c @@ -13,7 +13,6 @@ #include "ruby.h" #include "node.h" -#include "yarv_version.h" #include "yarvcore.h" #include "yarv.h" #include "gc.h" @@ -891,19 +890,8 @@ void Init_ISeq(void); void Init_yarvcore(void) { - const char *rev = "$Rev:$"; - const char *date = "$Date:$"; - - snprintf(yarv_version, 0x20, "YARVCore %d.%d.%d", - MAJOR_VER, MINOR_VER, DEVEL_VER); - /* declare YARVCore module */ mYarvCore = rb_define_module("YARVCore"); - rb_define_const(mYarvCore, "VERSION", rb_str_new2(yarv_version)); - rb_define_const(mYarvCore, "MAJOR", INT2FIX(MAJOR_VER)); - rb_define_const(mYarvCore, "MINOR", INT2FIX(MINOR_VER)); - rb_define_const(mYarvCore, "REV", rb_str_new2(rev)); - rb_define_const(mYarvCore, "DATE", rb_str_new2(date)); rb_define_const(mYarvCore, "OPTS", rb_str_new2(yarv_options)); Init_ISeq(); -- cgit v1.2.3