Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
ruby
提交
15e97734
R
ruby
项目概览
张重言
/
ruby
通知
3
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
ruby
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
15e97734
编写于
5月 11, 2020
作者:
卜
卜部昌平
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more on NULL versus functions
Function pointers are not void*. See also
115fec06
ce4ea956
8427fca4
上级
4fbb3441
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
gc.c
gc.c
+1
-1
vm_insnhelper.c
vm_insnhelper.c
+4
-4
未找到文件。
gc.c
浏览文件 @
15e97734
...
@@ -8228,7 +8228,7 @@ update_cc_tbl(rb_objspace_t *objspace, VALUE klass)
...
@@ -8228,7 +8228,7 @@ update_cc_tbl(rb_objspace_t *objspace, VALUE klass)
{
{
struct
rb_id_table
*
tbl
=
RCLASS_CC_TBL
(
klass
);
struct
rb_id_table
*
tbl
=
RCLASS_CC_TBL
(
klass
);
if
(
tbl
)
{
if
(
tbl
)
{
rb_id_table_foreach_with_replace
(
tbl
,
update_cc_tbl_i
,
NULL
,
objspace
);
rb_id_table_foreach_with_replace
(
tbl
,
update_cc_tbl_i
,
0
,
objspace
);
}
}
}
}
...
...
vm_insnhelper.c
浏览文件 @
15e97734
...
@@ -2674,7 +2674,7 @@ vm_call_alias(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_cal
...
@@ -2674,7 +2674,7 @@ vm_call_alias(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_cal
struct
rb_callcache
cc_body
;
struct
rb_callcache
cc_body
;
struct
rb_call_data
cd_body
=
{
struct
rb_call_data
cd_body
=
{
.
ci
=
cd
->
ci
,
.
ci
=
cd
->
ci
,
.
cc
=
vm_cc_fill
(
&
cc_body
,
Qundef
,
cme
,
NULL
),
.
cc
=
vm_cc_fill
(
&
cc_body
,
Qundef
,
cme
,
0
),
};
};
return
vm_call_method_each_type
(
ec
,
cfp
,
calling
,
&
cd_body
);
return
vm_call_method_each_type
(
ec
,
cfp
,
calling
,
&
cd_body
);
}
}
...
@@ -2738,7 +2738,7 @@ vm_call_opt_send(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, struct
...
@@ -2738,7 +2738,7 @@ vm_call_opt_send(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, struct
cd
.
cc
=
vm_cc_fill
(
&
cc_body
,
cd
.
cc
=
vm_cc_fill
(
&
cc_body
,
Qundef
,
Qundef
,
rb_callable_method_entry_with_refinements
(
CLASS_OF
(
calling
->
recv
),
mid
,
NULL
),
rb_callable_method_entry_with_refinements
(
CLASS_OF
(
calling
->
recv
),
mid
,
NULL
),
NULL
);
0
);
if
(
missing_reason
!=
0
)
vm_cc_method_missing_reason_set
(
cd
.
cc
,
missing_reason
);
if
(
missing_reason
!=
0
)
vm_cc_method_missing_reason_set
(
cd
.
cc
,
missing_reason
);
return
vm_call_method
(
ec
,
reg_cfp
,
calling
,
(
CALL_DATA
)
&
cd
);
return
vm_call_method
(
ec
,
reg_cfp
,
calling
,
(
CALL_DATA
)
&
cd
);
}
}
...
@@ -2850,7 +2850,7 @@ vm_call_zsuper(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_ca
...
@@ -2850,7 +2850,7 @@ vm_call_zsuper(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_ca
struct
rb_callcache
cc_body
;
struct
rb_callcache
cc_body
;
struct
rb_call_data
cd_body
=
{
struct
rb_call_data
cd_body
=
{
.
ci
=
cd
->
ci
,
.
ci
=
cd
->
ci
,
.
cc
=
vm_cc_fill
(
&
cc_body
,
Qundef
,
cme
,
NULL
),
.
cc
=
vm_cc_fill
(
&
cc_body
,
Qundef
,
cme
,
0
),
};
};
return
vm_call_method_each_type
(
ec
,
cfp
,
calling
,
&
cd_body
);
return
vm_call_method_each_type
(
ec
,
cfp
,
calling
,
&
cd_body
);
...
@@ -2964,7 +2964,7 @@ vm_call_refined(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_c
...
@@ -2964,7 +2964,7 @@ vm_call_refined(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_c
struct
rb_callcache
cc_body
;
struct
rb_callcache
cc_body
;
struct
rb_call_data
cd_body
=
{
struct
rb_call_data
cd_body
=
{
.
ci
=
cd
->
ci
,
.
ci
=
cd
->
ci
,
.
cc
=
vm_cc_fill
(
&
cc_body
,
Qundef
,
cme
,
NULL
),
.
cc
=
vm_cc_fill
(
&
cc_body
,
Qundef
,
cme
,
0
),
};
};
return
vm_call_method
(
ec
,
cfp
,
calling
,
&
cd_body
);
return
vm_call_method
(
ec
,
cfp
,
calling
,
&
cd_body
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录