[前][次][番号順一覧][スレッド一覧]

ruby-changes:3532

From: ko1@a...
Date: Sun, 13 Jan 2008 15:39:18 +0900 (JST)
Subject: [ruby-changes:3532] matz - Ruby:r15010 (trunk): * enc/make_encdb.rb: should work on Ruby 1.8.

matz	2008-01-13 01:55:33 +0900 (Sun, 13 Jan 2008)

  New Revision: 15010

  Modified files:
    trunk/ChangeLog
    trunk/common.mk
    trunk/enc/make_encdb.rb
    trunk/version.h

  Log:
    * enc/make_encdb.rb: should work on Ruby 1.8.  [ruby-dev:33069]
    
    * common.mk (encdb.h): pass enc dir from outside to make_encdb.rb.

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enc/make_encdb.rb?r1=15010&r2=15009&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=15010&r2=15009&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15010&r2=15009&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/common.mk?r1=15010&r2=15009&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 15009)
+++ ChangeLog	(revision 15010)
@@ -1,3 +1,9 @@
+Sun Jan 13 01:52:31 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* enc/make_encdb.rb: should work on Ruby 1.8.  [ruby-dev:33069]
+
+	* common.mk (encdb.h): pass enc dir from outside to make_encdb.rb.
+
 Sun Jan 13 00:01:07 2008  NARUSE, Yui  <naruse@r...>
 
 	* enc/make_encdb.rb: added. search enc/*.c and make encoding database.
Index: enc/make_encdb.rb
===================================================================
--- enc/make_encdb.rb	(revision 15009)
+++ enc/make_encdb.rb	(revision 15010)
@@ -1,5 +1,3 @@
-#! ./miniruby
-
 #
 # OnigEncodingDefine(foo, Foo) = {
 #   ..
@@ -11,13 +9,12 @@
 # ENC_ALIAS("CP932", "Windows-31J")
 #
 
-require 'mkmf'
-
 encodings = []
 replicas = {}
 aliases = {}
-Dir.open($srcdir) {|d| d.grep(/.+\.c\z/)}.each do |fn|
-  open(File.join($srcdir,fn)) do |f|
+encdir = ARGV[0]
+Dir.open(encdir) {|d| d.grep(/.+\.c\z/)}.each do |fn|
+  open(File.join(encdir,fn)) do |f|
     orig = nil
     name = nil
     f.each_line do |line|
@@ -36,14 +33,16 @@
     end
   end
 end
+p aliases
 open('encdb.h', 'wb') do |f|
   f.puts 'static const char *enc_name_list[] = {'
   encodings.each {|name| f.puts'    "%s",' % name}
   replicas.each_key {|name| f.puts'    "%s",' % name}
+  aliases.each_key {|name| f.puts'    "%s",' % name}
   f.puts(<<"_TEXT_")
     NULL
 };
-static const int enc_name_list_size = #{encodings.length + replicas.length};
+static const int enc_name_list_size = #{encodings.length + replicas.length + aliases.length};
 static const int enc_aliases_size = #{aliases.length};
 static st_table *enc_table_replica_name;
 static st_table *enc_table_alias_name;
Index: common.mk
===================================================================
--- common.mk	(revision 15009)
+++ common.mk	(revision 15010)
@@ -709,7 +709,7 @@
 	$(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
 
 encdb.h: $(srcdir)/enc/make_encdb.rb
-	$(BASERUBY) -I$(srcdir) $(srcdir)/enc/make_encdb.rb
+	$(BASERUBY) $(srcdir)/enc/make_encdb.rb $(srcdir)/enc
 
 miniprelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb
 	$(BASERUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@
Index: version.h
===================================================================
--- version.h	(revision 15009)
+++ version.h	(revision 15010)
@@ -1,7 +1,7 @@
 #define RUBY_VERSION "1.9.0"
-#define RUBY_RELEASE_DATE "2008-01-12"
+#define RUBY_RELEASE_DATE "2008-01-13"
 #define RUBY_VERSION_CODE 190
-#define RUBY_RELEASE_CODE 20080112
+#define RUBY_RELEASE_CODE 20080113
 #define RUBY_PATCHLEVEL 0
 
 #define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
 #define RUBY_VERSION_TEENY 0
 #define RUBY_RELEASE_YEAR 2008
 #define RUBY_RELEASE_MONTH 1
-#define RUBY_RELEASE_DAY 12
+#define RUBY_RELEASE_DAY 13
 
 #ifdef RUBY_EXTERN
 RUBY_EXTERN const char ruby_version[];

--
ML: ruby-changes@q...
Info: 

[前][次][番号順一覧][スレッド一覧]