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

ruby-changes:69723

From: Koichi <ko1@a...>
Date: Mon, 15 Nov 2021 13:11:53 +0900 (JST)
Subject: [ruby-changes:69723] 1ab6f2b4a2 (master): `rb_vm_lvar_exposed()` is PUREFUNC

https://git.ruby-lang.org/ruby.git/commit/?id=1ab6f2b4a2

From 1ab6f2b4a232d41199268c6ae019941459ad5e33 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Mon, 15 Nov 2021 10:18:20 +0900
Subject: `rb_vm_lvar_exposed()` is PUREFUNC

This function is used in `rb_vm_lvar()` and this function can be
unsed (generated into *.rbinc files automatically).
`rb_vm_lvar()` is already declared as a PUREFUNC, but
`rb_vm_lvar_exposed()` is not a PUREFUNC, so `rb_vm_lvar_exposed()`
is remained even if it is unused.
---
 builtin.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/builtin.h b/builtin.h
index 5b4bda1e99b..96339afdb55 100644
--- a/builtin.h
+++ b/builtin.h
@@ -56,6 +56,7 @@ static inline void rb_builtin_function_check_arity13(VALUE (*f)(rb_execution_con https://github.com/ruby/ruby/blob/trunk/builtin.h#L56
 static inline void rb_builtin_function_check_arity14(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
 static inline void rb_builtin_function_check_arity15(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
 
+PUREFUNC(VALUE rb_vm_lvar_exposed(rb_execution_context_t *ec, int index));
 VALUE rb_vm_lvar_exposed(rb_execution_context_t *ec, int index);
 
 // __builtin_inline!
-- 
cgit v1.2.1


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

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