summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-23 16:22:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-23 16:22:25 +0000
commit0a7324d8f7aad3aeb78696fa7377c95b1a9d242b (patch)
tree6ffd75b09e418bcbbb5750440a8e2f4f9c37d81d /lib
parentc9bfe27db300297f1b168ffa6bcc7f25eab310a6 (diff)
downloadruby-0a7324d8f7aad3aeb78696fa7377c95b1a9d242b.tar.gz
ruby-0a7324d8f7aad3aeb78696fa7377c95b1a9d242b.tar.xz
ruby-0a7324d8f7aad3aeb78696fa7377c95b1a9d242b.zip
* ext/stringio/stringio.c (strio_mark): must check if ptr is NULL
first. [ruby-talk:38873] * lib/mkmf.rb (create_makefile): should print depend file when make is other than nmake. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 66f1f8a03..8889ca17c 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -631,7 +631,8 @@ EOMF
mfile.printf "###\n"
while line = dfile.gets()
line.gsub!(/\.o\b/, ".#{$OBJEXT}")
- mfile.printf "%s", line.gsub(/(\s)([^\s\/]+\.[ch])/, '\1{$(srcdir)}\2') if /nmake/i =~ $make
+ line.gsub!(/(\s)([^\s\/]+\.[ch])/, '\1{$(srcdir)}\2') if /nmake/i =~ $make
+ mfile.printf "%s", line
end
dfile.close
end