mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* dir.c (dir_s_chdir): block form of Dir.chdir. (RCR#U016).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7f74a38b72
commit
b842d5f571
7 changed files with 53 additions and 23 deletions
3
eval.c
3
eval.c
|
@ -775,7 +775,6 @@ static struct tag *prot_tag;
|
|||
_tag.frame = ruby_frame; \
|
||||
_tag.iter = ruby_iter; \
|
||||
_tag.prev = prot_tag; \
|
||||
_tag.retval = Qnil; \
|
||||
_tag.scope = ruby_scope; \
|
||||
_tag.tag = ptag; \
|
||||
_tag.dst = 0; \
|
||||
|
@ -6332,7 +6331,7 @@ proc_eq(self, other)
|
|||
struct BLOCK *data, *data2;
|
||||
|
||||
if (TYPE(other) != T_DATA) return Qfalse;
|
||||
if (RDATA(other)->dmark != blk_mark) Qfalse;
|
||||
if (RDATA(other)->dmark != (RUBY_DATA_FUNC)blk_mark) Qfalse;
|
||||
Data_Get_Struct(self, struct BLOCK, data);
|
||||
Data_Get_Struct(other, struct BLOCK, data2);
|
||||
if (data->tag == data2->tag) return Qtrue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue