ruby-changes:50336
From: shyouhei <ko1@a...>
Date: Sat, 17 Feb 2018 19:04:28 +0900 (JST)
Subject: [ruby-changes:50336] shyouhei:r62451 (trunk): a C source code must end with EOL
shyouhei 2018-02-17 19:04:22 +0900 (Sat, 17 Feb 2018) New Revision: 62451 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62451 Log: a C source code must end with EOL cf: ISO 9899 section 5.1.1.2 Modified files: trunk/test/mkmf/test_framework.rb Index: test/mkmf/test_framework.rb =================================================================== --- test/mkmf/test_framework.rb (revision 62450) +++ test/mkmf/test_framework.rb (revision 62451) @@ -10,7 +10,7 @@ class TestMkmf https://github.com/ruby/ruby/blob/trunk/test/mkmf/test_framework.rb#L10 FileUtils.mkdir_p(hdrdir) File.write("#{hdrdir}/#{hdrname}", "") src = "#{fwdir}/main.c" - File.write(src, "void #{fw}(void) {}") + File.write(src, "void #{fw}(void) {}\n") cmd = LINK_SO.dup RbConfig.expand(cmd, RbConfig::CONFIG.merge("OBJS"=>src)) cmd.gsub!("$@", "#{fwdir}/#{fw}") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/