diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-22 04:52:09 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-22 04:52:09 +0000 |
commit | 303b994d8f014b16db32906afee58c8592d428b5 (patch) | |
tree | 1cde2518f895575e44fb57bc50762db38df1cb07 /lib | |
parent | ee77fc79f8ffa6edd39d4d1f2400c25b77a5b5ff (diff) | |
download | ruby-303b994d8f014b16db32906afee58c8592d428b5.tar.gz ruby-303b994d8f014b16db32906afee58c8592d428b5.tar.xz ruby-303b994d8f014b16db32906afee58c8592d428b5.zip |
* ext/syck/rubyext.c (id_hash_new): new function to create a hash
which key is compared by object id.
(syck_parser_load): use id_hash_new for bonus->data.
(syck_parser_load_documents): ditto.
(syck_emitter_reset): ditto.
* lib/yaml.rb (YAML.quick_emit): give the object itself to eimitter.
don't use object_id and hash.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/yaml.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/yaml.rb b/lib/yaml.rb index 0c95b7e82..d84967086 100644 --- a/lib/yaml.rb +++ b/lib/yaml.rb @@ -384,10 +384,6 @@ module YAML else emitter.reset( opts ) end - oid = - case oid when Fixnum, NilClass; oid - else oid = "#{oid.object_id}-#{oid.hash}" - end out.emit( oid, &e ) end |