summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-11 01:25:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-11 01:25:33 +0000
commitc8e8f4dbab18671b6fddbe92952cf7802a396150 (patch)
tree71b2fa7da92a3b44f8476f912dbf7289d356deb9 /tool
parentab97298a229ffd6323e11a6356fbeb3a6fc672ca (diff)
Use friendlier terminology in leaf helpers
[Fix GH-2009] From: Juanito Fatas <juanito.fatas@shopify.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/ruby_vm/views/_leaf_helpers.erb12
1 files changed, 6 insertions, 6 deletions
diff --git a/tool/ruby_vm/views/_leaf_helpers.erb b/tool/ruby_vm/views/_leaf_helpers.erb
index 00c2e3882a..618fbd78db 100644
--- a/tool/ruby_vm/views/_leaf_helpers.erb
+++ b/tool/ruby_vm/views/_leaf_helpers.erb
@@ -18,7 +18,7 @@ leafness_of_getglobal(VALUE gentry)
else {
/* We cannot write this function using a switch() because a
* case label cannot be a function pointer. */
- static rb_gvar_getter_t *const whitelist[] = {
+ static rb_gvar_getter_t *const allowlist[] = {
rb_gvar_val_getter,
rb_gvar_var_getter,
rb_gvar_undef_getter,
@@ -26,8 +26,8 @@ leafness_of_getglobal(VALUE gentry)
rb_gvar_getter_t *f = rb_gvar_getter_function_of(e);
int i;
- for (i = 0; i < numberof(whitelist); i++) {
- if (f == whitelist[i]) {
+ for (i = 0; i < numberof(allowlist); i++) {
+ if (f == allowlist[i]) {
return true;
}
}
@@ -46,7 +46,7 @@ leafness_of_setglobal(VALUE gentry)
else {
/* We cannot write this function using a switch() because a
* case label cannot be a function pointer. */
- static rb_gvar_setter_t *const whitelist[] = {
+ static rb_gvar_setter_t *const allowlist[] = {
rb_gvar_val_setter,
rb_gvar_readonly_setter,
rb_gvar_var_setter,
@@ -55,8 +55,8 @@ leafness_of_setglobal(VALUE gentry)
rb_gvar_setter_t *f = rb_gvar_setter_function_of(e);
int i;
- for (i = 0; i < numberof(whitelist); i++) {
- if (f == whitelist[i]) {
+ for (i = 0; i < numberof(allowlist); i++) {
+ if (f == allowlist[i]) {
return true;
}
}