* 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:
parent
74e6dd4078
commit
d8ebf3829f
@ -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>
|
Sat Feb 5 11:48:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/openssl/ossl_cipher.c (ossl_cipher_alloc): leave data ptr
|
* ext/openssl/ossl_cipher.c (ossl_cipher_alloc): leave data ptr
|
||||||
|
@ -1722,6 +1722,7 @@ syck_map_style_set(VALUE self, VALUE style)
|
|||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
/*
|
/*
|
||||||
* Cloning method for all node types
|
* 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 );
|
MEMCPY( copy_n, orig_n, SyckNode, 1 );
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* YAML::Syck::Node#type_id=
|
* YAML::Syck::Node#type_id=
|
||||||
@ -2225,7 +2227,7 @@ Init_syck()
|
|||||||
* Define YAML::Syck::Node class
|
* Define YAML::Syck::Node class
|
||||||
*/
|
*/
|
||||||
cNode = rb_define_class_under( rb_syck, "Node", rb_cObject );
|
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, "emitter", 1, 1 );
|
||||||
rb_define_attr( cNode, "resolver", 1, 1 );
|
rb_define_attr( cNode, "resolver", 1, 1 );
|
||||||
rb_define_attr( cNode, "kind", 1, 0 );
|
rb_define_attr( cNode, "kind", 1, 0 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user