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

* lib/mkmf.rb (Logging.log_open): opens in binary mode to get rid of

extra CR.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-08-31 08:59:09 +00:00
parent 70b98dd4af
commit 6e37ddcfbd
2 changed files with 11 additions and 5 deletions

View file

@ -1,4 +1,7 @@
Sun Aug 31 17:52:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
Sun Aug 31 17:58:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (Logging.log_open): opens in binary mode to get rid of
extra CR.
* lib/mkmf.rb (try_func, try_var, have_struct_member),
(scalar_ptr_type?, scalar_type?): use MAIN_DOES_NOTHING.

View file

@ -232,9 +232,13 @@ module Logging
@postpone = 0
@quiet = $extmk
def self::open
@log ||= File::open(@logfile, 'w')
def self::log_open
@log ||= File::open(@logfile, 'wb')
@log.sync = true
end
def self::open
log_open
$stderr.reopen(@log)
$stdout.reopen(@log)
yield
@ -244,8 +248,7 @@ module Logging
end
def self::message(*s)
@log ||= File::open(@logfile, 'w')
@log.sync = true
log_open
@log.printf(*s)
end