1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-11-06 08:13:47 +00:00
parent 420c043089
commit 32acedd286
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Nov 6 17:13:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (create_header): split the line by tabs.
Fri Nov 6 12:02:32 2009 NARUSE, Yui <naruse@ruby-lang.org>
* configure.in (MINIDLNOBJ): set default as dmydln.o.

View file

@ -1264,7 +1264,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