[前][次][番号順一覧][スレッド一覧]

ruby-changes:62199

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Mon, 13 Jul 2020 08:56:43 +0900 (JST)
Subject: [ruby-changes:62199] 2363a16e9a (master): add comments

https://git.ruby-lang.org/ruby.git/commit/?id=2363a16e9a

From 2363a16e9ac3d8ba9608502d9969a39cce03ff17 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Fri, 10 Jul 2020 14:54:01 +0900
Subject: add comments


diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb
index 639e53a..ffdd840 100644
--- a/tool/mk_builtin_loader.rb
+++ b/tool/mk_builtin_loader.rb
@@ -311,7 +311,7 @@ def mk_builtin_header file https://github.com/ruby/ruby/blob/trunk/tool/mk_builtin_loader.rb#L311
           f.puts %'        fprintf(f, "    const VALUE *argv = GET_EP() - lnum - VM_ENV_DATA_SIZE + 1 + %ld;\\n", index);'
           f.puts %'    }'
         end
-        f.puts %'    fprintf(f, "    func f = (func)%p;\\n", (const void *)#{cfunc_name});'
+        f.puts %'    fprintf(f, "    func f = (func)/* #{cfunc_name} */%p;\\n", (const void *)#{cfunc_name});'
         f.puts %'    fprintf(f, "    val = f(ec, GET_SELF()#{argv});\\n");'
       end
       f.puts %'}'
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]