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

ruby-changes:17138

From: naruse <ko1@a...>
Date: Sun, 29 Aug 2010 16:09:50 +0900 (JST)
Subject: [ruby-changes:17138] Ruby:r29138 (trunk): * common.mk (node_name.inc): remove command option -n and give

naruse	2010-08-29 16:09:40 +0900 (Sun, 29 Aug 2010)

  New Revision: 29138

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29138

  Log:
    * common.mk (node_name.inc): remove command option -n and give
      file as stdin, because IronRuby 1.1 still doesn't support it.
      So now we can use ir.exe as BASERUBY.
    
    * tool/node_name.rb: read stdin with while gets.

  Modified files:
    trunk/ChangeLog
    trunk/common.mk
    trunk/tool/node_name.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29137)
+++ ChangeLog	(revision 29138)
@@ -1,3 +1,11 @@
+Sun Aug 29 16:02:54 2010  NARUSE, Yui  <naruse@r...>
+
+	* common.mk (node_name.inc): remove command option -n and give
+	  file as stdin, because IronRuby 1.1 still doesn't support it.
+	  So now we can use ir.exe as BASERUBY.
+
+	* tool/node_name.rb: read stdin with while gets.
+
 Sun Aug 29 13:22:43 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* vm.c (rb_thread_method_id_and_class): curried proc has no
Index: common.mk
===================================================================
--- common.mk	(revision 29137)
+++ common.mk	(revision 29138)
@@ -725,7 +725,7 @@
 		$(srcdir)/template/id.h.tmpl --vpath=$(VPATH) parse.h
 
 node_name.inc: {$(VPATH)}node.h
-	$(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
+	$(BASERUBY) -n $(srcdir)/tool/node_name.rb < $? > $@
 
 encdb.h: $(PREP) $(srcdir)/tool/generic_erb.rb $(srcdir)/template/encdb.h.tmpl
 	$(MINIRUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/encdb.h.tmpl $(srcdir)/enc enc
Index: tool/node_name.rb
===================================================================
--- tool/node_name.rb	(revision 29137)
+++ tool/node_name.rb	(revision 29138)
@@ -1,4 +1,6 @@
-#! ./miniruby -n
-if ~/enum node_type \{/..~/^\};/
-  ~/(NODE_.+),/ and puts("      case #{$1}:\n\treturn \"#{$1}\";")
+#! ./miniruby
+while gets
+  if ~/enum node_type \{/..~/^\};/
+    ~/(NODE_.+),/ and puts("      case #{$1}:\n\treturn \"#{$1}\";")
+  end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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