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

ruby-changes:13873

From: nobu <ko1@a...>
Date: Fri, 6 Nov 2009 17:14:10 +0900 (JST)
Subject: [ruby-changes:13873] Ruby:r25673 (ruby_1_8, trunk): * lib/mkmf.rb (create_header): split the line by tabs.

nobu	2009-11-06 17:13:47 +0900 (Fri, 06 Nov 2009)

  New Revision: 25673

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

  Log:
    * lib/mkmf.rb (create_header): split the line by tabs.

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/lib/mkmf.rb
    trunk/ChangeLog
    trunk/lib/mkmf.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25672)
+++ ChangeLog	(revision 25673)
@@ -1,3 +1,7 @@
+Fri Nov  6 17:13:45 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/mkmf.rb (create_header): split the line by tabs.
+
 Fri Nov  6 12:02:32 2009  NARUSE, Yui  <naruse@r...>
 
 	* configure.in (MINIDLNOBJ): set default as dmydln.o.
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 25672)
+++ lib/mkmf.rb	(revision 25673)
@@ -1264,7 +1264,7 @@
   for line in $defs
     case line
     when /^-D([^=]+)(?:=(.*))?/
-      hdr << "#define #$1 #{$2 ? Shellwords.shellwords($2)[0] : 1}\n"
+      hdr << "#define #$1 #{$2 ? Shellwords.shellwords($2)[0].gsub(/(?=\t+)/, "\\\n") : 1}\n"
     when /^-U(.*)/
       hdr << "#undef #$1\n"
     end
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 25672)
+++ ruby_1_8/ChangeLog	(revision 25673)
@@ -1,3 +1,7 @@
+Fri Nov  6 17:13:45 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/mkmf.rb (create_header): split the line by tabs.
+
 Fri Nov  6 11:01:34 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* eval.c (call_trace_func): remove the trace hook if any exception
Index: ruby_1_8/lib/mkmf.rb
===================================================================
--- ruby_1_8/lib/mkmf.rb	(revision 25672)
+++ ruby_1_8/lib/mkmf.rb	(revision 25673)
@@ -1139,7 +1139,7 @@
   for line in $defs
     case line
     when /^-D([^=]+)(?:=(.*))?/
-      hdr << "#define #$1 #{$2 ? Shellwords.shellwords($2)[0] : 1}\n"
+      hdr << "#define #$1 #{$2 ? Shellwords.shellwords($2)[0].gsub(/(?=\t+)/, "\\\n") : 1}\n"
     when /^-U(.*)/
       hdr << "#undef #$1\n"
     end

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

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