summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-06 08:13:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-06 08:13:47 +0000
commit3b8341b4491d6e86b457679132d8c0ccc6f6efab (patch)
tree4080450ecb3498f3b7842db7eea31a010d6e48cb
parent3241664bc3bf427125dccd9509d64ddb7102cad3 (diff)
* lib/mkmf.rb (create_header): split the line by tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/mkmf.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 53a3ee8d87..7957b84e56 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Nov 6 17:13:45 2009 Nobuyoshi Nakada <[email protected]>
+
+ * lib/mkmf.rb (create_header): split the line by tabs.
+
Fri Nov 6 11:01:34 2009 Nobuyoshi Nakada <[email protected]>
* eval.c (call_trace_func): remove the trace hook if any exception
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index f0fde56c31..378c158c86 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1139,7 +1139,7 @@ def create_header(header = "extconf.h")
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