1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/syck/rubyext.c (syck_node_init_copy): SyckNode is not

copiable.  [ruby-core:35094]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-02-05 03:05:35 +00:00
parent 74e6dd4078
commit d8ebf3829f
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Feb 5 12:05:27 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/syck/rubyext.c (syck_node_init_copy): SyckNode is not
copiable. [ruby-core:35094]
Sat Feb 5 11:48:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/openssl/ossl_cipher.c (ossl_cipher_alloc): leave data ptr

View file

@ -1722,6 +1722,7 @@ syck_map_style_set(VALUE self, VALUE style)
return self;
}
#if 0
/*
* Cloning method for all node types
*/
@ -1744,6 +1745,7 @@ syck_node_init_copy(VALUE copy, VALUE orig)
MEMCPY( copy_n, orig_n, SyckNode, 1 );
return copy;
}
#endif
/*
* YAML::Syck::Node#type_id=
@ -2225,7 +2227,7 @@ Init_syck()
* Define YAML::Syck::Node class
*/
cNode = rb_define_class_under( rb_syck, "Node", rb_cObject );
rb_define_method( cNode, "initialize_copy", syck_node_init_copy, 1 );
rb_undef( cNode, rb_intern("initialize_copy") );
rb_define_attr( cNode, "emitter", 1, 1 );
rb_define_attr( cNode, "resolver", 1, 1 );
rb_define_attr( cNode, "kind", 1, 0 );